[MacPorts] #18894: Internal libboost dependency failure at reference time.
MacPorts
noreply at macports.org
Wed Mar 18 13:54:38 PDT 2009
#18894: Internal libboost dependency failure at reference time.
--------------------------------+-------------------------------------------
Reporter: trog24@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: | Port:
--------------------------------+-------------------------------------------
Old description:
> The following error occurs when trying to link openvrml to libboost:
>
> g++ -D_THREAD_SAFE -g -O2 -o .libs/browser browser.o -Wl,-bind_at_load
> -L/opt/local/lib ./.libs/libtest-openvrml.a
> /Users/frank/FirefoxDownloads/openvrml-0.17.12/src/libopenvrml/.libs/libopenvrml.dylib
> -L/opt/local/lib/firefox-2.0.0.20 /opt/local/lib/libjpeg.dylib
> /opt/local/lib/libpng12.dylib /opt/local/lib/libfontconfig.dylib
> /opt/local/lib/libiconv.dylib /opt/local/lib/libexpat.dylib
> /opt/local/lib/libfreetype.dylib -lz -lmozjs -lplds4 -lplc4 -lnspr4
> -lboost_thread-mt -lboost_unit_test_framework-mt -lboost_filesystem-mt
> /usr/bin/ld: Undefined symbols:
> boost::system::get_system_category()
> boost::system::get_generic_category()
> collect2: ld returned 1 exit status
> make[2]: *** [browser] Error 1
> make[2]: Leaving directory
> `/Users/frank/FirefoxDownloads/openvrml-0.17.12/tests'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory
> `/Users/frank/FirefoxDownloads/openvrml-0.17.12/tests'
>
> The undefined symbol references get_system_category() and
> get_generic_category() are in libboost_filesystem-mt and the symbols are
> defined in libboost_system-mt and not in some unrelated library; yet,
> libboost_filesystem-mt cannot find libboost_system-mt to resolve the
> undefines, a library libboost_filesystem-mt is dependent on even though
> the libboost_system-mt is part of the same set without a supplied
> reference, ie:
>
> make check LDFLAGS='-lboost_system-mt'
>
> This particular dependency should have been resolved during the Boost
> build process. The above command is the work around until the problem is
> resolved.
New description:
The following error occurs when trying to link openvrml to libboost:
{{{
g++ -D_THREAD_SAFE -g -O2 -o .libs/browser browser.o -Wl,-bind_at_load
-L/opt/local/lib ./.libs/libtest-openvrml.a
/Users/frank/FirefoxDownloads/openvrml-0.17.12/src/libopenvrml/.libs/libopenvrml.dylib
-L/opt/local/lib/firefox-2.0.0.20 /opt/local/lib/libjpeg.dylib
/opt/local/lib/libpng12.dylib /opt/local/lib/libfontconfig.dylib
/opt/local/lib/libiconv.dylib /opt/local/lib/libexpat.dylib
/opt/local/lib/libfreetype.dylib -lz -lmozjs -lplds4 -lplc4 -lnspr4
-lboost_thread-mt -lboost_unit_test_framework-mt -lboost_filesystem-mt
/usr/bin/ld: Undefined symbols:
boost::system::get_system_category()
boost::system::get_generic_category()
collect2: ld returned 1 exit status
make[2]: *** [browser] Error 1
make[2]: Leaving directory
`/Users/frank/FirefoxDownloads/openvrml-0.17.12/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory
`/Users/frank/FirefoxDownloads/openvrml-0.17.12/tests'
}}}
The undefined symbol references get_system_category() and
get_generic_category() are in libboost_filesystem-mt and the symbols are
defined in libboost_system-mt and not in some unrelated library; yet,
libboost_filesystem-mt cannot find libboost_system-mt to resolve the
undefines, a library libboost_filesystem-mt is dependent on even though
the libboost_system-mt is part of the same set without a supplied
reference, ie:
make check LDFLAGS='-lboost_system-mt'
This particular dependency should have been resolved during the Boost
build process. The above command is the work around until the problem is
resolved.
--
Comment(by mcalhoun@…):
Change description to use WikiFormatting.
--
Ticket URL: <http://trac.macports.org/ticket/18894#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list