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 60248 - strfunc-test fails to compile
strfunc-test fails to compile
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
1.3.x
Other other
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2001-09-09 11:13 UTC by Finlay Dobbie
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Here's my patch to fix this problem. (7.77 KB, patch)
2001-09-10 19:33 UTC, Darin Adler
none Details | Review

Description Finlay Dobbie 2001-09-09 11:13:51 UTC
glib-1.3.7: make check dies with:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib -I../gmodule -DG_ENABLE_DEBUG  -no-cpp-precomp  -I/sw/include -Wall -D_REENTRANT -c strfunc-test.c
strfunc-test.c: In function `main':
strfunc-test.c:329: `isalnum' undeclared (first use in this function)
strfunc-test.c:329: (Each undeclared identifier is reported only once
strfunc-test.c:329: for each function it appears in.)
strfunc-test.c:330: `isalpha' undeclared (first use in this function)
strfunc-test.c:331: `iscntrl' undeclared (first use in this function)
strfunc-test.c:332: `isdigit' undeclared (first use in this function)
strfunc-test.c:333: `isgraph' undeclared (first use in this function)
strfunc-test.c:334: `islower' undeclared (first use in this function)
strfunc-test.c:335: `isprint' undeclared (first use in this function)
strfunc-test.c:336: `ispunct' undeclared (first use in this function)
strfunc-test.c:337: `isspace' undeclared (first use in this function)
strfunc-test.c:338: `isupper' undeclared (first use in this function)
strfunc-test.c:339: `isxdigit' undeclared (first use in this function)
make[2]: *** [strfunc-test.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
Comment 1 Darin Adler 2001-09-10 19:33:19 UTC
Created attachment 5578 [details] [review]
Here's my patch to fix this problem.
Comment 2 Finlay Dobbie 2001-09-14 21:06:35 UTC
Darin's patch appears to fix the problem.
Comment 3 Owen Taylor 2001-09-19 18:44:31 UTC
2001-09-17  Darin Adler  <darin@bentspoon.com>

	* tests/strfunc-test.c: (main): Change so that it works
	on platforms where isalpha is a macro only, without the
	corresponding function that the C standard requires.
	Also eliminate the multiple lists of ctype functions.