info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cvs make problem on DEC alpha building rcs.c


From: Miller Dale C Contr AFWA/SDHS
Subject: RE: cvs make problem on DEC alpha building rcs.c
Date: Wed, 11 Feb 2004 12:33:43 -0600

Larry,
Thank you for your quick reply.  Adding "(VOID *)" to MAP_FAILED worked.
I will check if an updated sys/mman.h is available for our DEC alpha 4.0
systems.  Thanks again, 
Dale Miller

-----Original Message-----
From: address@hidden [mailto:address@hidden 
Sent: Tuesday, February 10, 2004 4:34 PM
To: address@hidden
Cc: address@hidden
Subject: Re: cvs make problem on DEC alpha building rcs.c

Miller Dale C Contr AFWA/SDHS writes:
> 
> source='rcs.c' object='rcs.o' libtool=no  depfile='.deps/rcs.Po'
>   tmpdepfile='.deps/rcs.TPo'  depmode=tru64 /bin/sh ../depcomp  
>   cc -std1 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../diff -I../zlib
>   -g -c `test -f 'rcs.c' || echo './'`rcs.c
> cc: Error: rcs.c, line 1027: In this statement, "rcsbuf_buffer" and
> "(-1)" 
>      may not be compared for equality or inequality.
>         if ( rcsbuf_buffer == NULL || rcsbuf_buffer == MAP_FAILED )

It appears that your <sys/mman.h> header file is defective in that it
doesn't work correctly in ANSI C mode.  I suggest you complain to your
vendor and see if they have a fix available.  In the meantime, you can
probably circumvent the problem by changing "MAP_FAILED" in the above
line to "(void *)MAP_FAILED".

-Larry Jones

Some people just don't have inquisitive minds. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]