libavg FTBFS: python LOCALMODLIBS causes -lssl link failure

Bug #512861 reported by Kamal Mostafa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libavg (Debian)
Fix Released
Unknown
libavg (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

http://launchpadlibrarian.net/38108616/buildlog_ubuntu-lucid-i386.libavg_0.8.0-5ubuntu3_FAILEDTOBUILD.txt.gz

g++ -Wno-invalid-offsetof -g -O2 -Wl,-Bsymbolic-functions -o checktracker checktracker.o /usr/lib/libxml2.so -lboost_thread-mt -lGLU -lGL -lm -L/usr/lib /usr/lib/libSDL.so -lXxf86vm -lGraphicsMagick++ -lGraphicsMagick -L/usr/lib/python2.6/config ./.libs/libplayer.a -lboost_python-mt-py26 -lpython2.6 -lssl -lcrypto -lz -lpthread -ldl -lutil ../video/.libs/libvideo.a ../audio/.libs/libaudio.a ../imaging/.libs/libimaging.a ../graphics/.libs/libgraphics.a ../base/.libs/libbase.a ../lmfit/.libs/liblmfit.a
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status

Related branches

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

This package's m4/python_dev.m4 script improperly refers to Python's LOCALMODLIBS which contains a link reference to -lssl (and other libs):

  py_localmodlibs=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $py_makefile`

libavg does not build-depend on libssl-dev (nor should it as it does not actually need to link with -lssl) so that library is not installed and therefore causes libavg to FTB when $py_localmodlibs tries to link with it anyway.

Changed in libavg (Ubuntu):
assignee: nobody → Kamal Mostafa (kamalmostafa)
status: New → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

libavg must not link with LOCALMODLIBS (this is the list of libs which the python executable must be linked with, not arbitrary extensions).

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Attached debdiff adds quilt patch - debian/patches/no_py_localmodlibs.diff - which comments out the line referencing of python's LOCALMODLIBS from the configure script and its source m4 file.

With this patch in place, libavg's binaries no longer try to link with -lssl and the package builds successfully.

Changed in libavg (Ubuntu):
assignee: Kamal Mostafa (kamalmostafa) → nobody
status: In Progress → Confirmed
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Revised patch: corrected LP: syntax in changelog description.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libavg - 0.8.0-5ubuntu4

---------------
libavg (0.8.0-5ubuntu4) lucid; urgency=low

  * configure, m4/python_dev.m4: Do not reference $py_makefile's LOCALMODLIBS
    to avoid undesired linking with -lssl (LP: #512861).
 -- Kamal Mostafa <email address hidden> Tue, 26 Jan 2010 08:13:10 -0800

Changed in libavg (Ubuntu):
status: Confirmed → Fix Released
Changed in libavg (Debian):
status: Unknown → New
Revision history for this message
Ulrich von Zadow (uzadow) wrote :

I've commited a fix upstream (libavg svn rev. 4550).

Changed in libavg (Debian):
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.