Author Topic: Compiling Problems Linux Glest SVN  (Read 4476 times)

temnozor

  • Guest
Compiling Problems Linux Glest SVN
« on: 30 July 2008, 16:11:51 »
my attempts to compile glest from source on my gentoo based system (PIII500Mhz@575Mhz 320MB ram RivaTNT2 32MB ram 155Mhz GPU 160Mhz Ram)
allways fail

i can run the binary version with some config tweaks...so i want to compile it on my own to have newest version and maybe to use some compiler optimizations

autogen:

Code: [Select]
localhost linux # ./autogen.sh
aclocal...
generating Jamconfig.in ...
autoconf
Updating Source symlinks...

configure:

Code: [Select]
localhost linux # ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for target host... assume posix
checking for X... libraries , headers
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking for socklen_t... yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.5... yes
checking for xerces... found
checking for OpenAL... found
checking for pow in -lm... yes
checking for lua.hpp in /usr/local/include/lua5.1... no
checking for lua.hpp in /usr/local/include... no
checking for lua.hpp in /usr/include/lua5.1... no
checking for lua.hpp in /usr/include... yes
checking for luaL_newstate in -llua... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking whether we are using the Microsoft C compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenGL library... -lGL
checking for OpenGL Utility library... -lGLU
checking for Vorbis... yes
checking for Ogg... yes
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0 (--unicode=yes)... yes (version 2.6.4)
configure: creating ./config.status
config.status: creating Jamconfig
config.status: executing Jamfile commands
configure:

Notice: This project uses jam (and not make) as build tool.

jam:

Code: [Select]
localhost linux # jam
...found 505 target(s)...
...using 21 temp target(s)...
...updating 121 target(s)...
C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/platform/posix/socket.o
shared_lib/sources/platform/posix/socket.cpp: In constructor 'Shared::Platform::Ip::Ip(const std::string&)':
shared_lib/sources/platform/posix/socket.cpp:54: error: 'atoi' was not declared in this scope
shared_lib/sources/platform/posix/socket.cpp: In static member function 'static void Shared::Platform::Socket::throwException(const std::string&)':
shared_lib/sources/platform/posix/socket.cpp:207: error: 'strerror' was not declared in this scope
shared_lib/sources/platform/posix/socket.cpp: In member function 'void Shared::Platform::ClientSocket::connect(const Shared::Platform::Ip&, int)':
shared_lib/sources/platform/posix/socket.cpp:217: error: 'memset' was not declared in this scope

    g++ -c -o ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/platform/posix/socket.o  -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="3.1.2" -DPACKAGE_STRING="glest 3.1.2" -DPACKAGE_BUGREPORT="matze@braunis.de" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DHAVE_GLOB_H=1 -DHAVE_SYS_IOCTL_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -pthread     -I/usr/include -Ishared_lib/sources/../include/platform/sdl -Ishared_lib/sources/../include/platform/posix -Ishared_lib/sources/../include/util -Ishared_lib/sources/../include/graphics -Ishared_lib/sources/../include/graphics/gl -Ishared_lib/sources/../include/sound -Ishared_lib/sources/../include/sound/openal -Ishared_lib/sources/../include/xml -Ishared_lib/sources/../include/glew -Ishared_lib/sources/../include/lua   -O3 -DNDEBUG shared_lib/sources/platform/posix/socket.cpp

[color=red]...failed C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/platform/posix/socket.o ...[/color]
C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/properties.o
shared_lib/sources/util/properties.cpp: In member function 'void Shared::Util::Properties::load(const std::string&)':
shared_lib/sources/util/properties.cpp:50: error: 'strlen' was not declared in this scope

    g++ -c -o ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/properties.o  -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="3.1.2" -DPACKAGE_STRING="glest 3.1.2" -DPACKAGE_BUGREPORT="matze@braunis.de" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DHAVE_GLOB_H=1 -DHAVE_SYS_IOCTL_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -pthread     -I/usr/include -Ishared_lib/sources/../include/platform/sdl -Ishared_lib/sources/../include/platform/posix -Ishared_lib/sources/../include/util -Ishared_lib/sources/../include/graphics -Ishared_lib/sources/../include/graphics/gl -Ishared_lib/sources/../include/sound -Ishared_lib/sources/../include/sound/openal -Ishared_lib/sources/../include/xml -Ishared_lib/sources/../include/glew -Ishared_lib/sources/../include/lua   -O3 -DNDEBUG shared_lib/sources/util/properties.cpp

