Compiling from SVN - cant enable sharing

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
Grans Remedy
Private First Class
Private First Class
Posts: 91
Joined: Sun Dec 05, 2004 10:47 pm
Location: New Zealand

Compiling from SVN - cant enable sharing

Post by Grans Remedy » Sat Nov 07, 2009 5:37 am

Howdy,
this is driving me nuts!

Downloaded source from SVN today.

Trying to get a new 2.0.13 server up an running on a new box (Ubuntu Server (Hardy?)) at bzflag.enuffsaid.co.nz

autogen.sh <ok>
./configure --enable-shared --disable-client --disable-bzadmin <ok>
make <ok>
make install <ok>

Run server:
bzfs -conf [file] -p 5158 <ok>

But in game /loadplugin generates "Unknown command"
and /timelimit x likewise generates "Unknown command"

I have tried this at least four times now - is there some other command to force it to enable plugins?

Thanks
Grans
No coffee, no workee

User avatar
blast
General
General
Posts: 4746
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Compiling from SVN - cant enable sharing

Post by blast » Sat Nov 07, 2009 6:19 am

Verify that you have libtool installed.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
Grans Remedy
Private First Class
Private First Class
Posts: 91
Joined: Sun Dec 05, 2004 10:47 pm
Location: New Zealand

Re: Compiling from SVN - cant enable sharing

Post by Grans Remedy » Sat Nov 07, 2009 7:48 am

blast wrote:Verify that you have libtool installed.

Code: Select all

grans@bzflag:/home/bz# libtool --version
ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 2008/02/01 16:58:18)

Copyright (C) 2008  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
How's that?
No coffee, no workee

User avatar
blast
General
General
Posts: 4746
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Compiling from SVN - cant enable sharing

Post by blast » Sat Nov 07, 2009 1:37 pm

Okay. See if it's actually building the plugins. Look inside ./plugins/SAMPLE_PLUGIN/.libs/ for the SAMPLE_PLUGIN.so file.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
Grans Remedy
Private First Class
Private First Class
Posts: 91
Joined: Sun Dec 05, 2004 10:47 pm
Location: New Zealand

Re: Compiling from SVN - cant enable sharing

Post by Grans Remedy » Sat Nov 07, 2009 10:30 pm

Well thats just weird. Now its working fine - but I didn't do anything.

There was some message after make had completed about something being done in the background tho - so maybe I was just being a bit impatient..

Thanks anyway.
Grans
No coffee, no workee

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: Compiling from SVN - cant enable sharing

Post by zaphod » Mon Jan 04, 2010 2:38 pm

less lucky here!

Code: Select all

libtool --version
ltmain.sh (GNU libtool) 2.2.6
everything compiles fine (except plugins!) and therefore getting the same errors as Grans when connecting to a server: /listplugins > Unknown command

but :::
./configure --enable-shared --enable-plugins --disable-client --enable-bzadmin --enable-bzfs
returns
configure: WARNING: unrecognized options: --enable-plugins, --enable-bzfs
or
./configure --enable-optimized
returns
configure: WARNING: unrecognized options: --enable-optimized
blast wrote:Okay. See if it's actually building the plugins. Look inside ./plugins/SAMPLE_PLUGIN/.libs/ for the SAMPLE_PLUGIN.so file.
no ::: it isn't! no .so file . . . . ?

any idea what is going wrong (with a BIG thanks in advance!)
Attachments
ubuntuCompile2.txt
compile output
(265.54 KiB) Downloaded 112 times

User avatar
blast
General
General
Posts: 4746
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Compiling from SVN - cant enable sharing

Post by blast » Mon Jan 04, 2010 6:27 pm

From the log you posted, you ran "./configure help". That is not valid. I'm assuming you were wanting to get the list of options you can pass to configure. That should be "./configure --help".

Anyways, try just doing this: "./configure --enable-shared --disable-client"

You don't need to use the enable plugins options because that doesn't really do anything. And bzadmin and bzfs are already on by default - and there isn't even an option for enabling or disabling bzfs. Throwing in made up options won't help anything. ;)
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: Compiling from SVN - cant enable sharing

Post by zaphod » Mon Jan 04, 2010 8:11 pm

;-) always worked on debian ::: but i got at least no errore launching ./configure on ubuntu!
but still no plugins!

the errors although are better defined

Code: Select all

. . .
bzfsPlugins.o: In function `getPluginVersion(void*)':
/bzflag/src/bzfs/bzfsPlugins.cxx:174: undefined reference to `dlsym'
bzfsPlugins.o: In function `unload1Plugin(int)':
bzflag/src/bzfs/bzfsPlugins.cxx:232: undefined reference to `dlsym'
bzflag/src/bzfs/bzfsPlugins.cxx:238: undefined reference to `dlclose'
bzflag/src/bzfs/bzfsPlugins.cxx:236: undefined reference to `dlerror'
bzfsPlugins.o: In function `load1Plugin(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
bzflag/src/bzfs/bzfsPlugins.cxx:186: undefined reference to `dlopen'
bzflag/src/bzfs/bzfsPlugins.cxx:189: undefined reference to `dlsym'
bzflag/src/bzfs/bzfsPlugins.cxx:204: undefined reference to `dlsym'
bzflag/src/bzfs/bzfsPlugins.cxx:199: undefined reference to `dlclose'
bzflag/src/bzfs/bzfsPlugins.cxx:219: undefined reference to `dlerror'
bzflag/src/bzfs/bzfsPlugins.cxx:190: undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[2]: *** [bzfs] Error 1
. . .
not clear enough for me what is missing but i am counting on you! ;-)
again ::: BIG thx for helping out here!
Last edited by zaphod on Tue Jan 05, 2010 9:28 am, edited 1 time in total.

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: Compiling from SVN - cant enable sharing

Post by zaphod » Tue Jan 05, 2010 9:26 am

the undefined-references to ::: dlsym dlclose dlerror dlopen ::: were new (checking all my useless attempts i saved)!

a simple reinstall of "libdb-devel" did the job!
all works fine now (including the plugins)!
ohhh boy ::: sometimes its just weird!

Post Reply