|
From: Philip L. <ph...@ed...> - 2010-10-28 13:22:25
Attachments:
smime.p7s
|
Hi all,
I've just now made an attempt to compile OpenVRML 0.18.6 under Mac OS X 10.6 i386 (cross-compiling on an x86_64 host). To tackle the first part of the compile, I've configured with:
./configure --build="i386-apple-darwin" CFLAGS="-arch i386" CXXFLAGS="-arch i386" CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" --without-x --disable-dependency-tracking --with-libjs JS_CFLAGS="-I/sw/include/js -DXP_UNIX" --disable-script-node-java --disable-xembed --disable-player --disable-mozilla-plugin
Required dependencies are being provided by Fink packages, in particular boost v1.41.0.
The build falls over during the link phase of libopenvrml, with missing boost symbols (see make output below). It looks like it needs boost_system linked in, but its not included in the link inputs.
Anything obvious I'm missing, or a quick fix that can be recommended?
Regards,
Phil.
--
/bin/sh ../libtool --tag=CXX --mode=link g++ -I/usr/X11/include/freetype2 -I/usr/X11/include -D_THREAD_SAFE -I/sw/include/libxml2 -I/sw/include -arch i386 -version-info 9:4:0 -no-undefined -L/sw/lib -lxml2 -L/sw/lib -o libopenvrml/libopenvrml.la -rpath /usr/local/lib libopenvrml/openvrml/libopenvrml_libopenvrml_la-bad_url.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-vrml97_grammar.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_vrml_grammar.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-basetypes.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-field_value.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-event.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-exposedfield.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-scope.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-node.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-script.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-bounding_volume.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-scene.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-browser.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-viewer.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-rendering_context.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-frustum.lo libopenvrml/openvrml/libopenvrml_libopenvrml_la-node_impl_util.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-conf.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-error.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-uri.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-xml_reader.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-parse_vrml.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-component.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-proto.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-externproto.lo libopenvrml/openvrml/local/libopenvrml_libopenvrml_la-node_metatype_registry_impl.lo local/libopenvrml-dl.la -lboost_thread-mt -lboost_filesystem-mt
libtool: link: rm -fr libopenvrml/.libs/libopenvrml.lax
libtool: link: (cd libopenvrml/.libs/libopenvrml.lax/libopenvrml-dl.a && ar x "/Users/phil/Documents/Development/Projects/OpenVRML/openvrml-0.18.6/src/local/.libs/libopenvrml-dl.a")
libtool: link: g++ -dynamiclib -o libopenvrml/.libs/libopenvrml.9.dylib libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-bad_url.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-vrml97_grammar.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_vrml_grammar.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-basetypes.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-field_value.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-event.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-exposedfield.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-scope.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-node.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-script.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-bounding_volume.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-scene.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-browser.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-viewer.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-rendering_context.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-frustum.o libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-node_impl_util.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-conf.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-error.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-uri.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-xml_reader.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-parse_vrml.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-component.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-proto.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-externproto.o libopenvrml/openvrml/local/.libs/libopenvrml_libopenvrml_la-node_metatype_registry_impl.o libopenvrml/.libs/libopenvrml.lax/libopenvrml-dl.a/local_libopenvrml_dl_la-dl.o -L/sw/lib /sw/lib/libxml2.dylib -lltdl -lboost_thread-mt -lboost_filesystem-mt -arch i386 -install_name /usr/local/lib/libopenvrml.9.dylib -compatibility_version 10 -current_version 10.4 -Wl,-single_module
Undefined symbols:
"boost::system::get_system_category()", referenced from:
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-script.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-script.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-scene.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-scene.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-browser.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-browser.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-conf.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-conf.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-parse_vrml.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-parse_vrml.o
boost::system::error_code::error_code()in libopenvrml_libopenvrml_la-component.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-component.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-component.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node_metatype_registry_impl.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node_metatype_registry_impl.o
__static_initialization_and_destruction_0(int, int)in local_libopenvrml_dl_la-dl.o
__static_initialization_and_destruction_0(int, int)in local_libopenvrml_dl_la-dl.o
"boost::system::get_generic_category()", referenced from:
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-script.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-script.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-script.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-scene.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-scene.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-scene.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-browser.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-browser.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-browser.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-conf.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-conf.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-conf.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-parse_vrml.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-parse_vrml.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-parse_vrml.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-component.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-component.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-component.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node_metatype_registry_impl.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node_metatype_registry_impl.o
__static_initialization_and_destruction_0(int, int)in libopenvrml_libopenvrml_la-node_metatype_registry_impl.o
__static_initialization_and_destruction_0(int, int)in local_libopenvrml_dl_la-dl.o
__static_initialization_and_destruction_0(int, int)in local_libopenvrml_dl_la-dl.o
__static_initialization_and_destruction_0(int, int)in local_libopenvrml_dl_la-dl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [libopenvrml/libopenvrml.la] Error 1
|
|
From: Braden M. <br...@en...> - 2010-11-01 07:07:23
|
On Thu, 2010-10-28 at 14:55 +0200, Philip Lamb wrote:
> Hi all,
>
> I've just now made an attempt to compile OpenVRML 0.18.6 under Mac OS X 10.6 i386 (cross-compiling on an x86_64 host). To tackle the first part of the compile, I've configured with:
>
> ./configure --build="i386-apple-darwin" CFLAGS="-arch i386" CXXFLAGS="-arch i386" CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" --without-x --disable-dependency-tracking --with-libjs JS_CFLAGS="-I/sw/include/js -DXP_UNIX" --disable-script-node-java --disable-xembed --disable-player --disable-mozilla-plugin
>
> Required dependencies are being provided by Fink packages, in particular boost v1.41.0.
>
> The build falls over during the link phase of libopenvrml, with missing boost symbols (see make output below). It looks like it needs boost_system linked in, but its not included in the link inputs.
>
> Anything obvious I'm missing, or a quick fix that can be recommended?
configure [whatever else] LIBS=-lboost_system-mt
The MacPorts folks ran into this, too. For a while, I wasn't sure
whether it was a bug in OpenVRML's build or the Darwin linker; Mac OS X
is the *only* place I know about this problem. But I now think it *is*
a bug in OpenVRML's build; and I'll commit a fix soon.
I'm surprised that this hasn't shown up on Linux in light of some
relatively recent changes to the GNU linker. But it hasn't.
--
Braden McDaniel <br...@en...>
|