trunk-r12245 build fails (missing -lX11)

Bug #1160252 reported by Masato HASHIMOTO
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Alex Valavanis

Bug Description

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
----

Platform:
ArchLinux (x86_64)

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

Sorry, inkscape honors $LDFLAGS. It's my mistake.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Should be fixed in r12247

Changed in inkscape:
assignee: nobody → Alex Valavanis (valavanisalex)
importance: Undecided → High
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.