Sorry if it's not the correct list to point out compilation problems, but it was the only one I could find. Anyway, I've checked out a fresh CVS copy of crimson, and tried to compile it. First problem was automake not adding correct links to config.guess and config.sub, but I'm advanced enough to deal with it ;) Worse however is that compilation bails out on tools/cfed.cpp with message indicating missing mission.h (full make output attached later) Looking for it I've found two mission.h in the package: in src/cf and src/comet. I've tried adding either of them to include search list (tools/Makefile.am line 28, AM_CPPFLAGS) and adding src/comet helped compiling. I have no idea how the same in cfed_CPPFLAGS line below didn't made it to the command line, but it didn't. The line made it to Makefile.in, but it was the only place string cfed_CPPFLAGS could be found. But this didn't solve the problem as well, this time compiling went fine but linking failed with an awful many undefined references. Finally I was able to compile it (probably) correct, at least without error messages, copying -DDISABLE_SOUND from cfed_CPPFLAGS to AM_CPPFLAGS, so I take it it was all caused by the fact cfed_CPPFLAGS didn't made it. I'm using: automake 1.6.3 autoconf 2.53a aclocal 1.6.3 gcc 2.95.4 If I can help you any further please tell me. Torinthiel ------ make output: source='cfed.cpp' object='cfed.o' libtool=no \ depfile='.deps/cfed.Po' tmpdepfile='.deps/cfed.TPo' \ depmode=gcc /bin/sh ../config/depcomp \ g++ -DPACKAGE_NAME=\"Crimson\ Fields\" -DPACKAGE_TARNAME=\"crimson\" -DPACKAGE_VERSION=\"0.3.8\" -DPACKAGE_STRING=\"Crimson\ Fields\ 0.3.8\" -DPACKAGE_BUGREPORT=\"jensgr@gmx.net\" -DPACKAGE=\"crimson\" -DVERSION=\"0.3.8\" -DHAVE_LIBZ=1 -DHAVE_DIRENT_H=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -I../src/common -g -O2 -I/usr/X11R6/include/SDL -D_REENTRANT -c -o cfed.o `test -f 'cfed.cpp' || echo './'`cfed.cpp cfed.cpp:30: mission.h: No such file or directory make: *** [cfed.o] Error 1 ------ make output after adding -I: g++ -g -O2 -I/usr/X11R6/include/SDL -D_REENTRANT -o cfed cfed.o fileio.o lang.o list.o lset.o misc.o rect.o sound.o strutil.o surface.o building.o map.o mission.o unit.o -lz -L/usr/X11R6/lib -lSDL sound.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::replace(unsigned int, unsigned int, char const *, unsigned int)': /usr/include/g++/std/bastring.cc(.text+0x52): undefined reference to `Mix_OpenAudio' sound.o: In function `Audio::SetMusicVolume(int)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:218: undefined reference to `Mix_VolumeMusic' sound.o: In function `Audio::PlayMusic(unsigned short)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:231: undefined reference to `Mix_FadeInMusic' sound.o: In function `Audio::ShutdownMusic(void)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:264: undefined reference to `Mix_HaltMusic' /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:265: undefined reference to `Mix_FreeMusic' sound.o: In function `Audio::ShutdownBase(void)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:281: undefined reference to `Mix_CloseAudio' sound.o: In function `SoundEffect::SoundEffect(char const *)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:301: undefined reference to `Mix_LoadWAV_RW' sound.o: In function `SoundEffect::~SoundEffect(void)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:316: undefined reference to `Mix_FreeChunk' sound.o: In function `SoundEffect::Play(unsigned short)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:331: undefined reference to `Mix_PlayChannelTimed' sound.o: In function `SoundEffect::Stop(void)': /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:346: undefined reference to `Mix_Playing' /home/torinthiel/games/crimson/tools/../src/common/sound.cpp:346: undefined reference to `Mix_HaltChannel' collect2: ld returned 1 exit status make: *** [cfed] Error 1 -- Waclaw "Torinthiel" Schiller GG#: 542916, 3073512 torinthiel(at)wp(dot)pl gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8 7346 2B6E 39F2 B069 01F1 "No classmates may be used during this examination"
Attachment:
pgp00000.pgp
Description: PGP signature