Christian PELISSIER <Christian.Pelissier@...> wrote:
> Compilation is OK under Solaris 10 X86 with gcc.
>
> CFLAGS are : -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE
>
>
> ./configure --prefix=/usr/local CC=/opt/SUNWspro/bin/cc
>
> with Sun cc the above configure generate a Makefile with the following
> unrelated CFLAGS (compilation failed)
>
> -D_SGI_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
Can you send me the config.log, so that I discover why that flags?
> Editing Makefile with same CFLAGS as gcc it's OK (just some warning)
>
> /opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
> milter-greylist.c
> /opt/SUNWspro/bin/cc -O -D_REENTRANT -D__EXTENSIONS__ -D_BSD_SOURCE -c
> pending.c
> "pending.c", line 582: warning: identifier redeclared: ipfromstring
> current : function() returning int
> previous: function(pointer to char, pointer to struct sockaddr
> {unsigned short sa_family, array[14] of char sa_data}, pointer to
> unsigned int, unsigned short) returning int : "pending.h", line 101
> "pending.c", line 586: warning: Prototype mismatch in arg 4 for function
> ipfromstring:
> function : old style declaration unsigned short promoted to int
> prototype: unsigned short
I don't understand this warning: the prototype and the function have the
same arguments. Someone cal explain me?
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...Message
Re: [milter-greylist] greylist-3.0rc3 with solaris 10.1 X86
2006-09-27 by manu@netbsd.org
Attachments
- No local attachments were found for this message.