[scribus-dev] linking error building 1.5.0 SVN

Wayne DePrince Jr. waynedpj at in-giro.org
Mon Dec 30 14:26:32 UTC 2013


Il giorno ven, 22/11/2013 alle 08.49 -0500, Wayne DePrince Jr. ha
scritto:

> ahoy all,
> 
>     i am trying to build the 1.5.0  SVN  version following the
> directions here
> 
> http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake
> 
> on a GNU+Linux x86_64 system (Gentoo).
> 
>     i have installed the Qt5 dependencies along with the others
> listed, but i am stuck at the following linking error:
> 
> 
> [ 78%] Building CXX object scribus/CMakeFiles/scribus-1.5.0.svn.dir/main.cpp.o
> Linking CXX executable scribus-1.5.0.svn
> /usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_next'
> /usr/lib64/libsqlite3.so.0: undefined reference to `utf8_nextCharSafeBody'
> /usr/lib64/libsqlite3.so.0: undefined reference to `u_errorName'
> /usr/lib64/libsqlite3.so.0: undefined reference to `u_foldCase'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_setToUCallBack'
> /usr/lib64/libsqlite3.so.0: undefined reference to `uregex_setText'
> /usr/lib64/libsqlite3.so.0: undefined reference to `uregex_close'
> /usr/lib64/libsqlite3.so.0: undefined reference to `uregex_matches'
> /usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_close'
> /usr/lib64/libsqlite3.so.0: undefined reference to `ucol_strcoll'
> /usr/lib64/libsqlite3.so.0: undefined reference to `u_strToUpper'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_convertEx'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_setFromUCallBack'
> /usr/lib64/libsqlite3.so.0: undefined reference to `u_strToUTF8'
> /usr/lib64/libsqlite3.so.0: undefined reference to `ucol_close'
> /usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_open'
> /usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_current'
> /usr/lib64/libsqlite3.so.0: undefined reference to `u_isspace'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_close'
> /usr/lib64/libsqlite3.so.0: undefined reference to `ucol_open'
> /usr/lib64/libsqlite3.so.0: undefined reference to `uregex_open'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `UCNV_FROM_U_CALLBACK_STOP'
> /usr/lib64/libsqlite3.so.0: undefined reference to `u_strToLower'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `ucnv_open'
> /usr/lib64/libsqlite3.so.0: undefined reference to `ubrk_first'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libxml2.so: undefined reference to `UCNV_TO_U_CALLBACK_STOP'
> collect2: ld returned 1 exit status
> make[2]: *** [scribus/scribus-1.5.0.svn] Error 1
> make[1]: *** [scribus/CMakeFiles/scribus-1.5.0.svn.dir/all] Error 2
> make: *** [all] Error 2
> 
> i have tried updating/rebuilding SQLite, ICU and libXML2 with no luck so far, still getting the same error.
> 
> 	thanks in advance for any advice or next debugging steps.


    after lots of debugging and poking i finally figured out that the
problem here is that the version of libXML2 that i have installed
depends on ICU (as do most libraries in the system it seems).
rebuilding libXML2 w/o ICU allows the Scribus build to finish.

    my next question is whether the CMake build process should determine
that ICU is a dependency of libXML2 automatically and include it in the
linking phase?  or does ICU need to be added as a dependency of Scribus
explicitly?  the CMake module LibXml2Config.cmake seems to be searching
for the libraries that libXML2 depends on (which end up in
"LIBXML2_LIBRARIES" - the libraries needed to use LibXml2) but obviously
it is not picking up the ICU dependency on libXML2 during the cmake
setup.

    my gut tells me it is some local problem on my machine but i posted
just in case anyone else has similar problems.

    happy new year if u dig it.

peace, w

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20131230/f133da55/attachment.html>


More information about the scribus-dev mailing list