New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12992 (closed defect: duplicate)

Opened 6 years ago

Last modified 4 years ago

BUG: ode-0.8 build failure in Mac OS X 10.5 Leopard

Reported by: garrett.moon macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: ode leopard Cc: garrett.moon+macports@…, heathkit@…, ryandesign@…
Port:

Description

Ode fails to build in OS X 10.5 Leopard. Here is my 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 if g++ -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.

Change History

comment:1 Changed 6 years ago by heathkit@…

I'm not sure why, but all the examples and drawing library depend on a bunch of apple headers, including cssmconfig.h, which creates the conflict. I was able to build manually, but i don't know how to fix the port file.

I worked around the conflict by just commenting out that line from ode/config.h. It's a pretty embarassing hack, but it worked and I can always uncomment it later.

After that, you get link errors same as in bug 12997. I just went through the Makefiles and removed every -L/usr/X11/lib

If you do that, you should be able to get it to build, and then just install as normal.

comment:2 Changed 6 years ago by ryandesign@…

  • Cc macports-dev@… removed
  • Summary changed from BUG: ode-0.8 build failure in leopard to BUG: ode-0.8 build failure in Mac OS X 10.5 Leopard
  • Milestone set to Port Bugs

The portfile can be made to perform those substitutions, if that is the correct fix. Has anyone talked with the authors of the ode software to confirm that that is the correct fix? If not, someone should do so. The port has no maintainer, so someone who cares will have to step up and do this.

comment:3 Changed 6 years ago by ryandesign@…

  • Cc heathkit@…, ryandesign@… added

comment:4 Changed 6 years ago by noah macosforge@…

Another way to fix it (for 0.9) is to add "--disable-demos --without-x" to the configure args.

comment:5 Changed 5 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to duplicate

This has been fixed, see #13584 and r34748.

comment:6 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.