Subject: building sdl under macosx
To: None <tech-pkg@netbsd.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: tech-pkg
Date: 04/08/2004 12:33:04
Hi, i can't build devel/SDL under macosx
This happens under mac os x 10.3, with compiler
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)



i get the error :
 gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.2.6\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -no-cpp-precomp -I/Volumes/NetBSD/pkgsrc/devel/SDL/work/.buildlink/include -DGLX_GLXEXT_LEGACY -O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -fpascal-strings -DENABLE_QUARTZ -DMACOSX -DTARGET_API_MAC_CARBON=1 -I../../../src/video/quartz -DHAVE_OPENGL -D_THREAD_SAFE -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX -DHAVE_SEMUN -I../../../include -I../../../include/SDL -I../../../src -I../../../src/macosx -I../../../src/main -I../../../src/audio -I../../../src/video -I../../../src/video/XFree86/extensions -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -c SDL_romaudio.c  -fno-common -DPIC -o .libs/SDL_romaudio.o
SDL_romaudio.c:29:22: Carbon.h: No such file or directory
In file included from SDL_romaudio.c:44:
SDL_romaudio.h:41: error: parse error before "SndChannelPtr"
SDL_romaudio.h:41: warning: no semicolon at end of struct or union
SDL_romaudio.c: In function `Audio_CreateDevice':
SDL_romaudio.c:74: warning: implicit declaration of function `memset'
SDL_romaudio.c:76: error: dereferencing pointer to incomplete type
SDL_romaudio.c:85: error: dereferencing pointer to incomplete type
SDL_romaudio.c: At top level:
SDL_romaudio.c:111: error: parse error before "audio_is_locked"
SDL_romaudio.c:111: warning: type defaults to `int' in declaration of `audio_is_locked'
SDL_romaudio.c:111: warning: data definition has no type or storage class
SDL_romaudio.c:112: error: parse error before "need_to_mix"
SDL_romaudio.c:112: warning: type defaults to `int' in declaration of `need_to_mix'
SDL_romaudio.c:112: warning: data definition has no type or storage class
SDL_romaudio.c:114: error: parse error before '*' token
SDL_romaudio.c:114: warning: type defaults to `int' in declaration of `buffer'
SDL_romaudio.c:114: warning: data definition has no type or storage class
SDL_romaudio.c:115: error: parse error before "running"
SDL_romaudio.c:115: warning: type defaults to `int' in declaration of `running'
SDL_romaudio.c:115: warning: data definition has no type or storage class
SDL_romaudio.c:116: error: parse error before "header"
SDL_romaudio.c:116: warning: type defaults to `int' in declaration of `header'
SDL_romaudio.c:116: warning: data definition has no type or storage class
SDL_romaudio.c:119: error: parse error before "UInt8"
SDL_romaudio.c: In function `mix_buffer':
SDL_romaudio.c:121: error: `audio' undeclared (first use in this function)
SDL_romaudio.c:121: error: (Each undeclared identifier is reported only once
SDL_romaudio.c:121: error: for each function it appears in.)
SDL_romaudio.c:132: warning: implicit declaration of function `memcpy'
SDL_romaudio.c:141: warning: implicit declaration of function `DecrementAtomic'
SDL_romaudio.c:141: error: `SInt32' undeclared (first use in this function)
SDL_romaudio.c:141: error: parse error before ')' token
SDL_romaudio.c: In function `Mac_LockAudio':
SDL_romaudio.c:146: warning: implicit declaration of function `IncrementAtomic'
SDL_romaudio.c:146: error: `SInt32' undeclared (first use in this function)
SDL_romaudio.c:146: error: parse error before ')' token
SDL_romaudio.c: In function `Mac_UnlockAudio':
SDL_romaudio.c:151: error: `SInt32' undeclared (first use in this function)
SDL_romaudio.c:151: error: parse error before "oldval"
SDL_romaudio.c:153: error: `oldval' undeclared (first use in this function)
SDL_romaudio.c:153: error: parse error before ')' token
SDL_romaudio.c:158: warning: implicit declaration of function `BitAndAtomic'
SDL_romaudio.c:158: error: `UInt32' undeclared (first use in this function)
SDL_romaudio.c:158: error: parse error before ')' token
SDL_romaudio.c: At top level:
SDL_romaudio.c:168: error: parse error before '*' token
SDL_romaudio.c: In function `callBackProc':
SDL_romaudio.c:169: error: `UInt32' undeclared (first use in this function)
SDL_romaudio.c:169: error: parse error before "play_me"
SDL_romaudio.c:170: error: `SndCommand' undeclared (first use in this function)
SDL_romaudio.c:171: error: `chan' undeclared (first use in this function)
SDL_romaudio.c:173: error: `SInt32' undeclared (first use in this function)
SDL_romaudio.c:173: error: parse error before ')' token
SDL_romaudio.c:175: error: `cmd_passed' undeclared (first use in this function)
SDL_romaudio.c:176: error: `play_me' undeclared (first use in this function)
SDL_romaudio.c:183: error: request for member `samplePtr' in something not a structure or union
SDL_romaudio.c:183: error: `Ptr' undeclared (first use in this function)
SDL_romaudio.c:183: error: parse error before "buffer"
SDL_romaudio.c:184: error: `cmd' undeclared (first use in this function)
SDL_romaudio.c:184: error: `bufferCmd' undeclared (first use in this function)
SDL_romaudio.c:187: warning: implicit declaration of function `SndDoCommand'
SDL_romaudio.c:195: error: parse error before ')' token
SDL_romaudio.c:201: error: `callBackCmd' undeclared (first use in this function)
SDL_romaudio.c: In function `Mac_OpenAudio':
SDL_romaudio.c:211: error: `SndCallBackUPP' undeclared (first use in this function)
SDL_romaudio.c:211: error: parse error before "callback"
SDL_romaudio.c:232: error: `callback' undeclared (first use in this function)
SDL_romaudio.c:232: warning: implicit declaration of function `NewSndCallBackUPP'
SDL_romaudio.c:241: error: request for member `numChannels' in something not a structure or union
SDL_romaudio.c:242: error: request for member `sampleSize' in something not a structure or union
SDL_romaudio.c:243: error: request for member `sampleRate' in something not a structure or union
SDL_romaudio.c:244: error: request for member `numFrames' in something not a structure or union
SDL_romaudio.c:245: error: request for member `encode' in something not a structure or union
SDL_romaudio.c:245: error: `cmpSH' undeclared (first use in this function)
SDL_romaudio.c:249: error: request for member `compressionID' in something not a structure or union
SDL_romaudio.c:249: error: `fixedCompression' undeclared (first use in this function)
SDL_romaudio.c:250: error: request for member `format' in something not a structure or union
SDL_romaudio.c:250: error: `k16BitLittleEndianFormat' undeclared (first use in this function)
SDL_romaudio.c:255: error: `UInt8' undeclared (first use in this function)
SDL_romaudio.c:255: error: parse error before ')' token
SDL_romaudio.c:264: error: dereferencing pointer to incomplete type
SDL_romaudio.c:264: error: `SndChannelPtr' undeclared (first use in this function)
SDL_romaudio.c:264: error: parse error before "malloc"
SDL_romaudio.c:265: error: dereferencing pointer to incomplete type
SDL_romaudio.c:270: error: `initStereo' undeclared (first use in this function)
SDL_romaudio.c:272: error: `initMono' undeclared (first use in this function)
SDL_romaudio.c:274: error: dereferencing pointer to incomplete type
SDL_romaudio.c:275: error: dereferencing pointer to incomplete type
SDL_romaudio.c:276: warning: implicit declaration of function `SndNewChannel'
SDL_romaudio.c:276: error: dereferencing pointer to incomplete type
SDL_romaudio.c:276: error: `sampledSynth' undeclared (first use in this function)
SDL_romaudio.c:276: error: `noErr' undeclared (first use in this function)
SDL_romaudio.c:278: error: dereferencing pointer to incomplete type
SDL_romaudio.c:279: error: dereferencing pointer to incomplete type
SDL_romaudio.c:285: error: `SndCommand' undeclared (first use in this function)
SDL_romaudio.c:285: error: parse error before "cmd"
SDL_romaudio.c:286: error: `cmd' undeclared (first use in this function)
SDL_romaudio.c:286: error: `callBackCmd' undeclared (first use in this function)
SDL_romaudio.c:289: error: dereferencing pointer to incomplete type
SDL_romaudio.c: In function `Mac_CloseAudio':
SDL_romaudio.c:301: error: dereferencing pointer to incomplete type
SDL_romaudio.c:302: warning: implicit declaration of function `SndDisposeChannel'
SDL_romaudio.c:302: error: dereferencing pointer to incomplete type
SDL_romaudio.c:302: error: `true' undeclared (first use in this function)
SDL_romaudio.c:303: error: dereferencing pointer to incomplete type
gnumake[3]: *** [SDL_romaudio.lo] Error 1
gnumake[2]: *** [all-recursive] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all-recursive] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/devel/SDL