[MacPorts] #14193: The port ode do not compile on Leopard
MacPorts
trac at macosforge.org
Tue Feb 5 09:50:14 PST 2008
#14193: The port ode do not compile on Leopard
----------------------------------+-----------------------------------------
Reporter: mathieusuen at yahoo.fr | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: ode compilation bug |
----------------------------------+-----------------------------------------
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
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14193>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list