lucid libapreq2 references nonexistent libuuid.la

Bug #651396 reported by Jacobsallan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libapreq2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libapreq2

$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
$ apt-cache policy libapreq2
libapreq2:
  Installed: 2.08-5.1
  Candidate: 2.08-5.1
  Version table:
 *** 2.08-5.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

The problem was discovered in a project that links against the Apache request library. The work around is to hack a local copy of libapreq2.la, change it's contents, and link against the local copy.

The lucid package libapreq2 includes file /usr/lib/libapreq2.la which contains a reference to libuuid.la. A diff for a fixed version appears below.
$ diff /usr/lib/libapreq2.la ./libapreq2.la
17c17
< dependency_libs=' /usr/lib/libaprutil-1.la /usr/lib/libexpat.la /usr/lib/libapr-1.la /usr/lib/libuuid.la -lrt -lcrypt -lpthread -ldl -ldb'
---
> dependency_libs=' /usr/lib/libaprutil-1.la /usr/lib/libexpat.la /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl -ldb'
35c35
< libdir='/lib'
---
> libdir='/usr/lib'

The file /usr/lib/apache2/modules/mod_apreq2.la contains another reference. The line for dependency_libs should read
dependency_libs=' /lib/libapreq2.la -ldb /usr/lib/libaprutil-1.la /usr/lib/libexpat.la /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl'

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libapreq2 2.08-5.1
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Wed Sep 29 11:40:19 2010
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.utf8
SourcePackage: libapreq2

Revision history for this message
Jacobsallan (jacobsallan) wrote :
Revision history for this message
Jacobsallan (jacobsallan) wrote :

I tried downloading the patch thinking I would submit a patch. But the beast built correctly. Maybe it builds incorrectly on a real Debian machine and then gets copied into Ubuntu?

% bzr branch lp:ubuntu/lucid/libapreq2 libapreq2
% cd libapreq2
% ./configure --with-apache2-apxs=/usr/bin/apxs2 --with-apreq2-config=/usr/bin/apreq2-config
% make
% cd library
% diff /usr/lib/libapreq2.la ./libapreq2.la
17c17
< dependency_libs=' /usr/lib/libaprutil-1.la /usr/lib/libexpat.la /usr/lib/libapr-1.la /usr/lib/libuuid.la -lrt -lcrypt -lpthread -ldl -ldb'
---
> dependency_libs=' /usr/lib/libaprutil-1.la /usr/lib/libexpat.la /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl -ldb'
25c25
< installed=yes
---
> installed=no

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

This bug was fixed in the package libapreq2 - 2.13-1

---------------
libapreq2 (2.13-1) unstable; urgency=low

  * New upstream release.
    * Properly links in libapr-1 when building binaries.
      (Closes: #615739)
  * Don't install .la files (remove from libapreq2-dev.install and
    libapache2-mod-apreq2.install); the one we installed was broken,
    and they're generally discouraged anyway.
    (Not reported in Debian, but LP: #651396, and fixes a Lintian error.)
  * Update to Standards-Version 3.9.1 (no changes needed).
 -- Matthias Klose <email address hidden> Sun, 03 Apr 2011 09:02:37 +0000

Changed in libapreq2 (Ubuntu):
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.