Your message dated Thu, 30 Dec 2010 11:33:11 +1100
with message-id <[email protected]>
has caused the report #607589,
regarding Fix FTBFS with ld --no-add-needed
to be marked as having been forwarded to the upstream software
author(s) [email protected]
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
607589: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607589
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
I received this bug report against Heimdal.
See http://wiki.debian.org/ToolChain/DSOLinking for the background.
This is a) a correctness issue, and b) needed to build the archive
with the gold linker.
I have attached the relevant patch to this email.
For more details see http://bugs.debian.org/607589
Thanks
On 20 December 2010 11:21, Matthias Klose <[email protected]> wrote:
> Package: heimdal
> Version: 1.4.0-1
> Severity: important
> Tags: patch
> User: [email protected]
> Usertags: origin-ubuntu natty ubuntu-patch
> User: [email protected]
> Usertags: no-add-needed
>
> Making all in otp
> make[3]: Entering directory `/build/buildd/heimdal-1.4.0/appl/otp'
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I../../lib/roken -I../../lib/roken -I/usr/include/et -D_LARGE_FILES=
> -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
> -Wmissing-declarations -Wnested-externs -g -O2 -g -Wall -O2 -c otp.c
> /bin/bash ../../libtool --tag=CC --mode=link gcc -Wall
> -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
> -Wmissing-declarations -Wnested-externs -g -O2 -g -Wall -O2
> -Wl,-Bsymbolic-functions -o otp otp.o ../../lib/otp/libotp.la
> ../../lib/vers/libvers.la ../../lib/roken/libroken.la -lcrypt -lresolv
> -pthread -lpthread
> libtool: link: gcc -Wall -Wmissing-prototypes -Wpointer-arith
> -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -g -Wall
> -O2 -Wl,-Bsymbolic-functions -o .libs/otp otp.o -pthread
> ../../lib/otp/.libs/libotp.so ../../lib/vers/.libs/libvers.a
> ../../lib/roken/.libs/libroken.so -lcrypt -lresolv -lpthread -pthread
> /usr/bin/ld: otp.o: undefined reference to symbol
> 'UI_UTIL_read_pw_string@@OPENSSL_0.9.8'
> /usr/bin/ld: note: 'UI_UTIL_read_pw_string@@OPENSSL_0.9.8' is defined in DSO
> /lib64/libcrypto.so.0.9.8 so try adding it to the linker command line
> /lib64/libcrypto.so.0.9.8: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[3]: *** [otp] Error 1
>
>
> patch at:
> http://launchpadlibrarian.net/60940999/heimdal_1.4.0-1_1.4.0-1ubuntu1.diff.gz
>
> likely you want to test for the library in the configure script.
>
>
>
--
Brian May <[email protected]>
Index: heimdal-1.4.0/appl/otp/Makefile.in
===================================================================
--- heimdal-1.4.0.orig/appl/otp/Makefile.in 2010-12-19 23:01:15.188229002 +0000
+++ heimdal-1.4.0/appl/otp/Makefile.in 2010-12-19 23:01:56.000000000 +0000
@@ -395,7 +395,7 @@
man_MANS = otp.1 otpprint.1
LDADD = \
$(top_builddir)/lib/otp/libotp.la \
- $(LIB_roken)
+ $(LIB_roken) -lcrypto
EXTRA_DIST = $(man_MANS)
all: all-am
Index: heimdal-1.4.0/appl/otp/Makefile.am
===================================================================
--- heimdal-1.4.0.orig/appl/otp/Makefile.am 2010-12-19 23:01:15.198229002 +0000
+++ heimdal-1.4.0/appl/otp/Makefile.am 2010-12-19 23:01:56.000000000 +0000
@@ -13,6 +13,6 @@
LDADD = \
$(top_builddir)/lib/otp/libotp.la \
- $(LIB_roken)
+ $(LIB_roken) -lcrypto
EXTRA_DIST = $(man_MANS)
--- heimdal-1.4.0.orig/appl/gssmask/Makefile.in
+++ heimdal-1.4.0/appl/gssmask/Makefile.in
@@ -367,7 +367,7 @@ LIB_kafs = $(top_builddir)/lib/kafs/libk
@dce_t...@lib_kdfs = $(top_builddir)/lib/kdfs/libkdfs.la
gssmask_SOURCES = gssmask.c common.c common.h protocol.h
gssmaestro_SOURCES = gssmaestro.c common.c common.h protocol.h
-LDADD = $(top_builddir)/lib/gssapi/libgssapi.la $(LIB_roken)
+LDADD = $(top_builddir)/lib/gssapi/libgssapi.la $(LIB_krb5) $(LIB_roken)
all: all-am
.SUFFIXES:
--- heimdal-1.4.0.orig/appl/gssmask/Makefile.am
+++ heimdal-1.4.0/appl/gssmask/Makefile.am
@@ -8,5 +8,5 @@ gssmask_SOURCES = gssmask.c common.c com
gssmaestro_SOURCES = gssmaestro.c common.c common.h protocol.h
-LDADD = $(top_builddir)/lib/gssapi/libgssapi.la $(LIB_roken)
+LDADD = $(top_builddir)/lib/gssapi/libgssapi.la $(LIB_krb5) $(LIB_roken)
--- End Message ---