[Samba] error compiling on 3.5 on OS X

Brent Austin brent1a at yahoo.com
Sun Jan 31 16:51:39 MST 2010


I've tried to compile 3.5.0 RC2 on MAc OS X 10.6.2 and I get an error towards the end---
any help/ideas would be greatly appreciated---


-----------<snip>-------------

torture/../../lib/util/tests/strlist.c:285: warning: passing argument 1 of ‘str_list_equal’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c: In function ‘test_list_remove’:
torture/../../lib/util/tests/strlist.c:302: warning: passing argument 1 of ‘str_list_remove’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c:303: warning: passing argument 1 of ‘str_list_equal’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c: In function ‘test_list_unique’:
torture/../../lib/util/tests/strlist.c:359: warning: passing argument 1 of ‘str_list_unique’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c:359: warning: assignment from incompatible pointer type
torture/../../lib/util/tests/strlist.c:362: warning: passing argument 2 of ‘str_list_equal’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c: In function ‘test_list_append’:
torture/../../lib/util/tests/strlist.c:425: warning: passing argument 1 of ‘str_list_append’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c:425: warning: assignment from incompatible pointer type
torture/../../lib/util/tests/strlist.c:427: warning: passing argument 2 of ‘str_list_equal’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c: In function ‘test_list_append_const’:
torture/../../lib/util/tests/strlist.c:459: warning: passing argument 1 of ‘str_list_append_const’ from incompatible pointer type
torture/../../lib/util/tests/strlist.c:459: warning: assignment from incompatible pointer type
torture/../../lib/util/tests/strlist.c:461: warning: passing argument 2 of ‘str_list_equal’ from incompatible pointer type
Compiling torture/../../lib/util/tests/parmlist.c
Compiling torture/../../lib/util/tests/str.c
Compiling torture/../../lib/util/tests/time.c
Compiling torture/../../lib/util/tests/data_blob.c
Compiling torture/../../lib/util/tests/file.c
Compiling torture/../../lib/util/tests/genrand.c
Compiling torture/../../lib/compression/testsuite.c
Compiling torture/../../lib/util/charset/tests/charset.c
Compiling torture/../libcli/security/tests/sddl.c
Compiling ../lib/tdr/testsuite.c
Compiling torture/../../lib/tevent/testsuite.c
Compiling torture/../param/tests/share.c
Compiling torture/../param/tests/loadparm.c
Compiling torture/../auth/credentials/tests/simple.c
Compiling torture/local/local.c
Compiling torture/local/dbspeed.c
Compiling torture/local/torture.c
Compiling torture/ldb/ldb.c
Partially linking bin/mergedobj/torture_local.o
Compiling lib/registry/tests/generic.c
Compiling lib/registry/tests/hive.c
Compiling lib/registry/tests/diff.c
Compiling lib/registry/tests/registry.c
Partially linking bin/mergedobj/torture_registry.o
Compiling ../lib/crypto/md4test.c
Compiling ../lib/crypto/md5test.c
Compiling ../lib/crypto/hmacmd5test.c
Partially linking bin/mergedobj/torture_libcrypto.o
Compiling torture/ndr/ndr.c
Compiling torture/ndr/winreg.c
Compiling torture/ndr/atsvc.c
Compiling torture/ndr/lsa.c
Compiling torture/ndr/epmap.c
Compiling torture/ndr/dfs.c
Compiling torture/ndr/netlogon.c
Compiling torture/ndr/drsuapi.c
Compiling torture/ndr/spoolss.c
Compiling torture/ndr/samr.c
Partially linking bin/mergedobj/torture_ndr.o
Compiling torture/auth/ntlmssp.c
Compiling torture/auth/pac.c
Partially linking bin/mergedobj/torture_auth.o
Compiling ../librpc/gen_ndr/ndr_echo_c.c
Partially linking bin/mergedobj/rpc_ndr_echo.o
Compiling torture/raw/qfsinfo.c
Compiling torture/raw/qfileinfo.c
Compiling torture/raw/setfileinfo.c
Compiling torture/raw/search.c
Compiling torture/raw/close.c
Compiling torture/raw/open.c
Compiling torture/raw/mkdir.c
Compiling torture/raw/oplock.c
Compiling torture/raw/notify.c
Compiling torture/raw/mux.c
Compiling torture/raw/ioctl.c
Compiling torture/raw/chkpath.c
Compiling torture/raw/unlink.c
Compiling torture/raw/read.c
Compiling torture/raw/context.c
Compiling torture/raw/write.c
Compiling torture/raw/lock.c
torture/raw/lock.c: In function ‘test_zerobytelocks’:
torture/raw/lock.c:1406: warning: assignment discards qualifiers from pointer target type
torture/raw/lock.c:1410: warning: assignment discards qualifiers from pointer target type
torture/raw/lock.c:1435: warning: assignment discards qualifiers from pointer ta
rget type
Compiling torture/raw/pingpong.c
Compiling torture/raw/lockbench.c
Compiling torture/raw/lookuprate.c
Compiling torture/raw/tconrate.c
Compiling torture/raw/openbench.c
Compiling torture/raw/rename.c
Compiling torture/raw/eas.c
Compiling torture/raw/streams.c
Compiling torture/raw/acls.c
Compiling torture/raw/seek.c
Compiling torture/raw/samba3hide.c
Compiling torture/raw/samba3misc.c
Compiling torture/raw/composite.c
Compiling torture/raw/raw.c
Compiling torture/raw/offline.c
Partially linking bin/mergedobj/torture_raw.o
Compiling torture/util_smb.c
Partially linking bin/mergedobj/torture_util.o
Compiling ../lib/torture/torture.c
Compiling ../lib/torture/subunit.c
Partially linking bin/mergedobj/torture.o
Linking bin/smbtorture
Undefined symbols:
  "_getpwent_r", referenced from:
      _test_nwrap_enum_r_passwd in torture_local.o
  "_getgrent_r", referenced from:
      _test_nwrap_enum_r_group in torture_local.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bin/smbtorture] Error 1


      


More information about the samba mailing list