Page 1 of 1

Compiler-Problem with cdaudio

Posted: 17 Mar 2007, 20:58
by Manfred
Hello!

I try to compile the svn-revision 902 of wz but get a compiler-error on file cdautio.c

Code: Select all

make[2]: Betrete Verzeichnis '/home1/haegar/sources/warzone/lib/sound'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../lib/framework  -I../..   -g -DDEBUG -Wall -Wno-unused-label -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DYY_STATIC -DDEFAULT_DATADIR=\"/usr/local/share/warzone2100\" -g -O2 -O0 -MT cdaudio.o -MD -MP -MF ".deps/cdaudio.Tpo" -c -o cdaudio.o cdaudio.c; \
        then mv -f ".deps/cdaudio.Tpo" ".deps/cdaudio.Po"; else rm -f ".deps/cdaudio.Tpo"; exit 1; fi
cdaudio.c:104: error: expected declaration specifiers or ‘...’ before ‘ogg_int64_t’
cdaudio.c: In function ‘cdAudio_FillBuffer’:
cdaudio.c:366: warning: unused variable ‘section’
make[2]: *** [cdaudio.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home1/haegar/sources/warzone/lib/sound'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home1/haegar/sources/warzone/lib'
make: *** [all-recursive] Fehler 1
Can you give me a hint what to do?
What more informations do you need?

emm, think I should write something about the system ;)

Ubuntu 6.10
sdl-1.2.11
physfs-1.0.1
bison 2.3
flex 2.5.33



Greets,
Manfred

Re: Compiler-Problem with cdaudio

Posted: 17 Mar 2007, 21:14
by Manfred
Hi!

Solved. ogg-dev was not installed ...  ::)

cu,
Manfred

Re: Compiler-Problem with cdaudio

Posted: 17 Mar 2007, 21:24
by gerard_
Didn't ./configure warn you about this? It should have...

Re: Compiler-Problem with cdaudio

Posted: 18 Mar 2007, 00:38
by Manfred
Indeed, it did, but I posted my question before I read the output of ./configure line by line ...

Re: Compiler-Problem with cdaudio

Posted: 18 Mar 2007, 02:02
by DevUrandom
configure should push an error if it is missing ogg when you requested it.
I guess we have some code which is not guarded by WZ_NOOGG...