[MacPorts] #40331: OpenJade 1.3.2 fails to build on PPC Tiger due to redefined SP_DEFINE_TEMPLATES

MacPorts noreply at macports.org
Sun Sep 1 11:18:48 PDT 2013


#40331: OpenJade 1.3.2 fails to build on PPC Tiger due to redefined
SP_DEFINE_TEMPLATES
-----------------------------+--------------------------------
 Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.2.99
 Keywords:                   |       Port:  openjade
-----------------------------+--------------------------------
 Trying to install docbook-utils port started with installing openjade,
 which failed here:

 {{{
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_mports_trunk_dports_textproc_openjade/openjade/work/openjade-1.3.2/grove'
 mkdir .libs
 /usr/bin/g++-4.0 -pipe -Os -isystem /opt/local/include -fno-rtti -arch ppc
 -I. -I./../include -I/opt/local/include/OpenSP
 -I/opt/local/include/OpenSP/.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
 -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
 -DPACKAGE=\"openjade\" -DVERSION=\"1.3.2\" -DHAVE_SYS_TYPES_H=1
 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DSIZEOF_SIZE_T=4
 -DSIZEOF_UNSIGNED_INT=4 -DSP_HAVE_LOCALE=1 -DSP_HAVE_WCHAR=1
 -DSP_HAVE_GETTEXT=1 -DSP_HAVE_BOOL=1 -DSP_ANSI_CLASS_INST=1
 -DSP_HAVE_SOCKET=1 -DJADE_MIF=1 -DJADE_HTML=1 -DSP_MULTI_BYTE=1
 -DSGML_CATALOG_FILES_DEFAULT=\"/opt/local/share/sgml/catalog\"
 -DHAVE_DLFCN_H=1
 -DDEFAULT_SCHEME_BUILTINS=\"/opt/local/share/sgml/openjade/builtins.dsl\"
 -c Node.cxx  -fno-common -DPIC
 In file included from Node.cxx:8:
 ./../include/config.h:39:1: warning: "SP_DEFINE_TEMPLATES" redefined
 In file included from ./../include/config.h:10,
                  from Node.cxx:8:
 /opt/local/include/OpenSP/config.h:367:1: warning: this is the location of
 the previous definition
 /opt/local/include/OpenSP/IList.h:13: error: template with C linkage
 /opt/local/include/OpenSP/IList.h:18: error: template with C linkage
 make[2]: *** [Node.lo] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_mports_trunk_dports_textproc_openjade/openjade/work/openjade-1.3.2/grove'
 make[1]: *** [grove] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_mports_trunk_dports_textproc_openjade/openjade/work/openjade-1.3.2'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_mports_trunk_dports_textproc_openjade/openjade/work/openjade-1.3.2'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_mports_trunk_dports_textproc_openjade/openjade/work/openjade-1.3.2"
 && /usr/bin/make -w all
 Exit code: 2
 }}}

 I have installed

 {{{
   opensp @1.5.2_1 (active)
 }}}

 Line 367 of /opt/local/include/OpenSP/config.h has:

 {{{
     366 /* define this to include template definitions in the headers */
     367 #define SP_DEFINE_TEMPLATES 1
     368
 }}}

 /opt/local/var/macports/build/_opt_mports_trunk_dports_textproc_openjade/openjade/work/openjade-1.3.2/include/config.h
 has:

 {{{
       7 // This is a nasty hack to make sure that we have
       8 // the same sort of setup as was used for
       9 // building libosp
      10 #include "/opt/local/include/OpenSP/config.h"
      11

      33 #ifdef __GNUG__
      34 // It's not missing, but it pulls in libg++
      35 #define SP_NEW_H_MISSING
      36 // set_new_handler() has to be declared extern "C"
      37 #define SP_SET_NEW_HANDLER_EXTERN_C
      38 #ifdef __APPLE__
      39 #define SP_DEFINE_TEMPLATES
      40 #undef SP_MANUAL_INST
      41 #endif
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/40331>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list