Page 1 of 1

BZFlag 2.4.1 (trunk) - compile errors

Posted: Tue Nov 29, 2011 12:05 am
by romfis
HI everyone! :D
Yes your eye's not fault you seen correct, here is romfis...^^

I have more Problems with compile BZFlag 2.4.1 on Debian 5 (lenny).

I installed all this package:
g++
libtool
automake
autoconf
libgl1-mesa-dev
libglu1-mesa-dev
libsdl1.2-dev
libsdl-sound1.2-dev
libcurl3-dev
libc-ares-dev
libglew1.5-dev

bud i become with ./autogen.sh and ./configure to many errors and i am not a developer at problem to fix.

I want hosting BZFlag Server on 2.4 but on Debian stable is older BZFlag Versions and not compatible with newest Version and i have closed the server on BZFlag 2.0.16 now.

I hope any can me help.

greets

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Tue Nov 29, 2011 12:14 am
by JeffM
you would have to post the errors.

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Tue Nov 29, 2011 1:16 am
by romfis
OK, Moment i testing before the 2.4.0 here coming onward the first error beginning here with make command. The ./autogen.sh and ./configure on 2.4.0 not errors.

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Tue Nov 29, 2011 4:44 am
by romfis
BZFlag 2.4.1 (trunk) - compile errors

Code: Select all

./autogen.sh
Preparing the BZFlag build system...please wait

Found GNU Autoconf version 2.68
Found GNU Automake version 1.11.1
Found GNU Libtool version 2.4.2

Automatically preparing build ... Warning: autoreconf failed
Attempting to run the preparation steps individually

Preparing build ... ERROR: libtoolize failed
and

Code: Select all

./configure.ac
./configure.ac: line 1: dnl: command not found
./configure.ac: line 2: dnl: command not found
./configure.ac: line 3: syntax error near unexpected token `('
'/configure.ac: line 3: `dnl Copyright (c) 1993-2011 Tim Riker
BZFlag 2.4.0 - compile errors

Code: Select all

