Can't compile newest CVS code

heinig heinig at HDZ-IMA.RWTH-Aachen.de
Wed Sep 16 18:26:46 GMT 1998


Andrew Perrin - Demography wrote:
> 
> Greetings-
> 
> Just downloaded the most recent CVS code (after a long break, so I don't
> know when this stopped working); I can't get it to compile.  make returns
> lots of the following error:
> 
> /usr/include/sys/vfs.h:164: warning: `struct statvfs64' declared inside
> parameter list
> /usr/include/sys/vfs.h:164: warning: its scope is only this definition or
> declaration,
> /usr/include/sys/vfs.h:164: warning: which is probably not what you want.
> 
> and then finally chokes on:
> Linking bin/smbd
> Undefined                       first referenced
>  symbol                             in file
> socket                              lib/util.o
> getpeername                         lib/util.o
> gethostbyname                       lib/system.o
> accept                              smbd/server.o
> bind                                lib/util.o
> setsockopt                          lib/util.o
> gethostbyaddr                       lib/util.o
> getsockopt                          lib/util.o
> inet_addr                           libsmb/namequery.o
> sendto                              smbd/oplock.o
> inet_ntoa                           libsmb/namequery.o
> getsockname                         smbd/oplock.o
> yp_get_default_domain               smbd/password.o
> recvfrom                            lib/util.o
> listen                              smbd/server.o
> connect                             lib/util.o
> ld: fatal: Symbol referencing errors. No output written to bin/smbd
> *** Error code 1
> make: Fatal error: Command failed for target `bin/smbd'
> 
> Particulars: Solaris 2.6 (SPARC), gcc, gnu make, used the configure script
> and changed only the directory from /usr/local to /usr/LOCAL for our
> needs.
> 
> Any advice?

Erm, no advice, just confirmation of problems with the configure stuff.
Configure doesn´t include libxnls (not sure now, it was yesterday) and libnls in the library 
list, which causes the problems with connect(), getsockopt() etc etc. I´ve no idea why, 
though, and I don´t like adding that sort of stuff by hand since configure is a rather 
complicated beast and I don´t know what else is missing.

There are also problems when I define --with-nisplus: it gets recognised OK (by configure) but 
doesn´t get written into the Makefile and eventually causes an unresolved reference error with 
nisplus_initialize_password_db(). This is due to a missing -DNISPLUS in the FLAGS in the 
Makefile. Again, I could add the switch to make it compile, but I´m wary of doing so because 
I´ve no idea where else this stuff is needed.

Configure does seem to be ill at the moment...

Gerald


More information about the samba-ntdom mailing list