After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 69908 - pangox and strtok_r
pangox and strtok_r
Status: RESOLVED DUPLICATE of bug 79472
Product: pango
Classification: Platform
Component: general
unspecified
Other All
: Normal minor
: 1.0.0
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2002-01-28 18:37 UTC by Morten Welinder
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2002-01-28 18:37:28 UTC
pangox.c: In function `parse_gintset_spec':
pangox.c:76: warning: implicit declaration of function `strtok_r'
pangox.c:76: warning: assignment makes pointer from integer without a cast
pangox.c:96: warning: assignment makes pointer from integer without a cast
[...]
Comment 1 Owen Taylor 2002-01-28 19:16:12 UTC
Hmmm, I thought I asked Robert Brady to fix that when that
code was added. Anyways, a patch would be much appreciated
if you don't have strtok_r on your machine; I doubt I'll
get to this very soon.
Comment 2 Morten Welinder 2002-01-28 19:50:14 UTC
Dang.  I guess that's what I get for being overly brief.
strtok_r is there, just not prototyped under default conditions.
On Solaris (the system in question) this is probbaly harmless,
but I'm not so sure elsewhere.


#if defined(__STDC__)

#if
defined(__EXTENSIONS__) || defined(_REENTRANT) || \
	    (_POSIX_C_SOURCE - 0 >= 199506L)
extern char *strtok_r(char *, const char *, char **);
#endif
/* defined(__EXTENSIONS__) || defined(_REENTRANT) .. */

Comment 3 Owen Taylor 2002-01-29 01:44:26 UTC
Do you have any idea what the _correct_ thing to define would
be to get this on Solaris?

[ We probably still need a fallback for older systems, but
that can probably wait until people complain ]
Comment 4 Owen Taylor 2002-02-26 21:01:14 UTC
Can't do anything without more information. Please reopen
from NEEDINFO if you add comments.
Comment 5 Morten Welinder 2002-02-26 21:33:01 UTC
I think you need to lure a Sun guy over here to help.
(Leaving NEEDINFO)
Comment 6 Owen Taylor 2003-07-24 19:32:35 UTC
Seems to have been since fixed (and the code will be
dying for Pango-1.4 anyways)


*** This bug has been marked as a duplicate of 79472 ***