[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed 4.0.8 build problem on HP-UX 11.11 with gcc 3.3.2
From: |
Dano Carroll |
Subject: |
sed 4.0.8 build problem on HP-UX 11.11 with gcc 3.3.2 |
Date: |
Fri, 19 Dec 2003 13:01:01 -0600 (CST) |
Hello,
I've encounted a problem with building sed-4.0.8 on HP-UX 11.11. The
problem seems to stem from a failure to include /usr/include/sys/_mbstate_t.h
which /usr/include/wchar.h should do. I don't know enough about how to
debug includes to figure out what was wrong. However, there is a
thread on a similar problem with building on awk on HP-UX 11.11 which
I found at:
http://mail.gnu.org/archive/html/bug-gnu-utils/2003-07/msg00361.html
My build environment consists of
gcc:
Configured with: ../gcc-3.3.2/configure --prefix=/usr/local --disable-nls
--enable-languages=c,c++ --with-ld=/usr/bin/ld --with-gnu-as
--with-as=/usr/local/bin/as
Thread model: single
gcc version 3.3.2
binutils 2.14 which was built on an HP-UX 11.00 machine.
make 3.80 which was also built on an HP-UX 11.00 machine
grep 2.5 ditto
The specific problem occurs in the compilation of three files:
lib/regex.c
/usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I..
-I../lib -I/usr/local/include -I/usr/local/include -c -o regex.o regex.c
In file included from regex.c:48:
regex_internal.h:311: error: parse error before "mbstate_t"
regex_internal.h:311: warning: no semicolon at end of struct or union
...many more errors that I think cascade from this error...
sed/compile.c
/usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I..
-I../lib -DLOCALEDIR="/usr/local/share/locale" -I/usr/local/include
-I/usr/local/include -c -o compile.o compile.c
compile.c: In function `compile_program':
compile.c:1246: error: `mbstate_t' undeclared (first use in this function)
compile.c:1246: error: (Each undeclared identifier is reported only once
compile.c:1246: error: for each function it appears in.)
compile.c:1246: error: parse error before "cur_stat"
sed/execute.c
/usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I..
-I../lib -DLOCALEDIR="/usr/local/share/locale" -I/usr/local/include
-I/usr/local/include -c -o execute.o execute.c
execute.c: In function `execute_program':
execute.c:1355: error: `mbstate_t' undeclared (first use in this function)
execute.c:1355: error: (Each undeclared identifier is reported only once
execute.c:1355: error: for each function it appears in.)
execute.c:1355: error: parse error before "cur_stat"
The included three patches just put an include of <sys/_mbstate_t.h>
before the include <wchar.h>.
Sincerely,
Dano Carroll
--
Dano Carroll | VM +1(512)432-8229 | I love penguins, 'cause
HP DAZEL Division | | penguins are sensitive
System Administrator | | to my needs -- Lyle Lovett
sed-4.0.8.sed.compile.c.patch
Description: ascii text
sed-4.0.8.sed.execute.c.patch
Description: ascii text
sed-4.0.8.lib.regex_internal.h.patch
Description: ascii text
- sed 4.0.8 build problem on HP-UX 11.11 with gcc 3.3.2,
Dano Carroll <=