package kmflcomp-0.9.8-1 failed to build from source with "ld --as-needed"

Bug #729152 reported by Tarun K. Mall
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kmflcomp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: kmflcomp

Package failed to build from source on Ubuntu natty
Here is the error log:

gcc -Wall -g -g -O2 -g -O2 -Wl,-Bsymbolic-functions -o kmflcomp kmflcomp-kmfl_compiler.o -lX11 -L/usr/X11R6/lib ../src/.libs/libkmflcomp.a
../src/.libs/libkmflcomp.a(libkmflcomp_la-kmflcomp.o): In function `text_to_keysym':
/home/tarun/source/kmflcomp/kmflcomp-0.9.8/src/kmflcomp.c:1329: undefined reference to `XStringToKeysym'
../src/.libs/libkmflcomp.a(libkmflcomp_la-kmflcomp.o): In function `make_keysym':
/home/tarun/source/kmflcomp/kmflcomp-0.9.8/src/kmflcomp.c:1350: undefined reference to `XOpenDisplay'
/home/tarun/source/kmflcomp/kmflcomp-0.9.8/src/kmflcomp.c:1354: undefined reference to `XKeysymToKeycode'
/home/tarun/source/kmflcomp/kmflcomp-0.9.8/src/kmflcomp.c:1355: undefined reference to `XKeycodeToKeysym'
/home/tarun/source/kmflcomp/kmflcomp-0.9.8/src/kmflcomp.c:1356: undefined reference to `XCloseDisplay'
collect2: ld returned 1 exit status
make[3]: *** [kmflcomp] Error 1
make[3]: Leaving directory `/home/tarun/source/kmflcomp/kmflcomp-0.9.8/kmfl_compiler'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tarun/source/kmflcomp/kmflcomp-0.9.8'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tarun/source/kmflcomp/kmflcomp-0.9.8'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Tags: patch
Tarun K. Mall (c2tarun)
Changed in kmflcomp (Ubuntu):
status: New → Incomplete
status: Incomplete → In Progress
assignee: nobody → Tarun K. Mall (c2tarun)
Tarun K. Mall (c2tarun)
Changed in kmflcomp (Ubuntu):
assignee: Tarun K. Mall (c2tarun) → nobody
status: In Progress → Confirmed
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thanks, but the fix is not quite right.

-lX11 is wrongly added to kmflcomp_LDFLAGS in kmfl_compiler/Makefile.am. To fix it, you should move this to kmflcomp_LDADD instead, rather than directly patching the autogenerated Makefile.in.

Changed in kmflcomp (Ubuntu):
assignee: nobody → Tarun K. Mall (c2tarun)
status: Confirmed → Incomplete
Changed in kmflcomp (Ubuntu):
status: Incomplete → Opinion
status: Opinion → In Progress
tags: added: patch
Revision history for this message
Tarun K. Mall (c2tarun) wrote :
Changed in kmflcomp (Ubuntu):
assignee: Tarun K. Mall (c2tarun) → nobody
status: In Progress → Confirmed
Revision history for this message
Dave Walker (davewalker) wrote :

As discussed with Tarun, as the Natty toolchain has reverted the "ld --as-needed" option - this package no longer FTBFS. However, when the next development cycle opens - this will be an issue. The patch has been submitted to Debian, which will hopefully be applied - and we can sync next cycle.

unsubscribing ~ubuntu-sponsors.

Thanks for your work Tarun!

summary: - package kmflcomp-0.9.8-1 failed to build from source
+ package kmflcomp-0.9.8-1 failed to build from source with "ld --as-
+ needed"
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.