Public bug reported:

Binary package hint: alpine

We encounter this link failure:

libtool: link: x86_64-linux-gnu-gcc -std=gnu99 -g -pthread -g -O2 -g -Wall -O2 
-Wl,-z -Wl,defs -Wl,--as-needed -Wl,-z -Wl,defs -Wl,--as-needed -o alpine 
addrbook.o adrbkcmd.o after.o alpine.o arg.o busy.o colorconf.o confscroll.o 
context.o dispfilt.o flagmaint.o folder.o help.o imap.o init.o kblock.o 
keymenu.o ldapconf.o listsel.o mailcmd.o mailindx.o mailpart.o mailview.o 
newuser.o pattern.o pipe.o print.o radio.o remote.o reply.o roleconf.o send.o 
setup.o signal.o status.o takeaddr.o titlebar.o smime.o newmail.o date.o  -ldl 
-L/usr/lib -lkrb5 -lcom_err -lcrypto ../pico/libpico.a 
../pico/osdep/libpicoosd.a ../pith/libpith.a ../pith/osdep/libpithosd.a 
../pith/charconv/libpithcc.a osdep/libpineosd.a ../c-client/c-client.a 
-lgssapi_krb5 -lldap -lncurses -llber -lssl -lpam -pthread
../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit':
/build/buildd/alpine-2.02/imap/c-client/osdep.c:339: warning: the use of 
`tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: ../c-client/c-client.a(osdep.o): undefined reference to symbol 
'krb5_kt_start_seq_get@@krb5_3_MIT'
/usr/bin/ld: note: 'krb5_kt_start_seq_get@@krb5_3_MIT' is defined in DSO 
/usr/lib/libkrb5.so so try adding it to the linker command line
/usr/lib/libkrb5.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

It occurs for two reasons:

1) new toolchain in natty no longer allows indirect linking:
https://lwn.net/Articles/410672/

2) the osdep.o object in the c-client.a library references a symbol in
libkrb5.so. You can actually see that we pass -lkrb5 but since it's
passed *before* c-client.a, the optimizer will optimize that symbol out
of the library, thus causing the undef error.

The fix is to pass -lkrb5 to the *right* of c-client.a, so the optimizer
doesn't strip it out.

** Affects: alpine (Ubuntu)
     Importance: Undecided
         Status: New

-- 
FTBFS: undefined reference to symbol 'krb5_kt_start_seq_get@@krb5_3_MIT'
https://bugs.launchpad.net/bugs/668499
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to