Compiling error Samba 3.0

nik-da-3'9'' nik39 at gmx.de
Fri Sep 26 20:12:09 GMT 2003


Hi,

I got a problem with compiling samba 3.0 on a suse system, with
the latest stable 2.4.22 kernel+sources.
It starts okay, produces some warnings, but then stops compiling and
exiting with

"collect2: ld returned 1 exit status
make: *** [bin/nmblookup] Error 1"

Does anyone knows what might went wrong?
Below you will find a trimmed logfile of the compiler's output.



-------------------------------------------------
~/temp/samba-3.0.0/source # make
Using FLAGS =  -g -O2  -Iinclude -I/root/temp/samba-3.0.0/source/include -I/root/temp/samba-3.0.0/source/ubiqx 
-I/root/temp/samba-3.0.0/source/smbwrapper  -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
-I/root/temp/samba-3.0.0/source    
      LIBS = -lcrypt -lresolv -lnsl -ldl
      LDSHFLAGS = -shared 
      LDFLAGS = 
Generating smbd/build_options.c
Building include/proto.h
creating /root/temp/samba-3.0.0/source/include/proto.h
Building include/wrepld_proto.h
creating /root/temp/samba-3.0.0/source/include/wrepld_proto.h
Building include/build_env.h
creating /root/temp/samba-3.0.0/source/nsswitch/winbindd_proto.h
creating /root/temp/samba-3.0.0/source/web/swat_proto.h
creating /root/temp/samba-3.0.0/source/client/client_proto.h
creating /root/temp/samba-3.0.0/source/utils/net_proto.h
Compiling dynconfig.c
[...]
Compiling lib/wins_srv.c
Compiling lib/util_str.c
lib/util_str.c: In function `strchr_m':
lib/util_str.c:1196: warning: return discards qualifiers from pointer target type
lib/util_str.c: In function `strrchr_m':
lib/util_str.c:1244: warning: return discards qualifiers from pointer target type
Compiling lib/clobber.c
Compiling lib/util_sid.c
[...]
Compiling tdb/spinlock.c
Compiling tdb/tdbutil.c
tdb/tdbutil.c: In function `make_tdb_data':
tdb/tdbutil.c:45: warning: assignment discards qualifiers from pointer target type
tdb/tdbutil.c: In function `tdb_chainlock_with_timeout_internal':
tdb/tdbutil.c:59: warning: passing arg 1 of `tdb_set_lock_alarm' discards qualifiers from pointer target type
Compiling tdb/tdbback.c
Compiling lib/module.c
[...]
Compiling smbd/notify.c
Compiling smbd/notify_hash.c
smbd/notify_hash.c: In function `notify_hash':
smbd/notify_hash.c:91: warning: assignment discards qualifiers from pointer target type
Compiling smbd/notify_kernel.c
Compiling groupdb/mapping.c
[...]
Compiling nsswitch/winbindd_dual.c
Compiling nsswitch/winbindd_acct.c
nsswitch/winbindd_acct.c: In function `string2group':
nsswitch/winbindd_acct.c:224: warning: passing arg 1 of `next_token' from incompatible pointer type
Compiling sam/idmap.c
Compiling sam/idmap_util.c
Compiling sam/idmap_tdb.c
Linking bin/winbindd
Compiling client/client.c
client/client.c: In function `do_get':
client/client.c:694: warning: passing arg 4 of `cli_getattrE' from incompatible pointer type
client/client.c: In function `do_put':
client/client.c:1070: warning: passing arg 4 of `cli_getattrE' from incompatible pointer type
client/client.c: In function `do_host_query':
client/client.c:2670: warning: passing arg 1 of `list_servers' discards qualifiers from pointer target type
client/client.c: In function `main':
client/client.c:2939: warning: passing arg 1 of `lp_set_name_resolve_order' discards qualifiers from pointer 
target type
Compiling client/clitar.c
Compiling lib/readline.c
[...]
Compiling utils/status.c
Linking bin/smbstatus
Compiling utils/smbcontrol.c
utils/smbcontrol.c: In function `do_printnotify':
utils/smbcontrol.c:422: warning: passing arg 3 of `notify_printer_byname' discards qualifiers from pointer target 
type
Linking bin/smbcontrol
Compiling utils/smbtree.c
Linking bin/smbtree
Compiling tdb/tdbbackup.c
Linking bin/tdbbackup
Compiling utils/nmblookup.c
Linking bin/nmblookup
collect2: ld returned 1 exit status
make: *** [bin/nmblookup] Error 1
--------------------------------------

Any help is appreciated.

Thanks for your time!


-- 
Regards,
 nik-da-3'9''                          mailto:nik39.at.gmx.dot.de





More information about the samba-technical mailing list