Greetings,
Before I start digging into making our local passdb plugin work with Samba
3.0.25, is there any heads up I need to know about?
I tried to compile the example plugin in samba-3.0.25/examples/pdb, but it
fails. See below for a sample of the error messages.
If I try to compile the same example that comes with Samba v3.0.24, the
example code compiles without any issues?
Any pointers?
I am running Centos v4.4 & gcc v3.4.6.
If add ' source/tdb/include' to my compile to pickup tdb.h, even more
errors! :(
Thanks
Paul
#1 - first try
[paulg@jazzy pdb]$ make
libtool --mode=compile gcc -I../../source -I../../source/include
-I../../source/ubiqx -I../../source/smbwrapper -Wall -g
-I/usr/include/heimdal -fPIC -c test.c
gcc -I../../source -I../../source/include -I../../source/ubiqx
-I../../source/smbwrapper -Wall -g -I/usr/include/heimdal -fPIC -c test.c
-fPIC -DPIC -o .libs/test.o
In file included from test.c:21:
../../source/include/includes.h:636:17: tdb.h: No such file or directory
In file included from ../../source/include/includes.h:637,
from test.c:21:
../../source/include/util_tdb.h:35: error: syntax error before
"TDB_DATA"
../../source/include/util_tdb.h:35: warning: no semicolon at end of struct
or union
../../source/include/util_tdb.h:36: warning: type defaults to `int' in
declaration of `TDB_LIST_NODE'
../../source/include/util_tdb.h:36: warning: data definition has no type
or storage class
../../source/include/util_tdb.h:44: error: syntax error before '*' token
../../source/include/util_tdb.h:44: warning: type defaults to `int' in
declaration of `tdb_search_keys'
../../source/include/util_tdb.h:44: warning: data definition has no type
or storage class
../../source/include/util_tdb.h:45: error: syntax error before '*' token
../../source/include/util_tdb.h:48: error: syntax error before '*' token
../../source/include/util_tdb.h:51: error: syntax error before '*' token
../../source/include/util_tdb.h:53: error: syntax error before '*' token
../../source/include/util_tdb.h:58: error: syntax error before
"TDB_DATA"
../../source/include/util_tdb.h:60: error: syntax error before
"TDB_DATA"
../../source/include/util_tdb.h:61: error: syntax error before
"tdb_fetch_bystring"
../../source/include/util_tdb.h:61: warning: type defaults to `int' in
declaration of `tdb_fetch_bystring'
../../source/include/util_tdb.h:61: warning: data definition has no type
or storage class
../../source/include/util_tdb.h:67: error: syntax error before
"make_tdb_data"
../../source/include/util_tdb.h:67: warning: type defaults to `int' in
declaration of `make_tdb_data'
../../source/include/util_tdb.h:67: warning: data definition has no type
or storage class
../../source/include/util_tdb.h:68: error: syntax error before
"string_tdb_data"
../../source/include/util_tdb.h:68: warning: type defaults to `int' in
declaration of `string_tdb_data'
../../source/include/util_tdb.h:68: warning: data definition has no type
or storage class
../../source/include/util_tdb.h:69: error: syntax error before
"TDB_DATA"
../../source/include/util_tdb.h:71: error: syntax error before '*' token
../../source/include/util_tdb.h:73: error: syntax error before '*' token
../../source/include/includes.h:638:21: tdbback.h: No such file or
directory
In file included from ../../source/librpc/gen_ndr/srvsvc.h:3,
from ../../source/librpc/gen_ndr/wkssvc.h:3,
from ../../source/include/smb.h:315,
from ../../source/include/includes.h:661,
from test.c:21:
../../source/librpc/gen_ndr/security.h:1:26: ndr/security.h: No such file
or directory
In file included from ../../source/include/includes.h:689,
from test.c:21:
../../source/include/rpc_eventlog.h:63: error: syntax error before
"TDB_CONTEXT"
../../source/include/rpc_eventlog.h:63: warning: no semicolon at end of
struct or union
../../source/include/rpc_eventlog.h:65: error: syntax error before '}'
token
../../source/include/rpc_eventlog.h:65: warning: type defaults to `int' in
declaration of `ELOG_TDB'
../../source/include/rpc_eventlog.h:65: warning: data definition has no
type or storage class
In file included from ../../source/nsswitch/winbind_client.h:1,
from ../../source/include/includes.h:706,
from test.c:21:
../../source/nsswitch/winbind_nss_config.h:39:27: system/passwd.h: No such
file or directory
../../source/nsswitch/winbind_nss_config.h:40:28: system/filesys.h: No
such file or directory
../../source/nsswitch/winbind_nss_config.h:41:28: system/network.h: No
such file or directory
In file included from ../../source/include/includes.h:788,
from test.c:21:
../../source/include/proto.h:249: error: syntax error before '*' token
../../source/include/proto.h:249: warning: type defaults to `int' in
declaration of `get_account_pol_tdb'
../../source/include/proto.h:249: warning: data definition has no type or
storage class
../../source/include/proto.h:525: error: syntax error before '*' token
../../source/include/proto.h:1462: error: syntax error before
"make_tdb_data"
../../source/include/proto.h:1462: warning: type defaults to `int' in
declaration of `make_tdb_data'
../../source/include/proto.h:1462: warning: data definition has no type or
storage class
../../source/include/proto.h:1463: error: syntax error before
"string_tdb_data"
../../source/include/proto.h:1463: warning: type defaults to `int' in
declaration of `string_tdb_data'
../../source/include/proto.h:1463: warning: data definition has no type or
storage class
../../source/include/proto.h:1464: error: syntax error before '*' token
../../source/include/proto.h:1465: error: syntax error before '*' token
../../source/include/proto.h:1466: error: syntax error before '*' token
../../source/include/proto.h:1468: error: syntax error before '*' token
../../source/include/proto.h:1469: error: syntax error before '*' token
../../source/include/proto.h:1470: error: syntax error before '*' token
../../source/include/proto.h:1471: error: syntax error before '*' token
../../source/include/proto.h:1472: error: syntax error before '*' token
../../source/include/proto.h:1473: error: syntax error before '*' token
../../source/include/proto.h:1474: error: syntax error before '*' token
../../source/include/proto.h:1475: error: syntax error before '*' token
../../source/include/proto.h:1476: error: syntax error before '*' token
../../source/include/proto.h:1477: error: syntax error before '*' token
../../source/include/proto.h:1478: error: syntax error before '*' token
../../source/include/proto.h:1479: error: syntax error before '*' token
../../source/include/proto.h:1480: error: syntax error before
"tdb_fetch_bystring"
../../source/include/proto.h:1480: error: syntax error before '*' token
../../source/include/proto.h:1480: warning: type defaults to `int' in
declaration of `tdb_fetch_bystring'
../../source/include/proto.h:1480: warning: data definition has no type or
storage class
../../source/include/proto.h:1481: error: syntax error before '*' token
../../source/include/proto.h:1482: error: syntax error before '*' token
../../source/include/proto.h:1483: error: syntax error before '*' token
../../source/include/proto.h:1489: error: syntax error before '*' token
../../source/include/proto.h:1490: warning: type defaults to `int' in
declaration of `tdb_open_log'
../../source/include/proto.h:1490: error: conflicting types for
'tdb_open_log'
../../source/include/util_tdb.h:64: error: previous declaration of
'tdb_open_log' was here
../../source/include/proto.h:1490: error: conflicting types for
'tdb_open_log'
../../source/include/util_tdb.h:64: error: previous declaration of
'tdb_open_log' was here
../../source/include/proto.h:1490: warning: data definition has no type or
storage class
../../source/include/proto.h:1491: error: syntax error before '*' token
../../source/include/proto.h:1493: error: syntax error before '*' token
../../source/include/proto.h:1494: error: syntax error before
"TDB_DATA"
../../source/include/proto.h:1496: error: syntax error before
"TDB_DATA"
../../source/include/proto.h:2965: error: syntax error before '*' token
../../source/include/proto.h:3657: error: syntax error before '*' token
../../source/include/proto.h:4676: error: syntax error before
"get_printer_notify_pid_list"
../../source/include/proto.h:4676: error: syntax error before '*' token
../../source/include/proto.h:4676: warning: type defaults to `int' in
declaration of `get_printer_notify_pid_list'
../../source/include/proto.h:4676: warning: data definition has no type or
storage class
../../source/include/proto.h:4760: error: syntax error before "key"
../../source/include/proto.h:4765: error: syntax error before
"TDB_CONTEXT"
../../source/include/proto.h:4769: error: syntax error before
"TDB_CONTEXT"
../../source/include/proto.h:6220: error: syntax error before '*' token
../../source/include/proto.h:6221: error: syntax error before '*' token
../../source/include/proto.h:7505: error: syntax error before '*' token
../../source/include/proto.h:7505: warning: type defaults to `int' in
declaration of `elog_init_tdb'
../../source/include/proto.h:7505: warning: data definition has no type or
storage class
../../source/include/proto.h:7507: error: syntax error before '*' token
../../source/include/proto.h:7508: error: syntax error before '*' token
../../source/include/proto.h:7510: error: syntax error before '*' token
../../source/include/proto.h:7511: error: syntax error before '*' token
../../source/include/proto.h:7512: error: syntax error before '*' token
../../source/include/proto.h:7512: warning: type defaults to `int' in
declaration of `elog_open_tdb'
../../source/include/proto.h:7512: warning: data definition has no type or
storage class
../../source/include/proto.h:7513: error: syntax error before '*' token
../../source/include/proto.h:7514: error: syntax error before '*' token
../../source/include/proto.h:8176: error: syntax error before '*' token
../../source/include/proto.h:8176: warning: type defaults to `int' in
declaration of `conn_tdb_ctx'
../../source/include/proto.h:8176: warning: data definition has no type or
storage class
../../source/include/proto.h:8771: error: syntax error before '*' token
../../source/include/proto.h:8803: error: syntax error before '*' token
make: *** [test.lo] Error 1
--