GNOME Bugzilla – Bug 60248
strfunc-test fails to compile
Last modified: 2004-12-22 21:47:04 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
Created attachment 5578 [details] [review] Here's my patch to fix this problem.
Darin's patch appears to fix the problem.
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.