[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gawk 3.2.1 on HP-UX
From: |
Michael Elizabeth Chastain |
Subject: |
Re: Gawk 3.2.1 on HP-UX |
Date: |
Fri, 25 Jun 2004 17:00:44 -0400 (EDT) |
Hi Mike,
> Your suggestion works.
Thanks, that's good to know. Although I hope the next gawk will come
out soon and erase the issue.
> 1) define UNIX_STD=98 in the environment.
> 2) compile with the macro -D_XOPEN_SOURCE=500
> 3) with gcc, explicitly link with the object file unix98.o
I knew about (2), but I didn't know about (1) and (3). My patch (the
big awkward one) is supposed enable multibyte support if both of these
are defined: (a) the multibyte functions and (b) the mbstate_t macro.
I tested it with -D_XOPEN_SOURCE=500 using the hp ansi c compiler and
the build logs say that multibyte support is turned on. I gave up on
sorting the issues with gcc though.
> If you can tell me how get unix98.o used with the linker, I'll give it
> another try.
I took a wild flying leap with google on "unix98.o" and came up with:
http://devrsrc1.external.hp.com/STKT/impacts/i332.html
Which says that you need to add /usr/lib/hpux32/unix98.o for a 32-bit
link or /usr/lib/hpux64/unix98.o for a 64-bit link. But I am a bit
skeptical that these hp-supplied files would work with gcc; they are
probably meant for hp's compiler.
To add unix98.o to the link, try adding this to your configure command:
configure LIBS=/usr/lib/hpux32/unix98.o
Michael C