Page 1 of 1

Compiling from SVN - cant enable sharing

Posted: Sat Nov 07, 2009 5:37 am
by Grans Remedy
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

Re: Compiling from SVN - cant enable sharing

Posted: Sat Nov 07, 2009 6:19 am
by blast
Verify that you have libtool installed.

Re: Compiling from SVN - cant enable sharing

Posted: Sat Nov 07, 2009 7:48 am
by Grans Remedy
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?

Re: Compiling from SVN - cant enable sharing

Posted: Sat Nov 07, 2009 1:37 pm
by blast
Okay. See if it's actually building the plugins. Look inside ./plugins/SAMPLE_PLUGIN/.libs/ for the SAMPLE_PLUGIN.so file.

Re: Compiling from SVN - cant enable sharing

Posted: Sat Nov 07, 2009 10:30 pm
by Grans Remedy
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

Re: Compiling from SVN - cant enable sharing

Posted: Mon Jan 04, 2010 2:38 pm
by zaphod
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!)

Re: Compiling from SVN - cant enable sharing

Posted: Mon Jan 04, 2010 6:27 pm
by blast
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. ;)

Re: Compiling from SVN - cant enable sharing

Posted: Mon Jan 04, 2010 8:11 pm
by zaphod
;-) 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!

Re: Compiling from SVN - cant enable sharing

Posted: Tue Jan 05, 2010 9:26 am
by zaphod
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!