Opened 11 years ago

Closed 10 years ago

#40331 closed defect (fixed)

OpenJade 1.3.2 fails to build on PPC Tiger due to redefined SP_DEFINE_TEMPLATES

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.99
Keywords: Cc: lockhart (Thomas Lockhart)
Port: openjade

Description

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

Attachments (1)

main.log (30.7 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

comment:1 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)

It seems that the build succeeds when line #55 of the Portfile is changed to

     55 configure.cxxflags-append   "-fno-rtti"

i.e., the term

-isystem ${prefix}/include

is removed. The reported error then becomes the harmless repeated warning:

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

comment:2 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)

Today version @1.3.2_6 built.

comment:3 Changed 10 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Apparently fixed by r115260.

Note: See TracTickets for help on using tickets.