compilation error
Greg Dickie
greg at discreet.com
Tue Sep 26 18:33:14 GMT 2000
oops another one.... should I be using the 2.2 branch?
Compiling lib/messages.c
cc-1164 cc: WARNING File = lib/messages.c, Line = 92
Argument of type "void (*)(void)" is incompatible with parameter of type
"void (*)(int)".
CatchSignal(SIGUSR1, sig_usr1);
^
cc-3316 cc: ERROR File = lib/messages.c, Line = 163
The expression must be a pointer to a complete object type.
if (len > 0) memcpy(p+sizeof(rec), buf, len);
^
cc-3316 cc: ERROR File = lib/messages.c, Line = 177
The expression must be a pointer to a complete object type.
memcpy(p+dbuf.dsize, &rec, sizeof(rec));
^
cc-3316 cc: ERROR File = lib/messages.c, Line = 178
The expression must be a pointer to a complete object type.
if (len > 0) memcpy(p+dbuf.dsize+sizeof(rec), buf, len);
^
3 errors detected in the compilation of "lib/messages.c".
*** Error code 2 (bu21)
On 26-Sep-00 Herb Lewis wrote:
> Greg Dickie wrote:
>>
>> This is probably the wrong list but this is IDO 7.3 on IRIX 6.5.7f with the
>> HEAD branch of this morning:
>>
>> Compiling smbd/fileio.c
>> cc-1032 cc: ERROR File = smbd/fileio.c, Line = 566
>> The indicated expression must have an arithmetic type.
>>
>> SMB_ASSERT(wcp->data_size == 0);
>> ^
>>
>> 1 error detected in the compilation of "smbd/fileio.c".
>>
>
> I fixed that error in the 2.2 branch but forgot to check it into head
> as well. If you don't want to do another update (I'm going to check this
> into head but cvs is a little slow right now) change
> include/smb_macros.h
>
> < #define SMB_ASSERT(b) ((b)?0: \
> ---
>> #define SMB_ASSERT(b) ((b)?(void)0: \
>
> --
> ======================================================================
> Herb Lewis Silicon Graphics
> Networking Engineer 1600 Amphitheatre Pkwy MS-510
> Strategic Software Organization Mountain View, CA 94043-1351
> herb at sgi.com Tel: 650-933-2177
> http://www.sgi.com Fax: 650-932-2177
> ======================================================================
---------------------------------------------------------------------
Greg Dickie
Just A Guy
greg at discreet.com
More information about the samba-technical
mailing list