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
1 On Thu, Apr 30, 2009 at 10:57 AM, Fabian Groffen <grobian@g.o> wrote:
2 >
3 > On 30-04-2009 10:51:10 +0200, Nicolas Olivier wrote:
4 > > I'm trying to upgrade gcc on sparc-sun-solaris2.8 and it fails with :
5 > >
6 > >  *
7 > >  * QA Notice: Package has poor programming practices which may compile
8 > >  *            but will almost certainly crash on 64bit architectures.
9 > >  *
10 > >  * Function `strtok_r' implicitly converted to pointer at /oss1/users/
11 > > niolivie/gentoo/var/tmp/portage/sys-devel/gcc-4.3.2-r4/work/gcc-4.3.2/
12 > > gcc/gcc.c:6504
13 >
14 > > Has anyone encountered this kind of problem ?
15 > > Should I file a bug on gentoo or gcc ?
16 >
17 > I think this is because of Solaris 8 lacking strtok_r, or strtok_r being
18 > in a header not included.  What does man strtok_r say?
19 >
20 > --
21 > Fabian Groffen
22 > Gentoo on a different level
23
24 I would think of a define not set actually. Manpage says it's defined
25 in string.h and actually it is in /usr/include/string.h as follow :
26
27 #if defined(__EXTENSIONS__) || defined(_REENTRANT) || \
28 (_POSIX_C_SOURCE - 0 >= 199506L)
29 extern char *strtok_r(char *, const char *, char **);
30 #endif /* defined(__EXTENSIONS__) || defined(_REENTRANT) .. */