Functions from upstream missing in package

Bug #1027418 reported by Eric Anderson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
krb5 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

The libkrb5 package in 12.04 looks like it's missing some functions. That sounds weird, so let me explain:

I have the following packages installed:
$ dpkg-query -l 'libkrb*'
[snip]
ii libkrb5-26-heimdal 1.6~git20120311.dfsg.1-2 Heimdal Kerberos - libraries
ii libkrb5-3 1.10+dfsg~beta1-2 MIT Kerberos runtime libraries
ii libkrb5-dev 1.10+dfsg~beta1-2 Headers and development libraries for MIT Kerberos
ii libkrb5support0 1.10+dfsg~beta1-2 MIT Kerberos runtime libraries - Support library

The functions 'krb5_cccol_lock' and 'krb5_cccol_unlock' are declared in /usr/include/krb5/krb5.h, from libkrb5-dev. When I try to use them in a program that links against libkrb5, I get an "undefined symbol" error at run time. I've looked at every .so file defined in any of those packages (using nm and nm -D), and those symbols aren't mentioned in any of those files!

When I build krb5-1.10.2 from the MIT source, those symbols are defined in libkrb5.so.3.3.

Does anyone have any idea what's up?

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Eric, thanks for taking the time to file this bug report.

I've confirmed that this bug exists all the way back to lucid. In fact it also affects CentOS/RHEL 6. I cannot seem to get krb5_cccol_lock or unlock to link.

I'm not sure its a bug though. The function is not exported, so it shouldn't actually appear in an upstream build of the library.

./src/lib/krb5/libkrb5.exports:krb5_cccol_cursor_free
./src/lib/krb5/libkrb5.exports:krb5_cccol_cursor_new
./src/lib/krb5/libkrb5.exports:krb5_cccol_cursor_next

Those 3 are, but these two are not listed.

Its not clear to me that the packaging is doing anything "strange" to build and link the libraries. I suspect this may be something that upstream does differently depending on how you build it. It would be helpful in figuring out how this can be fixed if you provided the exact steps you used to produce libraries with these symbols from upstream source.

For now I'm going to mark the bug as Confirmed, with an importance of Medium. Please provide that feedback so we can work on pushing the bug upstream if necessary.

Changed in krb5 (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Sam Hartman (hartmans) wrote : Re: [ [Bug 1027418] [NEW] Functions from upstream missing in package

take a look at upstream commit 6e83d0bd31721ac86003530dd2450221dd05d0c2

These functions were added later and were used by a Mac-specific project
that had a different export list. I'm fairly sure this is simply an
upstream bug and the symbols should be exported.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.