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

Re: compiling without -O2 ld shared lib errors

On Fri, 08 Apr 2011 at 14:49:42 +1000, Brian May wrote:
> /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

The symbol is defined in libheimntlm.so.0, so try adding it to the linker
command line. :-)

This is the same thing as described in:



You can work around it with -Wl,--add-needed in LDFLAGS, or fix it properly
by including -lheimntlm in the LIBADD/LDADD for whatever you're linking.


Reply to: