bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lib/string.in.h needs <config.h>


From: Albert Chin
Subject: lib/string.in.h needs <config.h>
Date: Wed, 17 Oct 2007 10:58:15 -0500
User-agent: Mutt/1.5.6i

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  <address@hidden>
              Jim Meyering  <address@hidden>

          * 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 (address@hidden)

Attachment: a
Description: patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]