Re: Building Samba version 3.0.1 on OSR5.0.6

From: Stuart Marshall (stuart_at_spidersoft.co.uk)
Date: 01/23/04


Date: Fri, 23 Jan 2004 15:15:57 +0000

Roberto Zini wrote:
> Stuart Marshall wrote:

>> ---8<---
>>
>> Compiling client/client.c
>> client/client.c: In function `do_get':
>> client/client.c:694: warning: passing arg 4 of `cli_getattrE' from
>> incompatible
>> pointer type
>> client/client.c: In function `do_put':
>> client/client.c:1070: warning: passing arg 4 of `cli_getattrE' from
>> incompatible
>> pointer type
>> client/client.c: In function `remote_completion':
>> client/client.c:2288: `PATH_MAX' undeclared (first use this function)
>> client/client.c:2288: (Each undeclared identifier is reported only once
>> client/client.c:2288: for each function it appears in.)
>> client/client.c: In function `do_host_query':
>> client/client.c:2669: warning: passing arg 1 of `list_servers'
>> discards `const'
>> from pointer target type
>> *** Error code 1 (bu21)
>>
>> ---8<---
>>
> Never tried personally (and I'm not in the position to check now) but do
> you have the
>
> /usr/include/limits.h
>
> file installed on your system ?

Yes, that's already there...

> If not (but this __might__ be only an useless workaround), try by adding
> the following in one of the samba's include file:
>
> #ifndef PATH_MAX
> #define PATH_MAX 1024
> #endif

However, the PATH_MAX is defined as 256 not 1024. I've tried changing
it to 1024, but exactly the same thing happens unfortunately.

It is actually building the 'smbd' and 'nmbd' executables -
unfortunately they don't appear to work.

>> Alternatively, if someone wants to save me all this trouble - does
>> anyone know of a pre-built binary distribution? (Yeah, yeah.. I know
>> Samba & SCO in the same sentence can provoke a more political
>> discussion these days).
>
> No, please, not today ! :-)

:-)

What version of Samba does 5.0.7 come preinstalled with?

Thanks,

Stuart.