This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]