New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14085 (closed defect: fixed)

Opened 5 years ago

Last modified 21 months ago

opendx compilation problem on Leopard and newer

Reported by: joergf@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: opendx

Description (last modified by jmpp@…) (diff)

When trying to install the opendx port on Leopard I ran into several compilation issues. There are several problems and I am trying to figure out how to patch the Portfile.

Currently, I am stuck with the following message:

kepler:base> make
g++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../widgets -I../../../include -Dmacos  -I/opt/local/include  -I/usr/X11R6/include  -g -O2 -I/usr/X11R6/include -c -o StartWebBrowser.o StartWebBrowser.C
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:48: error: declaration does not declare anything
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:64: error: multiple types in one declaration
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:64: error: declaration does not declare anything
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:68: error: declaration does not declare anything
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:72: error: multiple types in one declaration
/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:72: error: declaration does not declare anything
make: *** [StartWebBrowser.o] Error 1

This seems to be a problem with the header files on Leopard. It appears in other projects outside macports, too. I do not see what to make of it and how to avoid it. There seem to be two incompatible definitions for various types floating around. Would anyone know what to do?

Change History

comment:1 Changed 5 years ago by jmpp@…

  • Description modified (diff)

comment:2 Changed 5 years ago by ryandesign@…

  • Owner changed from macports-tickets@… to gwright@…

Assigning to maintainer of this port.

comment:3 Changed 5 years ago by kuroyagi@…

/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h defines uint64, uint32, uint16 and uint8 but they were already defined...

define following symbols to avoid this conflict

--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/opendx/Portfile.orig     2008-06-03 17:27:07.000000000 +0900
+++ /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/opendx/Portfile    2008-06-03 17:28:34.000000000 +0900
@@ -51,7 +51,8 @@
                JAVAP=/usr/bin/javap            \
                LDFLAGS="-dylib_file \
 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
-/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
+/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib" \
+               CPPFLAGS="-D_UINT64 -D_UINT32 -D_UINT16 -D_UINT8"
 configure.args --x-includes=/usr/X11R6/include \
                --x-libraries=/usr/X11R6/lib    \
                --with-jni-path=/System/Library/Frameworks/JavaVM.framework/Headers     \

comment:4 Changed 5 years ago by jmr@…

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

Thanks, applied in r37654.

comment:5 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

comment:6 Changed 22 months ago by ralph@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

A similar change is needed for Lion. Duplicating the darwin 9 block as darwin 11 seems to work.

comment:7 Changed 22 months ago by jmr@…

  • Keywords opendx compiletime error removed
  • Port set to opendx
  • Summary changed from opendx compilation problem on Leopard to opendx compilation problem on Leopard and newer

comment:8 Changed 21 months ago by jmr@…

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.