link errors in HEAD, debian 2.2

Mike Gerdts gerdts at bellsouth.net
Wed Aug 7 19:38:01 GMT 2002


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.

Mike




More information about the samba-technical mailing list