Comment 0 for bug 1160252

Revision history for this message
Masato HASHIMOTO (hashimo) wrote :

As of trunk-r12245, build fails due to the following error:
$ ./autogen.sh && ./configure --prefix=/usr --without-gnome-vfs --enable-poppler-cairo && make
<snip>
  CXXLD inkscape
  CXXLD inkview
/usr/bin/ld: libinkscape.a(ege-color-prof-tracker.o): undefined reference to symbol 'XInternAtom'
/usr/bin/ld: note: 'XInternAtom' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
/usr/bin/ld: libinkscape.a(ege-color-prof-tracker.o): undefined reference to symbol 'XInternAtom'
/usr/bin/ld: note: 'XInternAtom' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [inkview] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [inkscape] Error 1
make[3]: Leaving directory `/home/hashimo/bzr/inkscape.d/trunk/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/hashimo/bzr/inkscape.d/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hashimo/bzr/inkscape.d/trunk'
make: *** [all] Error 2

And I tried to specify LDFLAGS=' -lX11' but inkscape seems to ignore the variable.

$ echo $LDFLAGS
-lX11
$ ./autogen.sh && ./configure --prefix=/usr --without-gnome-vfs --enable-poppler-cairo && make
<snip>
Configuration:

        Source code location: .
        Destination path prefix: /usr/local
        Compiler: g++
        CPPFLAGS: -DG_DISABLE_DEPRECATED -DGLIBMM_DISABLE_DEPRECATED -DGDKMM_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DGTKMM_DISABLE_DEPRECATED -Werror=format-security -DGSEAL_ENABLE -DG_DISABLE_SINGLE_INCLUDES -Wall -Wformat -Wformat-security -W -D_FORTIFY_SOURCE=2
        CXXFLAGS: -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fopenmp
        CFLAGS: -Wno-pointer-sign -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
        LDFLAGS: -Wl,-z,relro

        Use gnome-vfs: no
        Use openoffice files: yes
        Use relocation support: no
        Enable LittleCms: yes
        Enable DBUS: no
        Enable Poppler-Cairo: yes
        ImageMagick Magick++: yes
        Libwpg: no
        Libvisio: no
        Libcdr: no
        Doing Local Install: no