Subject: Re: mail/metamail/patches/patch-as breaks this package on Solaris
To: None <joerg@britannica.bec.de>
From: None <segv@netctl.net>
List: tech-pkg
Date: 02/01/2006 22:37:28
On Wed, 1 Feb 2006 23:29:10 +0100
joerg@britannica.bec.de wrote:

> On Wed, Feb 01, 2006 at 10:15:57PM +0000, segv@netctl.net wrote:
> > [roman@dhcli-192-168-0-5.netctl.net] uname -a
> > SunOS dhcli-192-168-0-5.netctl.net 5.11 snv_28 sun4u sparc SUNW,Ultra-5_10
> > 
> > Building mail/metamail on OpenSolaris with gcc installed from lang/gcc3-c
> > fails. This is due to patch-as. Reverting the patch results in a successful
> > build.
> > 
> > Could someone please review this patch.
> 
> Can you please be more detailed? I'm pretty sure that the patch is
> correct with regard to standard compliance, so I'd like to reduce any
> other difference to the smallest hack necessary.
> 
> Joerg

In file included from putenv.c:22:
/usr/include/stdlib.h:185: error: conflicting types for `srand48'
/usr/include/stdlib.h:137: error: previous declaration of `srand48'
putenv.c: In function `putenv':
putenv.c:44: error: argument `string' doesn't match prototype
/usr/include/stdlib.h:138: error: prototype declaration
*** Error code 1

Stop.
bmake: stopped in /opt/pkg.obj/mail/metamail/work/mm2.7/src/metamail
*** Error code 1