Question about another IA64 HP-UX build problem
John David Anglin
dave@hiauly1.hia.nrc.ca
Sun May 22 05:43:00 GMT 2005
> On Thu, 5 May 2005, Steve Ellcey wrote:
> > Yes, I have built this on ia64-hpux before. It always gave a warning
> > because it didn't see the declaration of getc_unlocked in stdio.h. This
> > is because _REENTRENT is not defined and the HP-UX header file only
> > defines getc_unlocked when _REENTRENT is defined.
The same error occurs on hppa2.0w-hp-hpux11.11. Adding -pthread to CFLAGS
will provide the define but that will also cause linking against libpthread.
The linux manpage advises not using the nonstandard unlocked variants:
CONFORMING TO
The four functions getc_unlocked(), getchar_unlocked(),
putc_unlocked(), putchar_unlocked() are in POSIX.1. The nonstandard
*_unlocked() variants occur on a few Unix systems, and are available in
recent glibc. They should probably not be used.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the Binutils
mailing list