#14118 closed defect (fixed)
glpong 1.0 doesn't build
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description
glpong doesn't build for me, on Mac OS X 10.4.11 Intel, Xcode 2.4.1, MacPorts 1.7.0 from trunk:
$ sudo port install glpong ---> Fetching glpong ---> Attempting to fetch glpong-1.0.tar.gz from http://math.missouristate.edu/~erik/files/ ---> Verifying checksum(s) for glpong ---> Extracting glpong ---> Configuring glpong ---> Building glpong with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_glpong/work/glpong-1.0" && make all " returned error 2 Command output: Making all in data make[1]: Nothing to be done for `all'. Making all in src /usr/bin/gcc-4.0 -DPACKAGE=\"glpong\" -DVERSION=\"1.0\" -DDATADIR=\"/opt/local/share/glpong\" -I. -I. -I/opt/local/include -O2 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11R6/include -c ai.c /usr/bin/gcc-4.0 -DPACKAGE=\"glpong\" -DVERSION=\"1.0\" -DDATADIR=\"/opt/local/share/glpong\" -I. -I. -I/opt/local/include -O2 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11R6/include -c game.c /usr/bin/gcc-4.0 -DPACKAGE=\"glpong\" -DVERSION=\"1.0\" -DDATADIR=\"/opt/local/share/glpong\" -I. -I. -I/opt/local/include -O2 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11R6/include -c input.c input.c: In function 'input_do': input.c:37: error: label at end of compound statement make[1]: *** [input.o] Error 1 make: *** [all-recursive] Error 1 Error: Status 1 encountered during processing. $
A version 1.2 is available; maybe we can update to that.
Change History (8)
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 17 years ago by sbplrports@…
nor 1.3
sudo port install glpong ---> Fetching glpong ---> Attempting to fetch glpong-1.3.tar.gz from http://math.missouristate.edu/~erik/files/ ---> Verifying checksum(s) for glpong ---> Extracting glpong ---> Configuring glpong ---> Building glpong with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_glpong/work/glpong-1.3" && make all " returned error 2 Command output: if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I/usr/X11R6/include -I/usr/local/include -I/opt/local/include -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11/include -framework OpenAL -DDATADIR=\"/opt/local/share/glpong\" -O2 -MT map.o -MD -MP -MF ".deps/map.Tpo" -c -o map.o map.c; \ then mv -f ".deps/map.Tpo" ".deps/map.Po"; else rm -f ".deps/map.Tpo"; exit 1; fi i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin9-gcc-4.0.1: OpenAL: linker input file unused because linking not done if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I/usr/X11R6/include -I/usr/local/include -I/opt/local/include -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11/include -framework OpenAL -DDATADIR=\"/opt/local/share/glpong\" -O2 -MT physics.o -MD -MP -MF ".deps/physics.Tpo" -c -o physics.o physics.c; \ then mv -f ".deps/physics.Tpo" ".deps/physics.Po"; else rm -f ".deps/physics.Tpo"; exit 1; fi i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin9-gcc-4.0.1: OpenAL: linker input file unused because linking not done if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I/usr/X11R6/include -I/usr/local/include -I/opt/local/include -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11/include -framework OpenAL -DDATADIR=\"/opt/local/share/glpong\" -O2 -MT sound.o -MD -MP -MF ".deps/sound.Tpo" -c -o sound.o sound.c; \ then mv -f ".deps/sound.Tpo" ".deps/sound.Po"; else rm -f ".deps/sound.Tpo"; exit 1; fi i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin9-gcc-4.0.1: OpenAL: linker input file unused because linking not done if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I/usr/X11R6/include -I/usr/local/include -I/opt/local/include -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11/include -framework OpenAL -DDATADIR=\"/opt/local/share/glpong\" -O2 -MT text.o -MD -MP -MF ".deps/text.Tpo" -c -o text.o text.c; \ then mv -f ".deps/text.Tpo" ".deps/text.Po"; else rm -f ".deps/text.Tpo"; exit 1; fi i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin9-gcc-4.0.1: OpenAL: linker input file unused because linking not done if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I/usr/X11R6/include -I/usr/local/include -I/opt/local/include -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11/include -framework OpenAL -DDATADIR=\"/opt/local/share/glpong\" -O2 -MT timer.o -MD -MP -MF ".deps/timer.Tpo" -c -o timer.o timer.c; \ then mv -f ".deps/timer.Tpo" ".deps/timer.Po"; else rm -f ".deps/timer.Tpo"; exit 1; fi i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin9-gcc-4.0.1: OpenAL: linker input file unused because linking not done if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/include -I/usr/X11R6/include -I/usr/local/include -I/opt/local/include -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11/include -framework OpenAL -DDATADIR=\"/opt/local/share/glpong\" -O2 -MT video.o -MD -MP -MF ".deps/video.Tpo" -c -o video.o video.c; \ then mv -f ".deps/video.Tpo" ".deps/video.Po"; else rm -f ".deps/video.Tpo"; exit 1; fi i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused because linking not done i686-apple-darwin9-gcc-4.0.1: OpenAL: linker input file unused because linking not done /usr/bin/gcc-4.0 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11/include -framework OpenAL -DDATADIR=\"/opt/local/share/glpong\" -O2 -L/opt/local/lib -L/usr/X11R6/lib -L/usr/local/lib -L/opt/local/lib -o glpong ai.o game.o image.o input.o main.o map.o physics.o sound.o text.o timer.o video.o -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lpng -lz -framework GLUT -framework OpenGL -framework Carbon -lobjc -framework OpenAL ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib collect2: ld returned 1 exit status make[2]: *** [glpong] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
MBP OSX 10.5.2 MP 1.6 Xcode 3.0
comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
Thank you for letting me know that glpong 1.3 is available. It compiles for me on Mac OS X 10.4.11 so I updated the port in r34262.
"ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib" is a common problem on Leopard for which we already have a fix in many portfiles. I'll add a fix to glpong as well.
comment:4 Changed 17 years ago by sbplrports@…
happy to help
modified my Portfile to include
platform darwin 9 { configure.ldflags-append \ -dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\ /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib }
installed fine for me in 10.5.2.
but now it wont terminate without suspending or doing a force quit.
any help with that. thanks.
comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Thanks for testing that. I'll add it to the portfile.
The software does not seem to respond well to clicking the window's close box or selecting Quit from the File menu. It quits when you press the Escape key, though. You should file a bug about this with the developers of glpong.
comment:6 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed the Leopard fix in r34276.
comment:7 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
There appear to be two ways to fix this:
- Append
-dylib_file FILE:FILE
to LDFLAGS - Append
-Wl,dylib_file,FILE:FILE
to LDFLAGS
in each case, "FILE" is "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib".
What I committed in r34276 was neither of those, so I don't think that's valid. I changed it to the first form, which is also the form described in the Apple Developer Technical Q&A, in r34277.
No, 1.2 doesn't build either:
And neither does 1.1: