[MacPorts] #20087: libsdl won't build on Mac OS X 10.4.11
MacPorts
noreply at macports.org
Sat Jun 27 16:12:17 PDT 2009
#20087: libsdl won't build on Mac OS X 10.4.11
----------------------------+-----------------------------------------------
Reporter: avioli@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: | Port: libsdl
----------------------------+-----------------------------------------------
Comment(by avioli@…):
Downloaded SDL-1.2.13.tar.gz from http://www.libsdl.org/download-1.2.php
make yields:
{{{
aviolis-computer:~/Downloads/SDL-1.2.13 aviolito$ make
/bin/sh ./build-scripts/mkinstalldirs build
mkdir -p -- build
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/SDL.c -o build/SDL.lo
mkdir build/.libs
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL.c
-fno-common -DPIC -o build/.libs/SDL.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL.c -o
build/SDL.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/SDL_error.c -o build/SDL_error.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL_error.c
-fno-common -DPIC -o build/.libs/SDL_error.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL_error.c
-o build/SDL_error.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/SDL_fatal.c -o build/SDL_fatal.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL_fatal.c
-fno-common -DPIC -o build/.libs/SDL_fatal.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/SDL_fatal.c
-o build/SDL_fatal.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_audio.c -o build/SDL_audio.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_audio.c -fno-common -DPIC -o build/.libs/SDL_audio.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_audio.c -o build/SDL_audio.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_audiocvt.c -o build/SDL_audiocvt.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_audiocvt.c -fno-common -DPIC -o
build/.libs/SDL_audiocvt.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_audiocvt.c -o build/SDL_audiocvt.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_audiodev.c -o build/SDL_audiodev.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_audiodev.c -fno-common -DPIC -o
build/.libs/SDL_audiodev.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_audiodev.c -o build/SDL_audiodev.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_mixer.c -o build/SDL_mixer.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer.c -fno-common -DPIC -o build/.libs/SDL_mixer.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer.c -o build/SDL_mixer.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_mixer_MMX.c -o build/SDL_mixer_MMX.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer_MMX.c -fno-common -DPIC -o
build/.libs/SDL_mixer_MMX.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer_MMX.c -o build/SDL_mixer_MMX.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_mixer_MMX_VC.c -o
build/SDL_mixer_MMX_VC.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer_MMX_VC.c -fno-common -DPIC -o
build/.libs/SDL_mixer_MMX_VC.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer_MMX_VC.c -o build/SDL_mixer_MMX_VC.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_mixer_m68k.c -o
build/SDL_mixer_m68k.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer_m68k.c -fno-common -DPIC -o
build/.libs/SDL_mixer_m68k.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_mixer_m68k.c -o build/SDL_mixer_m68k.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/audio/SDL_wave.c -o build/SDL_wave.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_wave.c -fno-common -DPIC -o build/.libs/SDL_wave.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/audio/SDL_wave.c -o build/SDL_wave.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/cdrom/SDL_cdrom.c -o build/SDL_cdrom.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/cdrom/SDL_cdrom.c -fno-common -DPIC -o build/.libs/SDL_cdrom.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/cdrom/SDL_cdrom.c -o build/SDL_cdrom.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/cpuinfo/SDL_cpuinfo.c -o build/SDL_cpuinfo.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/cpuinfo/SDL_cpuinfo.c -fno-common -DPIC -o
build/.libs/SDL_cpuinfo.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/cpuinfo/SDL_cpuinfo.c -o build/SDL_cpuinfo.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/events/SDL_active.c -o build/SDL_active.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/events/SDL_active.c -fno-common -DPIC -o build/.libs/SDL_active.o
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/events/SDL_active.c -o build/SDL_active.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL
-fpascal-strings -c ./src/events/SDL_events.c -o build/SDL_events.lo
gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS
-D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c
./src/events/SDL_events.c -fno-common -DPIC -o build/.libs/SDL_events.o
In file included from ./src/events/SDL_events.c:27:
./include/SDL_syswm.h:55:22: error: X11/Xlib.h: No such file or directory
./include/SDL_syswm.h:56:23: error: X11/Xatom.h: No such file or directory
In file included from ./src/events/SDL_events.c:27:
./include/SDL_syswm.h:73: error: parse error before 'XEvent'
./include/SDL_syswm.h:73: warning: no semicolon at end of struct or union
./include/SDL_syswm.h:73: warning: no semicolon at end of struct or union
./include/SDL_syswm.h:74: warning: data definition has no type or storage
class
./include/SDL_syswm.h:75: error: parse error before '}' token
./include/SDL_syswm.h:86: error: parse error before 'Display'
./include/SDL_syswm.h:86: warning: no semicolon at end of struct or union
./include/SDL_syswm.h:86: warning: no semicolon at end of struct or union
./include/SDL_syswm.h:86: warning: no semicolon at end of struct or union
./include/SDL_syswm.h:87: warning: data definition has no type or storage
class
./include/SDL_syswm.h:98: error: parse error before 'fswindow'
./include/SDL_syswm.h:98: warning: data definition has no type or storage
class
./include/SDL_syswm.h:99: error: parse error before 'wmwindow'
./include/SDL_syswm.h:99: warning: data definition has no type or storage
class
./include/SDL_syswm.h:102: error: parse error before '*' token
./include/SDL_syswm.h:102: warning: data definition has no type or storage
class
./include/SDL_syswm.h:103: error: parse error before '}' token
./include/SDL_syswm.h:103: warning: data definition has no type or storage
class
./include/SDL_syswm.h:104: error: parse error before '}' token
./include/SDL_syswm.h:104: warning: data definition has no type or storage
class
./include/SDL_syswm.h:105: error: parse error before '}' token
./include/SDL_syswm.h:105: warning: data definition has no type or storage
class
./include/SDL_syswm.h:205: error: parse error before '*' token
In file included from ./src/events/SDL_sysevents.h:24,
from ./src/events/SDL_events.c:28:
./src/events/../video/SDL_sysvideo.h:218: error: parse error before
'SDL_SysWMinfo'
./src/events/SDL_events.c:49: error: array type has incomplete element
type
./src/events/SDL_events.c: In function 'SDL_AddEvent':
./src/events/SDL_events.c:276: error: dereferencing pointer to incomplete
type
make: *** [build/SDL_events.lo] Error 1
aviolis-computer:~/Downloads/SDL-1.2.13 aviolito$
}}}
--
Ticket URL: <http://trac.macports.org/ticket/20087#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list