Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14075 closed defect (fixed)

openjade-1.3.2 link failure of libgrove on OS X 10.5.1

Reported by: lou@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: libgrove openglade Cc:
Port:

Description

Build of openjade 1.3.2 is failing on Leopard.

sh-3.2# port install openjade
--->  Fetching openjade
--->  Verifying checksum(s) for openjade
--->  Extracting openjade
--->  Applying patches to openjade
--->  Configuring openjade
--->  Building openjade 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_textproc_openjade/work/openjade-1.3.2" && make all " returned error 2
Command output: echo 'LT_OBJS='`echo Node.o LocNode.o|sed 's/\.o/.lo/g'` >Makefile.lt
mkdir .libs
/usr/bin/g++-4.0 -O2 -I/opt/local/include -fno-rtti -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\"" -DSTDC_HEADERS=1 -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_LIMITS_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:357:1: warning: this is the location of the previous definition
mv -f Node.o .libs/Node.lo
/usr/bin/g++-4.0 -O2 -I/opt/local/include -fno-rtti -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\"" -DSTDC_HEADERS=1 -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_LIMITS_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 >/dev/null 2>&1
mv -f .libs/Node.lo Node.lo
rm -f .libs/LocNode.lo
/usr/bin/g++-4.0 -O2 -I/opt/local/include -fno-rtti -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\"" -DSTDC_HEADERS=1 -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_LIMITS_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 LocNode.cxx  -fno-common -DPIC
In file included from LocNode.cxx:5:
./../include/config.h:39:1: warning: "SP_DEFINE_TEMPLATES" redefined
In file included from ./../include/config.h:10,
                 from LocNode.cxx:5:
/opt/local/include/OpenSP/config.h:357:1: warning: this is the location of the previous definition
mv -f LocNode.o .libs/LocNode.lo
/usr/bin/g++-4.0 -O2 -I/opt/local/include -fno-rtti -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\"" -DSTDC_HEADERS=1 -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_LIMITS_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 LocNode.cxx >/dev/null 2>&1
mv -f .libs/LocNode.lo LocNode.lo
/bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_openjade/work/openjade-1.3.2/libtool --mode=link /usr/bin/g++-4.0 -allow-undefined -o libogrove.la Node.lo LocNode.lo \
	    -rpath /opt/local/lib -version-info 0:1:0 -lm
libtool: link: `-allow-undefined' is deprecated because it is the default
rm -fr .libs/libogrove.la .libs/libogrove.* .libs/libogrove.*
 -dynamiclib -undefined suppress -flat_namespace -o .libs/libogrove.0.0.1.dylib  -lm  Node.lo LocNode.lo  -lm -lc -install_name  /opt/local/lib/libogrove.0.dylib -compatibility_version 1 -current_version 1.1
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_openjade/work/openjade-1.3.2/libtool[3159]: eval[1]: -dynamiclib: not found [No such file or directory]
make[2]: *** [libogrove.la] Error 127
make[1]: *** [grove] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 16 years ago by jmpp@…

Milestone: Port Bugs

comment:2 Changed 16 years ago by oksmith77

The link fails because the variable CXX is not defined in the file libtools. Once the failure above occurs, the copy of libtools in the openjade build directory can be edited and CXX assigned to CXX=/usr/bin/g++-4.0

Then

sudo ports -v install openjade

will complete the build and perform the installation.

Obviously this isn't a real solution but does allow one to compile. This is similar to the problem reported in #8657: the CC and CXX variables were not correctly set.

Hopefully somebody with a better understanding of how all this stuff is supposed to work together can provide a real solution.

comment:3 Changed 16 years ago by walsh@…

After failure, edit /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_openjade/work/openjade-1.3.2/libtool as libtools does not exist adding the line

CXX="/usr/bin/g++-4.0"

Then

sudo port -v install openjade

Openjade will build and install, but it will be reported that:

Warning: violation by /opt/local/man Warning: openjade violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases!

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to jmr@…
Status: newassigned

comment:5 Changed 16 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

Fixed the missing CXX in r38046, and the mandir in r38048.

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.