This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Question about another IA64 HP-UX build problem
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: binutils at sources dot redhat dot com, sje at cup dot hp dot com
- Date: Sat, 21 May 2005 23:45:53 -0400 (EDT)
- Subject: Re: Question about another IA64 HP-UX build problem
> 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)