[SAMBA_3_0]building tdb/tdbtorture problems.
John E. Malmberg
wb8tyw at qsl.net
Wed Aug 30 20:38:03 GMT 2006
The tdbtorture utility is not built as part of SAMBA so I am building
the tdb/ directory standalone.
$ bash tdb_make.sh
Compiling tools/tdbtool.c
#include "pstring.h"
.^
%CC-F-NOINCLFILEF, Cannot find file "pstring.h" specified in
#include directive.
I fix that by setting a logical name to add that directory to the
default include search path. (A logical name is an OpenVMS sort of
equivalent to a symbolic link).
Then I fail at:
Compiling common/io.c
static ssize_t pread(int fd, void *buf, size_t count, off_t offset)
................^
%CC-W-MIXLINKAGE, In this declaration, "pread" is declared with both
internal and external linkage. The previous declaration is at line
number 780 in file SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;2 (text module
UNISTD).
at line number 33 in file SRC_ROOT:[samba_3_0.source.tdb.common]io.c;1
This is because the tdb/include/config.h file is not included and so the
proper values of the macros HAVE_PREAD and HAVE_PWRITE are not being seen.
Defining those macros before compiling the io.c module seems to result
in the tdb programs being built.
-John
wb8tyw at qsl.net
Personal Opinion Only
More information about the samba-technical
mailing list