I received the following error after importing gnulib into scponly: cc -DHAVE_CONFIG_H -I. -DDEBUGFILE=\"/tmp/scponly46/etc/debuglevel\" -DPROG_CD=\"cd\" -Ilib -z +O2 +Ofltacc +Olit=all +Oentrysched +Odataprefetch +Onolimit -c scponly.c cc: "lib/string.h", line 298: error 1000: Unexpected symbol: "__stringp". cc: "lib/string.h", line 298: error 1000: Unexpected symbol: "__delim". cc: "lib/string.h", line 298: error 1573: Type of "__stringp" is undefined due to an illegal declaration. cc: "scponly.c", line 494: error 1000: Unexpected symbol: "strbeg". cc: "scponly.c", line 496: error 1533: Illegal function call. cc: "scponly.c", line 494: warning 527: Integral value implicitly converted to pointer in assignment.
A similar problem was discovered earlier this year by Jim Meyering: http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00374.html The attached patch addresses the problem in the same way. 2007-10-17 Albert Chin-A-Young <[EMAIL PROTECTED]> Jim Meyering <[EMAIL PROTECTED]> * lib/string.in.h: Include <config.h> before <string.h>. This fixes a compilation error on HP-UX, due to the system's "restrict"-using strsep prototype. -- albert chin ([EMAIL PROTECTED])
diff --git a/lib/string.in.h b/lib/string.in.h index ba7ca53..32ff5de 100644 --- a/lib/string.in.h +++ b/lib/string.in.h @@ -18,6 +18,8 @@ #ifndef _GL_STRING_H +#include <config.h> + /* The include_next requires a split double-inclusion guard. */ [EMAIL PROTECTED]@ @NEXT_STRING_H@