Bug 4008 - Compile error in client/client.c when building for SCO OSR 5
Compile error in client/client.c when building for SCO OSR 5
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.23a
x86 Other
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-08 09:41 UTC by Stephen Boyd
Modified: 2006-08-08 09:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Boyd 2006-08-08 09:41:30 UTC
When compiling Samba 3.0.23a on SCO OpenServer 5 I get a compile error in client/client.c:

Compiling 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.
Comment 1 Stephen Boyd 2006-08-08 09:47:32 UTC
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.
Comment 2 Stephen Boyd 2006-08-08 09:58:58 UTC
In a later module I also found MAXPATHLEN to be undefined.