Re: compiling without -O2 ld shared lib errors

2011-04-11 Thread Simon McVittie
On Tue, 12 Apr 2011 at 09:33:25 +1000, Brian May wrote: > Am thinking the best solution might be to wrap the entire ntlm_service > function with the same #if __APPLE__ ... #endif, as that appears to be the > only reference to ntlm_service, and I think the static definition means it > can't be refer

Re: compiling without -O2 ld shared lib errors

2011-04-11 Thread Brian May
On 8 April 2011 20:11, Simon McVittie wrote: > 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. Thanks. Thought this might be the case. However, that doesn't explain why it magically when comp

Re: compiling without -O2 ld shared lib errors

2011-04-08 Thread Simon McVittie
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/ntl

compiling without -O2 ld shared lib errors

2011-04-07 Thread Brian May
Hello, 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 -