Showing wrong version Linux

Asked by hakon stek

When i start Adchpp on Linux it shows the wrong version (This hub is running ADCH++ 3.0.0 (r"[unknown]") Release), i am running 3.0.1 compiled fron 3.0.1 sources with this guide https://forum.dchublist.org/viewtopic.php?f=29&t=480

Question information

Language:
English Edit question
Status:
Solved
For:
ADCH++ Edit question
Assignee:
No assignee Edit question
Solved by:
hakon stek
Solved:
Last query:
Last reply:

This question was originally filed as bug #1978083.

Revision history for this message
eMTee (realprogger) said :
#1

You most probably used an older source code or a wrong revision.
It's best to do a checkout from the repo that guide links in the top and build from that - it'll result a correct revision info printed as well.
It shoud show "This hub is running ADCH++ 3.0.1 (r"ec462716f140 - 2022-05-18 17:50 +0200") Release" then.

Revision history for this message
hakon stek (mustasch) said :
#2

I just tried it again but with hg instead of downloading the source from the main page.

hg clone http://hg.code.sf.net/p/adchpp/code adchpp-code
"Following the guide here"
But it still says "3.0.0 (r"[unknown]") Release running, press ctrl-c to exit..."
"This hub is running ADCH++ 3.0.0 (r"[unknown]") Release"

$ls -lh
2.1M Jun 9 13:32 adchppd

Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

The first couple of times i got the source from the main page adchpp.sourceforge.io -> "Download: Source Code"

Revision history for this message
eMTee (realprogger) said :
#3

Try the dev hub where people with experience of compiation under Linux may able to help. adcs://hub.dcbase.org:16591 , ask for registration to be able to chat.

Revision history for this message
Derek (transxcorp) said (last edit ):
#4

https://sourceforge.net/p/adchpp/code/ci/default/tree/

Use "Download Snapshot" link on the top. . It will take some time but it will get the files you need.
Just tested it and i got correct 3.0.1 version this way.
I updated that dchublist.org guide as well. Yeah something isnt quite right on that download page, but snapshot works.

Revision history for this message
hakon stek (mustasch) said :
#5

Thank you Derek, i still get "(r"[unknown]") Release" but atleast it shows the correct version now by displaying 3.0.1
"This hub is running ADCH++ 3.0.1 (r"[unknown]") Release"

Thank you all! :)

Revision history for this message
Derek (transxcorp) said :
#6

Do you have mercurial installed?
If so its a bug in adch++ else install it and see if release number is generated.

Revision history for this message
hakon stek (mustasch) said :
#7

Yes I had mercurial installed the whole time.

$apt-get install
shows
"mercurial is already the newest version (5.3.1-1ubuntu1)."

Revision history for this message
eMTee (realprogger) said :
#8

You have to compile inside from a valid local checkout to have the call to mercurial successfully get the revision number during the compilaton.