lprng: FTBFS on Natty because of pickier linker
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lprng (Debian) |
Fix Released
|
Unknown
|
|||
lprng (Ubuntu) |
Fix Released
|
Undecided
|
Evan Broder |
Bug Description
Binary package hint: lprng
On Ubuntu Natty, the lprng source package fails to build with the following error:
gcc -g -O2 -Wl,-Bsymbolic-
/usr/bin/ld: krb5_auth.o: undefined reference to symbol 'krb5_encrypt_
/usr/bin/ld: note: 'krb5_encrypt_
/usr/lib/
collect2: ld returned 1 exit status
make[3]: *** [lpr] Error 1
As indicated by the error, the issue is that -lk5crypto is not being passed. It turns out that configure.ac isn't using krb5-config, which is the standard way to figure out what the linker flags should be. This seems to have been fine in previous releases (and this version of the package was never rebuilt since being imported from Debian), but Natty's toolchain is not happy with this.
I'm attaching a debdiff that adds a few lines to configure.ac to try krb5-config first before trying its built-in guesses at what the Kerberos libraries are. Because this requires rerunning autoconf, the debdiff also uses dh_autoreconf to do so.
Related branches
Changed in lprng (Ubuntu): | |
assignee: | nobody → Evan Broder (broder) |
Changed in lprng (Debian): | |
status: | Unknown → New |
Changed in lprng (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package lprng - 3.8.A-3ubuntu1
---------------
lprng (3.8.A-3ubuntu1) natty; urgency=low
* Fix FTBFS caused by --no-add-needed, by.ac to use
krb5-config for Kerberos libraries (LP: #719181).
-- Geoffrey Thomas <email address hidden> Mon, 14 Feb 2011 23:59:57 -0800