lprng: FTBFS on Natty because of pickier linker

Bug #719181 reported by Geoffrey Thomas
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lprng (Debian)
Fix Released
lprng (Ubuntu)
Fix Released
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-functions -o lpr lpr.o openprinter.o stty.o child.o copyright.o debug.o errormsg.o fileopen.o gethostinfo.o getopt.o getprinter.o getqueue.o globmatch.o initialize.o krb5_auth.o linelist.o linksupport.o lockfile.o merge.o plp_snprintf.o printjob.o proctitle.o sendjob.o sendauth.o sendreq.o ssl_auth.o user_auth.o utilities.o vars.o md5.o -lkrb5 -lcrypto -lcom_err
/usr/bin/ld: krb5_auth.o: undefined reference to symbol 'krb5_encrypt_size@@k5crypto_3_MIT'
/usr/bin/ld: note: 'krb5_encrypt_size@@k5crypto_3_MIT' is defined in DSO /usr/lib/libk5crypto.so.3 so try adding it to the linker command line
/usr/lib/libk5crypto.so.3: could not read symbols: Invalid operation
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

Revision history for this message
Geoffrey Thomas (geofft) wrote :
Evan Broder (broder)
Changed in lprng (Ubuntu):
assignee: nobody → Evan Broder (broder)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lprng (Ubuntu):
status: New → Fix Released
Changed in lprng (Debian):
status: Unknown → New
Changed in lprng (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.