[790] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Problem installing pthreads on linux

daemon@ATHENA.MIT.EDU (Raquel M. Crespo)
Wed Aug 19 10:15:30 1998

Date: Wed, 19 Aug 1998 14:47:03 +0100
From: "Raquel M. Crespo" <raquel@drake.bt.co.uk>
To: pthreads@MIT.EDU

Hi,

I have seen a similar question in the bugs archive, but no answer. I am
trying to get working pthreads on Debian Linux 2.0.34. I run configure
without problems, then make gets the following error:

gcc -I. -Iinclude -I/local/home/tests/pthreads-1_60_beta6/include
-DPTHREAD_KERN
EL -g -O -Werror -c
/local/home/tests/pthreads-1_60_beta6/net/gethostbyaddr.c -o
obj/gethostbyaddr.o
In file included from /usr/include/sys/time.h:28,
                 from include/pthread/machdep.h:10,
                 from include/pthread.h:46,
                 from
/local/home/tests/pthreads-1_60_beta6/net/gethostbyaddr.c:
40:
/usr/include/timebits.h:44: warning: `CLOCKS_PER_SEC' redefined
include/sys/__time.h:66: warning: this is the location of the previous
definitio
n
make: *** [obj/gethostbyaddr.o] Error 1

I attach the complete log file below and the system details are:
$ uname -a
Linux turnham 2.0.34 #2 Thu Jul 9 10:57:48 EST 1998 i586 unknown
$
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.3/specs
gcc version 2.7.2.3
$
$ make -v
GNU Make version 3.76.1, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-gnu-utils@prep.ai.mit.edu>.


Can anyone help me to fix it? I'm not in the mailing list, so please
send the answer to my e-mail.

Thanks

Raquel M. Crespo
BT Labs



$ make

if [ -d obj ]; then true; else mkdir obj; fi
cp /dev/null obj/x
echo '#ifndef _SYS___CONFIG_H_'              >
./include/pthread/config.h.new
echo '#define _SYS___CONFIG_H_'              >>
./include/pthread/config.h.new
egrep '^#define _OS_HAS' ./config.h >> ./include/pthread/config.h.new
echo '#endif'                                >>
./include/pthread/config.h.new
mv -f ./include/pthread/config.h.new ./include/pthread/config.h
echo '#ifndef pthread_size_t'                   >
./include/pthread/ac-types.h.
new
egrep '^#define pthread_' ./config.h    >>
./include/pthread/ac-types.h.new
echo '#endif'                                   >>
./include/pthread/ac-types.h.
new
mv -f ./include/pthread/ac-types.h.new ./include/pthread/ac-types.h
echo '#ifndef _SYS___PATHS_H_'                  >
./include/pthread/paths.h.new
echo '#define _SYS___PATHS_H_'                  >>
./include/pthread/paths.h.ne
w
egrep '^#define _PATH' ./config.h       >> ./include/pthread/paths.h.new

echo '#endif'                                   >>
./include/pthread/paths.h.new
mv -f ./include/pthread/paths.h.new ./include/pthread/paths.h
gcc -I. -Iinclude -I/local/home/tests/pthreads-1_60_beta6/include
-DPTHREAD_KERN
EL -g -O -Werror -c
/local/home/tests/pthreads-1_60_beta6/net/gethostbyaddr.c -o
 obj/gethostbyaddr.o
In file included from /usr/include/sys/time.h:28,
                 from include/pthread/machdep.h:10,
                 from include/pthread.h:46,
                 from
/local/home/tests/pthreads-1_60_beta6/net/gethostbyaddr.c:
40:
/usr/include/timebits.h:44: warning: `CLOCKS_PER_SEC' redefined
include/sys/__time.h:66: warning: this is the location of the previous
definitio
n
make: *** [obj/gethostbyaddr.o] Error 1




home help back first fref pref prev next nref lref last post