[MacPorts] #22840: Need to add compiler flag to make this port work with Leopard

MacPorts noreply at macports.org
Thu Dec 10 07:34:15 PST 2009


#22840: Need to add compiler flag to make this port work with Leopard
-------------------------------+--------------------------------------------
 Reporter:  wojtek@…           |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  High               |   Milestone:                                       
Component:  ports              |     Version:  1.8.1                                
 Keywords:                     |        Port:  dcmtk                                
-------------------------------+--------------------------------------------
 This port does not presently install due to compiler errors.  Need to add
 the following flag to CFLAGS and CXXFLAGS in Makefile.def:

 -D_DARWIN_C_SOURCE

 After that all is ok.  Full error prior to modification appears below:

 {{{
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_dcmtk/work/dcmtk-3.5.4"
 && /usr/bin/make all " returned error 2
 Command output: (cd config && /usr/bin/make ARCH="" DESTDIR="" all)
 make[1]: Nothing to be done for `all'.
 (cd ofstd && /usr/bin/make ARCH="" DESTDIR="" all)
 (cd include; /usr/bin/make ARCH="" all)
 make[2]: Nothing to be done for `all'.
 (cd libsrc; /usr/bin/make ARCH="" all)
 /usr/bin/g++-4.2        -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include
 -I../../config/include   \
                 -I/opt/local/include -O -I/opt/local/include/libxml2
 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
 -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -O2 -arch x86_64
 oflist.cc
 /usr/bin/g++-4.2        -DHAVE_CONFIG_H  -DNDEBUG  -c -I. -I. -I../include
 -I../../config/include   \
                 -I/opt/local/include -O -I/opt/local/include/libxml2
 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
 -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -O2 -arch x86_64
 ofstring.cc
 In file included from /usr/include/sys/attr.h:42,
                  from /usr/include/sys/mount.h:76,
                  from /usr/include/libc.h:45,
                  from ../include/dcmtk/ofstd/ofstdinc.h:320,
                  from ../include/dcmtk/ofstd/ofstring.h:61,
                  from ofstring.cc:47:
 /usr/include/sys/ucred.h:91: error: 'u_long' does not name a type
 /usr/include/sys/ucred.h:137: error: 'u_int' does not name a type
 In file included from /usr/include/sys/mount.h:76,
                  from /usr/include/libc.h:45,
                  from ../include/dcmtk/ofstd/ofstdinc.h:320,
                  from ../include/dcmtk/ofstd/ofstring.h:61,
                  from ofstring.cc:47:
 /usr/include/sys/attr.h:77: error: 'u_short' does not name a type
 /usr/include/sys/attr.h:430: error: 'u_long' does not name a type
 /usr/include/sys/attr.h:442: error: 'u_char' does not name a type
 make[2]: *** [ofstring.o] Error 1
 make[1]: *** [libsrc-all] Error 2
 make: *** [ofstd-all] Error 2

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/22840>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list