Bug 4008 - Compile error in client/client.c when building for SCO OSR 5
Summary: Compile error in client/client.c when building for SCO OSR 5
Status: RESOLVED DUPLICATE of bug 3746
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.23a
Hardware: x86 Other
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-08 09:41 UTC by Stephen Boyd
Modified: 2020-01-19 21:59 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.
Comment 3 Douglas Bagnall 2020-01-19 21:59:36 UTC
duplicate of #3746 and #4121 and fixed in commit 2b3c44e4fb980335c22abcc07a88f32b13e5918f

*** This bug has been marked as a duplicate of bug 3746 ***