[color=red]...failed C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/properties.o ...[/color]
C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/util.o
shared_lib/sources/util/util.cpp: In function 'void Shared::Util::copyStringToBuffer(char*, int, const std::string&)':
shared_lib/sources/util/util.cpp:117: error: 'strncpy' was not declared in this scope

    g++ -c -o ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/util.o  -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="3.1.2" -DPACKAGE_STRING="glest 3.1.2" -DPACKAGE_BUGREPORT="matze@braunis.de" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DHAVE_GLOB_H=1 -DHAVE_SYS_IOCTL_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -pthread     -I/usr/include -Ishared_lib/sources/../include/platform/sdl -Ishared_lib/sources/../include/platform/posix -Ishared_lib/sources/../include/util -Ishared_lib/sources/../include/graphics -Ishared_lib/sources/../include/graphics/gl -Ishared_lib/sources/../include/sound -Ishared_lib/sources/../include/sound/openal -Ishared_lib/sources/../include/xml -Ishared_lib/sources/../include/glew -Ishared_lib/sources/../include/lua   -O3 -DNDEBUG shared_lib/sources/util/util.cpp

[color=red]...failed C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/util.o ...[/color]
C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/conversion.o
shared_lib/sources/util/conversion.cpp: In function 'int Shared::Util::strToInt(const std::string&)':
shared_lib/sources/util/conversion.cpp:37: error: 'strtol' was not declared in this scope
shared_lib/sources/util/conversion.cpp: In function 'float Shared::Util::strToFloat(const std::string&)':
shared_lib/sources/util/conversion.cpp:49: error: 'strtod' was not declared in this scope
shared_lib/sources/util/conversion.cpp: In function 'bool Shared::Util::strToInt(const std::string&, int*)':
shared_lib/sources/util/conversion.cpp:73: error: 'strtol' was not declared in this scope
shared_lib/sources/util/conversion.cpp: In function 'bool Shared::Util::strToFloat(const std::string&, float*)':
shared_lib/sources/util/conversion.cpp:83: error: 'strtod' was not declared in this scope

    g++ -c -o ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/conversion.o  -DPACKAGE_NAME="glest" -DPACKAGE_TARNAME="glest" -DPACKAGE_VERSION="3.1.2" -DPACKAGE_STRING="glest 3.1.2" -DPACKAGE_BUGREPORT="matze@braunis.de" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DUSE_POSIX_SOCKETS= -DX11_AVAILABLE=1 -DHAVE_GLOB_H=1 -DHAVE_SYS_IOCTL_H=1 -DUSE_SDL= -DHAVE_PTHREAD=1 -I. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -pthread     -I/usr/include -Ishared_lib/sources/../include/platform/sdl -Ishared_lib/sources/../include/platform/posix -Ishared_lib/sources/../include/util -Ishared_lib/sources/../include/graphics -Ishared_lib/sources/../include/graphics/gl -Ishared_lib/sources/../include/sound -Ishared_lib/sources/../include/sound/openal -Ishared_lib/sources/../include/xml -Ishared_lib/sources/../include/glew -Ishared_lib/sources/../include/lua   -O3 -DNDEBUG shared_lib/sources/util/conversion.cpp

[color=red]...failed C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/util/conversion.o ...[/color]
....
« Last Edit: 1 January 1970, 00:00:00 by temnozor »

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
(No subject)
« Reply #1 on: 31 July 2008, 10:04:02 »
Your compiler complains about missing standard library includes. jrepan made a patch:
http://http://glest.org/glest_board/viewtopic.php?p=16250#16250
« Last Edit: 1 January 1970, 00:00:00 by Yggdrasil »

 

anything