Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18955 closed defect (fixed)

libsdl: 'GLX_NONE_EXT' undeclared (first use in this function)

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: fracai, mf2k (Frank Schima), swebster@…, jmroot (Joshua Root), garribald@…, alakazam@…
Port: libsdl

Description

I can't build libsdl 1.2.13_6 on Mac OS X 10.5.6 Intel with Xcode 3.1.2.

libsdl 1.2.13_5 had previously been installed without problem.

$ port installed libsdl
The following ports are currently installed:
  libsdl @1.2.13_5
$ port install libsdl
--->  Fetching libsdl
--->  Verifying checksum(s) for libsdl
--->  Extracting libsdl
--->  Configuring libsdl
--->  Building libsdl
Error: Target org.macports.build returned: shell command " cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_libsdl/work/SDL-1.2.13" && nice -n 10 make -j3 all " returned error 2
Command output: ./src/video/quartz/SDL_QuartzYUV.m: In function 'QZ_CreateYUVOverlay':
./src/video/quartz/SDL_QuartzYUV.m:180: warning: 'SetPort' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:292)
./src/video/quartz/SDL_QuartzYUV.m:194: warning: 'SetPort' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:292)
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/quartz/SDL_QuartzYUV.m -o build/SDL_QuartzYUV.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11dga.c  -o build/SDL_x11dga.lo
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11dga.c  -fno-common -DPIC -o build/.libs/SDL_x11dga.o
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11dyn.c  -o build/SDL_x11dyn.lo
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11dga.c -o build/SDL_x11dga.o >/dev/null 2>&1
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11dyn.c  -fno-common -DPIC -o build/.libs/SDL_x11dyn.o
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11events.c  -o build/SDL_x11events.lo
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11events.c  -fno-common -DPIC -o build/.libs/SDL_x11events.o
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11dyn.c -o build/SDL_x11dyn.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11gamma.c  -o build/SDL_x11gamma.lo
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11events.c -o build/SDL_x11events.o >/dev/null 2>&1
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11gamma.c  -fno-common -DPIC -o build/.libs/SDL_x11gamma.o
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11gamma.c -o build/SDL_x11gamma.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11gl.c  -o build/SDL_x11gl.lo
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11image.c  -o build/SDL_x11image.lo
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11modes.c  -o build/SDL_x11modes.lo
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11gl.c  -fno-common -DPIC -o build/.libs/SDL_x11gl.o
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11image.c  -fno-common -DPIC -o build/.libs/SDL_x11image.o
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11modes.c  -fno-common -DPIC -o build/.libs/SDL_x11modes.o
./src/video/x11/SDL_x11gl.c: In function 'X11_GL_GetVisual':
./src/video/x11/SDL_x11gl.c:188: error: 'GLX_NONE_EXT' undeclared (first use in this function)
./src/video/x11/SDL_x11gl.c:188: error: (Each undeclared identifier is reported only once
./src/video/x11/SDL_x11gl.c:188: error: for each function it appears in.)
make: *** [build/SDL_x11gl.lo] Error 1
make: *** Waiting for unfinished jobs....
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11image.c -o build/SDL_x11image.o >/dev/null 2>&1
 /usr/bin/gcc-4.0 -O2 -I/mp/include -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/video/x11/SDL_x11modes.c -o build/SDL_x11modes.o >/dev/null 2>&1

Error: Status 1 encountered during processing.

Attachments (1)

libsdl-glxtokens.diff (827 bytes) - added by jmroot (Joshua Root) 16 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 16 years ago by fracai

Cc: arno+macports@… added

Cc Me!

comment:2 Changed 16 years ago by jwhowse4

I have the same configuration and I get the same compile error.

comment:3 Changed 16 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:4 Changed 16 years ago by swebster@…

Cc: swebster@… added

Cc Me!

Changed 16 years ago by jmroot (Joshua Root)

Attachment: libsdl-glxtokens.diff added

comment:5 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added

Fix attached.

BTW, there are a couple of unused patches in files/ which should probably be removed.

comment:6 Changed 16 years ago by garribald@…

Cc: garribald@… added

Cc Me!

comment:7 in reply to:  5 Changed 16 years ago by marco.comini@…

Fix attached.

BTW, there are a couple of unused patches in files/ which should probably be removed.

Probably a stupid question, when somebody attaches a fix with a diff file, what should one do to check it?

Now if i try to build I still get the error, I suppose it is because the fix is not still in the official repository... usually how long does it take since a fix is attached to a "defect ticket" till a "port selfupdate" gets the new port?

comment:8 Changed 16 years ago by swebster@…

I don't really know what I'm talking about, but I read the MacPorts Guide (http://guide.macports.org) and it says to apply a patch you go to the port directory, which in this case (for me anyway) is /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsdl

Then I just downloaded the patch from the patch page (there is a direct link at the bottom, this one: http://trac.macports.org/raw-attachment/ticket/18955/libsdl-glxtokens.diff) and ran the command (from the port directory above): patch -p0 < /path/to/the/downloaded/patchfile.diff

Then just sudo port upgrade libsdl

Might want to thrown in a port clean libsdl for good measure.

No idea how long it takes for this sort of thing to propagate to the main repository...

comment:9 Changed 16 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Fix committed in r48588.

comment:10 Changed 16 years ago by alakazam@…

Cc: alakazam@… added

Cc Me!

comment:11 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.