Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#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 16 years ago by ryandesign (Ryan Carsten Schmidt)

No, 1.2 doesn't build either:

$ sudo port install glpong
--->  Fetching glpong
--->  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.2" && make all " returned error 2
Command output: cd . \
  && CONFIG_FILES= CONFIG_HEADERS=config.h \
     /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make  all-recursive
Making all in data
make[2]: Nothing to be done for `all'.
Making all in src
source='ai.c' object='ai.o' libtool=no \
depfile='.deps/ai.Po' tmpdepfile='.deps/ai.TPo' \
depmode=none /bin/sh ../depcomp \
/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/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE   -I/usr/X11R6/include  -DDATADIR=\"/opt/local/share/glpong\" -O2 -c `test -f ai.c || echo './'`ai.c
../depcomp: ../depcomp: No such file or directory
make[2]: *** [ai.o] Error 127
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.
$

And neither does 1.1:

$ sudo port install glpong
--->  Fetching glpong
--->  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.1" && make all " returned error 2
Command output: sound.c:111: error: parse error before 'fwd'
sound.c:111: warning: data definition has no type or storage class
sound.c:112: error: parse error before 'sourcepos'
sound.c:112: warning: data definition has no type or storage class
sound.c:113: error: parse error before 'zero'
sound.c:113: warning: data definition has no type or storage class
sound.c:115: warning: parameter names (without types) in function declaration
sound.c:115: warning: data definition has no type or storage class
sound.c:116: error: parse error before '?' token
sound.c:116: warning: data definition has no type or storage class
sound.c:117: error: parse error before '?' token
sound.c:117: warning: data definition has no type or storage class
sound.c:119: warning: parameter names (without types) in function declaration
sound.c:119: warning: data definition has no type or storage class
sound.c:120: error: parse error before '?' token
sound.c:120: warning: data definition has no type or storage class
sound.c:121: warning: parameter names (without types) in function declaration
sound.c:121: warning: data definition has no type or storage class
sound.c:122: error: parse error before '[' token
sound.c:122: warning: data definition has no type or storage class
sound.c:123: error: parse error before numeric constant
sound.c:123: warning: data definition has no type or storage class
sound.c:124: error: parse error before numeric constant
sound.c:124: warning: data definition has no type or storage class
sound.c:125: warning: parameter names (without types) in function declaration
sound.c:125: warning: data definition has no type or storage class
sound.c:126: error: parse error before 'return'
make[2]: *** [glpong-sound.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.
$

comment:2 Changed 16 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 16 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 16 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 16 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 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Committed the Leopard fix in r34276.

comment:7 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

There appear to be two ways to fix this:

  1. Append -dylib_file FILE:FILE to LDFLAGS
  2. 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.

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.