Compiling error 0.3.0

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

That functions are from libpthread. The manpages refer to it as LINUX pthreads, but you may try giving the linker an additional -lpthread argument. Either by modifying the command line directly or reconfiguring with

Code: Select all

LIBS=-lpthread ./configure ......
If that works, I'll add a check for lpthread doing that automatically, and maybe make the web server thing optional.
User avatar
Lucifer
Project Developer
Posts: 8742
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Well, the library's there in some form, or it wouldn't be compiling. :)

shttpd builds in *BSD, it builds everywhere (and is used everywhere, your home router might run it), so it's something we can fix if we just know what flag to set in *BSD.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

Looks like that last addition to ./configure did it...

Maybe you can include those changes into the next version :)

"Just" a few warnings now in stderr:

Code: Select all

thirdparty/shttpd/libshttpd.a(libshttpd_a-shttpd.o)(.text+0x62f): In function `mystrdup':
/opt/source/armagetronad-0.3.0/src/thirdparty/shttpd/shttpd.c:808: warning: strcpy() is almost always misused, please use strlcpy()
/usr/local/lib/libxml2.so.9.3: warning: strcat() is almost always misused, please use strlcat()
Thanks a lot... =)
- bel
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

Sadly it won't run...

from armagetronad.log:

Code: Select all

[0] Bound socket to *.*.*.*:6301.
[0] Bound socket to *.*.*.*:4534.
[0] Setting CYCLE_BRAKE_REFILL (Group: Annoying) deviates from its default value; clients older than 0.2.5.0 may experience problems.
[0] Ping charity changed from 100 to 100100.
assertion "STROPT(OPT_DOCROOT) != NULL" failed: file "shttpd.c", line 3062, function "shttpd_init"
/opt/armagetronad-dedicated/share/armagetronad-dedicated/scripts/serverstarter: line 20: 10651 Abort trap              $BINDIR/armagetronad-dedicated --userdatadir $VARDIR --daemon $*
Terminated
Stopping server, it is restarting too quickly.
/opt/armagetronad-dedicated/share/armagetronad-dedicated/scripts/serverstarter: line 37: popd: directory stack empty
unless I turn off the build-in webserver in settings_dedicated.cfg ;-)

Please give some ./configure option to turn it of from the beginning... and btw, threads don't really work on *BSD.
- bel
User avatar
Lucifer
Project Developer
Posts: 8742
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Hmmm, check your config and find the setting to disable the webserver. :) I've seen this error before, in fact I added a setting to 0.3.0 to disable it.

Try running it from the build directory and see if it causes the same error. If not, then it's probably an old config file hanging around that for some reason enables the web server.

./src/armagetronad_main --doc | grep "WEB" should turn it up for you, I'm sorry I don't remember the settings. I documented them in settings_web.cfg so I wouldn't have to remember them (I think).

If that works, then don't worry about getting it running, like I said, when there's real scripting, the C++ web server is scheduled to be removed in favor of a scripted replacement. The only thing that depends on is my personal time to remove it and implement the new one (after scripting is in there, obviously, but since it's in the works right now, I'm already blowing off as much of the old web server as I can).
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

Is there any way to disable compiling of the build-in webserver completly?

A patch to the proper file(s) would be appreciated =)
- bel
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

Is there any way to specify that the web server shouldn't be compiled? I don't need it since I already have my own web server and it's making it impossible for me to compile 0.3.0 on my FreeBSD box.
Image
END OF LINE.
User avatar
Lucifer
Project Developer
Posts: 8742
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

svn update. There isn't any way to disable the webserver in 0.3.0, but it won't be present in 0.3.1. (I just removed it from the trunk)
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

.:Avl:.C10ud wrote:Is there any way to specify that the web server shouldn't be compiled? I don't need it since I already have my own web server and it's making it impossible for me to compile 0.3.0 on my FreeBSD box.
It should compile just fine, maybe there are just some simple changes needed tho... you can just deactivate the webserver in the config file later.
- bel
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

oops! How in the world did I miss Z-man's post at the top of this page??? Yeah, that fixed it by adding -lpthread :D
Image
END OF LINE.
Post Reply