Compiler-Problem with cdaudio

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Manfred
New user
Posts: 3
Joined: 16 Mar 2007, 08:49

Compiler-Problem with cdaudio

Post 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
Last edited by Manfred on 17 Mar 2007, 21:06, edited 1 time in total.
Manfred
New user
Posts: 3
Joined: 16 Mar 2007, 08:49

Re: Compiler-Problem with cdaudio

Post by Manfred »

Hi!

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

cu,
Manfred
gerard_
Trained
Trained
Posts: 71
Joined: 02 Nov 2006, 19:56

Re: Compiler-Problem with cdaudio

Post by gerard_ »

Didn't ./configure warn you about this? It should have...
Manfred
New user
Posts: 3
Joined: 16 Mar 2007, 08:49

Re: Compiler-Problem with cdaudio

Post by Manfred »

Indeed, it did, but I posted my question before I read the output of ./configure line by line ...
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Compiler-Problem with cdaudio

Post 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...