Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14193 closed defect (duplicate)

The port ode do not compile on Leopard

Reported by: mathieusuen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: ode compilation bug Cc:
Port:

Description

Hi,

I have gcc install 4.0 from XCode and I am running MocOSX 10.5.1. When I install the ode port I get a compilation bug.

Here the output:

--->  Attempting to fetch ode-src-0.8.zip from http://downloads.sourceforge.net/opende
--->  Verifying checksum(s) for ode
--->  Extracting ode
--->  Applying patches to ode
--->  Configuring ode
--->  Building ode 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_devel_ode/work/ode-0.8" && gnumake all " returned error 2
Command output: gnumake  all-am
gnumake[3]: Nothing to be done for `all-am'.
gnumake[2]: Nothing to be done for `all-am'.
Making all in drawstuff
Making all in src
if /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I. -I../../include/ode   -I/opt/local/include -I../../include -I../../include -O2 -I/usr/X11/include -L/usr/X11/lib -MT libdrawstuff_a-drawstuff.o -MD -MP -MF ".deps/libdrawstuff_a-drawstuff.Tpo" -c -o libdrawstuff_a-drawstuff.o `test -f 'drawstuff.cpp' || echo './'`drawstuff.cpp; \
	then mv -f ".deps/libdrawstuff_a-drawstuff.Tpo" ".deps/libdrawstuff_a-drawstuff.Po"; else rm -f ".deps/libdrawstuff_a-drawstuff.Tpo"; exit 1; fi
if /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I. -I../../include/ode   -I/opt/local/include -I../../include -I../../include -O2 -I/usr/X11/include -L/usr/X11/lib -MT libdrawstuff_a-osx.o -MD -MP -MF ".deps/libdrawstuff_a-osx.Tpo" -c -o libdrawstuff_a-osx.o `test -f 'osx.cpp' || echo './'`osx.cpp; \
	then mv -f ".deps/libdrawstuff_a-osx.Tpo" ".deps/libdrawstuff_a-osx.Po"; else rm -f ".deps/libdrawstuff_a-osx.Tpo"; exit 1; fi
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:64: error: conflicting declaration 'typedef uint32_t uint32'
../../include/ode/config.h:348: error: 'uint32' has a previous declaration as 'typedef short unsigned int uint32'
osx.cpp: In function 'OSStatus osxKeyEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
osx.cpp:183: warning: 'GetScriptVariable' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:1174)
osx.cpp:183: warning: 'GetScriptVariable' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:1174)
osx.cpp:186: warning: 'UppercaseText' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextUtils.h:323)
osx.cpp:186: warning: 'UppercaseText' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextUtils.h:323)
osx.cpp: In function 'void osxCloseMainWindow()':
osx.cpp:318: warning: 'aglSetDrawable' is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:322)
osx.cpp:318: warning: 'aglSetDrawable' is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:322)
osx.cpp:324: warning: 'ReleaseWindow' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/MacWindows.h:11118)
osx.cpp:324: warning: 'ReleaseWindow' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/MacWindows.h:11118)
osx.cpp: In function 'void osxCreateMainWindow(int, int)':
osx.cpp:387: warning: 'AGLDevice' is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:53)
osx.cpp:387: warning: 'GetMainDevice' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:3314)
osx.cpp:387: warning: 'GetMainDevice' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:3314)
osx.cpp:442: warning: 'aglSetDrawable' is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:322)
osx.cpp:442: warning: 'aglSetDrawable' is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:322)
gnumake[2]: *** [libdrawstuff_a-osx.o] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

I then modify the source code and comment the line 348 of the config.h file. I still get an error:

Here again the output:

--->  Building ode 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_devel_ode/work/ode-0.8" && gnumake all " returned error 2
Command output: Making all in include
Making all in ode
gnumake  all-am
gnumake[3]: Nothing to be done for `all-am'.
gnumake[2]: Nothing to be done for `all-am'.
Making all in drawstuff
Making all in src
gnumake[2]: Nothing to be done for `all'.
Making all in dstest
/usr/bin/g++-4.0  -O2 -I/usr/X11/include -L/usr/X11/lib  -L/opt/local/lib -o dstest -L../../drawstuff/src dstest-dstest.o -ldrawstuff -L/opt/local/lib -framework OpenGL -framework Carbon -framework AGL  -lstdc++ -lm -lpthread  -lstdc++ -lm -lpthread
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
gnumake[2]: *** [dstest] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

Thanks

Change History (2)

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

Resolution: duplicate
Status: newclosed

Duplicate of #13584.

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.