link errors in HEAD, debian 2.2
abartlet at samba.org
abartlet at samba.org
Wed Aug 7 23:15:02 GMT 2002
On Wed, Aug 07, 2002 at 10:31:59PM -0400, Mike Gerdts wrote:
> Just checked out head, then tried to build with
>
> ./configure --prefix=/tmp/samba && make
>
> The build started with:
>
> Using FLAGS = -O -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I.
> FLAGS32 = -O -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I.
> LIBS = -lresolv -lnsl -lcom_err
> LDSHFLAGS = -shared -O
> LDFLAGS =
>
> The build ended with
>
> Linking bin/nmbd
> lib/system.o: In function `sys_dlopen':
> lib/system.o(.text+0x9a2): undefined reference to `dlopen'
> collect2: ld returned 1 exit status
>
> If I modify the Makefile to add -ldl to LIBS, I get a little further...
>
> Using FLAGS = -O -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I.
> FLAGS32 = -O -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I.
> LIBS = -lresolv -lnsl -lcom_err -ldl
> LDSHFLAGS = -shared -O
> LDFLAGS =
> Compiling dynconfig.c
> Linking bin/smbd
> Linking bin/nmbd
> Compiling web/cgi.c
> Compiling web/diagnose.c
> Compiling web/startstop.c
> Compiling web/statuspage.c
> Compiling web/swat.c
> Compiling web/neg_lang.c
> Linking bin/swat
> auth/pass_check.o: In function `password_check':
> auth/pass_check.o(.text+0x15b): undefined reference to `crypt'
> collect2: ld returned 1 exit status
>
> Next iteration... add -lcrypt to LIBS. With this the build completed.
Thanks for that. I also broke a *pile* of other platforms :-(
I'll back the patch back out and reconsider it before I next attack samba
dependency hell...
Andrew Bartlett
More information about the samba-technical
mailing list