Gentoo Archives: gentoo-alt

From: Nicolas Olivier <niko@××××××××.fr>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] gcc 4.3 fails on sparc-sun-solaris2.8
Date: Thu, 30 Apr 2009 09:14:13
Message-Id: 1c9304c00904300214x392f46e0n711a86bbb90ea32e@mail.gmail.com
In Reply to: Re: [gentoo-alt] gcc 4.3 fails on sparc-sun-solaris2.8 by Fabian Groffen
On Thu, Apr 30, 2009 at 10:57 AM, Fabian Groffen <grobian@g.o> wrote:
> > On 30-04-2009 10:51:10 +0200, Nicolas Olivier wrote: > > I'm trying to upgrade gcc on sparc-sun-solaris2.8 and it fails with : > > > >  * > >  * QA Notice: Package has poor programming practices which may compile > >  *            but will almost certainly crash on 64bit architectures. > >  * > >  * Function `strtok_r' implicitly converted to pointer at /oss1/users/ > > niolivie/gentoo/var/tmp/portage/sys-devel/gcc-4.3.2-r4/work/gcc-4.3.2/ > > gcc/gcc.c:6504 > > > Has anyone encountered this kind of problem ? > > Should I file a bug on gentoo or gcc ? > > I think this is because of Solaris 8 lacking strtok_r, or strtok_r being > in a header not included.  What does man strtok_r say? > > -- > Fabian Groffen > Gentoo on a different level
I would think of a define not set actually. Manpage says it's defined in string.h and actually it is in /usr/include/string.h as follow : #if defined(__EXTENSIONS__) || defined(_REENTRANT) || \ (_POSIX_C_SOURCE - 0 >= 199506L) extern char *strtok_r(char *, const char *, char **); #endif /* defined(__EXTENSIONS__) || defined(_REENTRANT) .. */