mv -f .deps/messages.Tpo .deps/messages.Plo
/bin/sh ../../libtool --silent --tag=CXX  --silent --mode=link g++  -g -O2 -static  -o libCommon.la  AccessList.lo AutoCompleter.lo BzPNG.lo BZDBCache.lo BZDBLocal.lo Bundle.lo BundleMgr.lo CommandManager.lo ConfigFileManager.lo Country.lo ErrorHandler.lo FileManager.lo Flag.lo GameTime.lo KeyManager.lo Language.lo OSFile.lo ParseColor.lo PlayerState.lo PositionTracker.lo ShotUpdate.lo StateDatabase.lo Team.lo TextChunkManager.lo TextUtils.lo TimeBomb.lo TimeKeeper.lo VotingBooth.lo WordFilter.lo bz_Locale.lo bzfio.lo bzglob.lo bzsignal.lo cURLManager.lo global.lo md5.lo messages.lo  -lm  -lpthread
make[2]: Leaving directory `/bzflag-2.4.0/src/common'
Making all in net
make[2]: Entering directory `/bzflag-2.4.0/src/net'
/bin/sh ../../libtool --silent  --tag=CXX  --silent --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include     -g -O2 -g -O2 -MT libNet_la-Address.lo -MD -MP -MF .deps/libNet_la-Address.Tpo -c -o libNet_la-Address.lo `test -f 'Address.cxx' || echo './'`Address.cxx
mv -f .deps/libNet_la-Address.Tpo .deps/libNet_la-Address.Plo
/bin/sh ../../libtool --silent  --tag=CXX  --silent --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include     -g -O2 -g -O2 -MT libNet_la-AresHandler.lo -MD -MP -MF .deps/libNet_la-AresHandler.Tpo -c -o libNet_la-AresHandler.lo `test -f 'AresHandler.cxx' || echo './'`AresHandler.cxx
AresHandler.cxx: In member function 'void AresHandler::queryHostname(sockaddr*)':
AresHandler.cxx:90: error: invalid conversion from 'void (*)(void*, int, hostent*)' to 'void (*)(void*, int, int, hostent*)'
AresHandler.cxx:90: error:   initializing argument 5 of 'void ares_gethostbyaddr(ares_channeldata*, const void*, int, int, void (*)(void*, int, int, hostent*), void*)'
AresHandler.cxx: In member function 'void AresHandler::queryHost(char*)':
AresHandler.cxx:120: error: invalid conversion from 'void (*)(void*, int, hostent*)' to 'void (*)(void*, int, int, hostent*)'
AresHandler.cxx:120: error:   initializing argument 4 of 'void ares_gethostbyname(ares_channeldata*, const char*, int, void (*)(void*, int, int, hostent*), void*)'
make[2]: *** [libNet_la-AresHandler.lo] Fehler 1
make[2]: Leaving directory `/bzflag-2.4.0/src/net'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/bzflag-2.4.0/src'
make: *** [all-recursive] Fehler 1
I do not understand the errors.

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Tue Nov 29, 2011 10:53 am
by FiringSquad
try skipping the autogen step.
just run ./configure and then make after unpacking the sources.

In general the first error is the important one and the following errors are collateral damage.

I'll druck my Daumen for you. :-)

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Tue Nov 29, 2011 12:04 pm
by blast
He can't skip autogen if he's building from SVN. We only pre-run that in the released tarballs.

Install libtool so that you can run the ./autogen.sh script. The configure.ac file is NOT the final configure script. This is the file that will be used to generate the configure script when you run ./autogen.sh successfully. So, once you install libtool, run ./autogen.sh, then ./configure (not ./configure.ac), and them make, and optionally make install.

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Tue Nov 29, 2011 4:27 pm
by JeffM
There is a readme for linux that tells how to build as well, it would be best to start there instead of just guessing.

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Fri Dec 02, 2011 8:26 am
by romfis
blast wrote:So, once you install libtool, run ./autogen.sh, then ./configure (not ./configure.ac), and them make, and optionally make install.
My libtool is the newest Version 2.4.2. (ftp://ftp.gnu.org/gnu/libtool/)
Found GNU Autoconf version 2.68
Found GNU Automake version 1.11.1
Found GNU Libtool version 2.4.2
or mean you what else?
README.Linux wrote: Different Linux distributions use different naming conventions for the
packages that provide the dependencies needed to compile and run
BZFlag. Known requirements include:

Debian & Ubuntu:

g++
libtool
automake
autoconf
libgl1-mesa-dev
libglu1-mesa-dev
libsdl1.2-dev
libsdl-sound1.2-dev
libcurl3-dev
libc-ares-dev
libglew1.5-dev
This all packages is also installed, and i do not see more information to install more packages.

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Fri Dec 02, 2011 12:03 pm
by blast
Ah, yeah, guess you do. Run ./autogen.sh -v and paste the output here.

Re: BZFlag 2.4.1 (trunk) - compile errors

Posted: Sat Dec 03, 2011 3:38 am
by romfis
HI
here is the output.

Code: Select all

Found a configure template: ./configure.ac
Preparing the BZFlag build system...please wait

Checking autoreconf version: autoreconf --version
Checking autoconf version: autoconf --version
Found GNU Autoconf version 2.68
Checking if 2.68.0 is greater than 2.52.0
Checking automake version: automake --version
Found GNU Automake version 1.11.1
Checking if 1.11.1 is greater than 1.6.0
Checking libtoolize version: libtoolize --version
Found GNU Libtool version 2.4.2
Checking if 2.4.2 is greater than 1.4.2
Checking aclocal version: aclocal --version
Checking autoheader version: autoheader --version
Checking whether to only output version information
Backing up COPYING in /bzflag
cp -p COPYING COPYING.5823.protect_from_automake.backup
Backing up INSTALL in /bzflag
cp -p INSTALL INSTALL.5823.protect_from_automake.backup
Found an autom4te.cache directory, deleting it
rm -rf autom4te.cache
Recursively scanning the following directories:
   "/bzflag/src/other/ares" "/bzflag/src/other/curl"
Protecting files from automake in "/bzflag/src/other/ares"
Found an autom4te.cache directory, deleting it
rm -rf autom4te.cache
Protecting files from automake in "/bzflag/src/other/curl"
Backing up COPYING in /bzflag/src/other/curl
cp -p COPYING COPYING.5823.protect_from_automake.backup
Detected auxillary directory: misc
Detected recursive configure directory: /bzflag/src/other/ares
Detected recursive configure directory: /bzflag/src/other/curl
Found extra aclocal search directory: m4

Automatically preparing build ... autoreconf  -I m4 -i -f
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:363: _LT_AC_SYS_LIBPATH_AIX is expanded from...
/usr/share/aclocal/libtool.m4:5572: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
/usr/share/aclocal/libtool.m4:2795: _LT_AC_LANG_C_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:2794: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:363: _LT_AC_SYS_LIBPATH_AIX is expanded from...
/usr/share/aclocal/libtool.m4:2876: _LT_AC_LANG_CXX_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:2875: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:1920: _LT_AC_TAGCONFIG is expanded from...
/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:363: _LT_AC_SYS_LIBPATH_AIX is expanded from...
/usr/share/aclocal/libtool.m4:5572: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
/usr/share/aclocal/libtool.m4:4189: _LT_AC_LANG_GCJ_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:4188: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:1920: _LT_AC_TAGCONFIG is expanded from...
/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:377: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5574: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:2809: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2808: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:94: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:74: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:377: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:2886: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2885: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1934: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:94: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:74: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:377: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5574: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:4195: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4194: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1934: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:94: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:74: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:130: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:363: _LT_AC_SYS_LIBPATH_AIX is expanded from...
/usr/share/aclocal/libtool.m4:5572: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
/usr/share/aclocal/libtool.m4:2795: _LT_AC_LANG_C_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:2794: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
configure.ac:130: the top level
configure.ac:130: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:377: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5574: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:2809: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2808: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:94: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:74: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:39: AC_PROG_LIBTOOL is expanded from...
configure.ac:130: the top level
.ibtoolize: AC_CONFIG_MACRO_DIR([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4
autoreconf: libtoolize failed with exit status: 1
Warning: autoreconf failed
Attempting to run the preparation steps individually

Preparing build ... aclocal  -I m4
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:363: _LT_AC_SYS_LIBPATH_AIX is expanded from...
/usr/share/aclocal/libtool.m4:5572: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
/usr/share/aclocal/libtool.m4:2795: _LT_AC_LANG_C_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:2794: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:363: _LT_AC_SYS_LIBPATH_AIX is expanded from...
/usr/share/aclocal/libtool.m4:2876: _LT_AC_LANG_CXX_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:2875: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:1920: _LT_AC_TAGCONFIG is expanded from...
/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
configure.ac:228: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
/usr/share/aclocal/libtool.m4:363: _LT_AC_SYS_LIBPATH_AIX is expanded from...
/usr/share/aclocal/libtool.m4:5572: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
/usr/share/aclocal/libtool.m4:4189: _LT_AC_LANG_GCJ_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:4188: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:1920: _LT_AC_TAGCONFIG is expanded from...
/usr/share/aclocal/libtool.m4:80: AC_LIBTOOL_SETUP is expanded from...
/usr/share/aclocal/libtool.m4:60: _AC_PROG_LIBTOOL is expanded from...
/usr/share/aclocal/libtool.m4:25: AC_PROG_LIBTOOL is expanded from...
configure.ac:228: the top level
Searching for AC_PROG_LIBTOOL in ./configure.ac
libtoolize --automake -c -f
.ibtoolize: AC_CONFIG_MACRO_DIR([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4
ERROR: libtoolize failed
rm -f COPYING.5823.protect_from_automake.backup
rm -f INSTALL.5823.protect_from_automake.backup
Recursively scanning the following directories:
   "/bzflag/src/other/ares" "/bzflag/src/other/curl"
Checking files for automake damage in "/bzflag/src/other/ares"
Checking files for automake damage in "/bzflag/src/other/curl"
rm -f COPYING.5823.protect_from_automake.backup