The Samba-Bugzilla – Bug 4008
Compile error in client/client.c when building for SCO OSR 5
Last modified: 2006-08-08 09:58:58 UTC
When compiling Samba 3.0.23a on SCO OpenServer 5 I get a compile error in client/client.c:
client/client.c: In function `remote_completion':
client/client.c:3000: `PATH_MAX' undeclared (first use in this function)
client/client.c:3000: (Each undeclared identifier is reported only once
client/client.c:3000: for each function it appears in.)
make: *** [client/client.o] Error 1
The definition for PATH_MAX can be found in limits.h
I am using gcc rather than the SCO compiler.
Correction. PATH_MAX is not actually in limits.h unless another conditional is defined. It would appear as though a #ifndef PATH_MAX #define PATH_MAX type construct is going to be required.
In a later module I also found MAXPATHLEN to be undefined.