[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems building 3.1.[23] on HP-UX 11.11
From: |
Stepan Kasal |
Subject: |
Re: Problems building 3.1.[23] on HP-UX 11.11 |
Date: |
Tue, 30 Sep 2003 13:40:39 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Hello,
I've received a bug-report to my personal e-mail today;
it was speaking about problems with mbstate_t on HP-UX 11.11, adding
that a hack I suggested earlier didn't work; see full text below.
I replied with a suggestion to disable multibyte support by
undefining HAVE_MBRTOWC in custom.h. Ron has confirmed that with this
modification, gawk compiled and "make check" passed.
This experience teaches me that the best solution to the
mbstate_t problem on HP-UX 11.11 really is to use AC_FUNC_MBRTOWC instead
of a generic test macro in configure.ac . This macro also checks whether
mbstate_t is defined. The consequence is that the resulting ./configure
script will automatically disable multibyte support on such broken systems.
I'll submit this change to Arnold, eventually.
Stepan Kasal
----- message from Ron Wuerth <address@hidden> -----
Subject: Re: Problems building 3.1.[23] on HP-UX 11.11
Date: Mon, 29 Sep 2003 20:03:17 -0400
Stephan,
I wound up getting an error which was discussed between you and Dirk
Heinz on the mail.gnu.org site back in July for gawk-3.1.3 build on
hp-ux 11.11 system.
In short the error was:
In file included from array.c:43:
awk.h:970: parse error before "mbstate_t"
Your last message asked for this hack to be put in place in custom.h:
/* For HP/UX with gcc */
#if defined(hpux) || defined(_HPUX_SOURCE)
/* ... */
#if defined(HAVE_MBRLEN) && defined(HAVE_WCHAR_H) &&
defined(HAVE_WCTYPE_H)
#undef HAVE_MBRTOWC
#define HAVE_MBRTOWC 1
#define _XOPEN_SOURCE 500
#include <stdarg.h>
#endif
I put this hack in place, and got past the error for this. However I
ran into a different problem later on during the 'make'.
gcc -g -O2 -o gawk array.o awkgram.o builtin.o ext.o field.o
gawkmisc.o getopt.o getopt1.o io.o main.o msg.o node.o randoegex.o
replace.o version.o eval.o profile.o ./intl/libintl.a -ldl -lm
io.o(.text+0x2a44): In function `socketopen':
/work/gawk-3.1.3/io.c:1141: undefined reference to `htonl'
collect2: ld returned 1 exit status
make[2]: *** [gawk] Error 1
make[2]: Leaving directory `/work/gawk-3.1.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/gawk-3.1.3'
make: *** [all] Error 2
My specs are:
gcc 3.3.1
HP-UX 11.11 64 bit system (rp8400).
I'm simply accepting defaults for 'configure' (i.e. just typing
./configure).
Now, I'm a compiling dummy. But one thing I knew to check was a 'man
htonl' to make sure there was such a beast. It does exist, so I'm
stumped as to what the problem may be.
Any help would be much appreciated.
Ron Wuerth
Systems Administrator
Virginia International Terminals, Inc.
(757) 391-6194 ph
(757) 391-6223 fx
address@hidden
----- End forwarded message -----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Problems building 3.1.[23] on HP-UX 11.11,
Stepan Kasal <=