[78] in Pthreads mailing list archive
hpux9.05 trouble
daemon@ATHENA.MIT.EDU (Neal Becker)
Tue Aug 15 17:02:19 1995
Date: Tue, 15 Aug 95 16:35:06 -0400 (EDT)
From: neal@ctd.comsat.com (Neal Becker)
To: proven@MIT.EDU, pthreads@MIT.EDU
OK, I threw together a guess at __stdio.h and __signal.h for hpux9.
Now I get:
---------------------
neal:/src/pthreads/% make
gcc -I. -Iinclude -I/src/pthreads/include -DPTHREAD_KERNEL -g -O -Werror -c /src/pthreads/net/gethostbyaddr.c -o obj/gethostbyaddr.o -D_POSIX_SOURCE
In file included from include/signal.h:41,
from include/pthread.h:70,
from /src/pthreads/net/gethostbyaddr.c:40:
include/sys/__signal.h:7: conflicting types for `sig_atomic_t'
/usr/include/sys/signal.h:28: previous declaration of `sig_atomic_t'
In file included from include/pthread.h:70,
from /src/pthreads/net/gethostbyaddr.c:40:
include/signal.h:65: conflicting types for `sigblock'
/usr/include/sys/signal.h:127: previous declaration of `sigblock'
include/signal.h:67: conflicting types for `sigpause'
/usr/include/sys/signal.h:139: previous declaration of `sigpause'
include/signal.h:68: conflicting types for `sigsetmask'
/usr/include/sys/signal.h:128: previous declaration of `sigsetmask'
make: *** [obj/gethostbyaddr.o] Error 1
------------------
I tried adding -D_POSIX_SOURCE, now I get no complaint.
I think maybe _POSIX_SOURCE and _ANSI_SOURCE should be defined. But
where should that have happened? Did configure mess up? Or is this
in an include somewhere?