[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compiling without -O2 ld shared lib errors


Am trying to compile Heimdal in unstable without -O2 optimization, so I can debug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618992 

To do this, I have inserted the line in debian/rules:

CFLAGS := "-g"

Unfortunately, when ever I do, I get the following error:

/bin/bash ../libtool --tag=CC   --mode=link gcc  -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs  -g   -o digest-service digest-service.o libkdc.la ../lib/ipc/libheim-ipcs.la ../lib/hdb/libhdb.la ../lib/krb5/libkrb5.la  -lcrypto  ../lib/asn1/libasn1.la ../lib/vers/libvers.la ../lib/roken/libroken.la -lcrypt  -ldb  -lresolv -pthread -lpthread
libtool: link: gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -o .libs/digest-service digest-service.o -pthread  ./.libs/libkdc.so ../lib/ipc/.libs/libheim-ipcs.a /home/brian/tree/heimdal/git/heimdal/lib/roken/.libs/libroken.so ../lib/hdb/.libs/libhdb.so ../lib/krb5/.libs/libkrb5.so -lcrypto ../lib/asn1/.libs/libasn1.so ../lib/vers/.libs/libvers.a ../lib/roken/.libs/libroken.so -lcrypt -ldb -lresolv -lpthread -pthread
/usr/bin/ld: digest-service.o: undefined reference to symbol 'heim_ntlm_calculate_ntlm1@@HEIMDAL_NTLM_1.0'
/usr/bin/ld: note: 'heim_ntlm_calculate_ntlm1@@HEIMDAL_NTLM_1.0' is defined in DSO //home/brian/tree/heimdal/git/heimdal/lib/ntlm/.libs/libheimntlm.so.0 so try adding it to the linker command line
//home/brian/tree/heimdal/git/heimdal/lib/ntlm/.libs/libheimntlm.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [digest-service] Error 1
make[2]: Leaving directory `/home/brian/tree/heimdal/git/heimdal/kdc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brian/tree/heimdal/git/heimdal'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1329:
dpkg-buildpackage -rfakeroot -D -us -uc failed

At first glance this appears be clear, except the error goes away when compiling everything with -O2.

Any ideas?

What does the "Invalid operation" mean?
Brian May <brian@microcomaustralia.com.au>

Reply to: