[768] in Pthreads mailing list archive

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

pthreads 1.60-b6: make test won't compile on SunOS 4.1.4

daemon@ATHENA.MIT.EDU (Tim Gilbert)
Mon May 18 17:02:35 1998

Date: Mon, 18 May 1998 13:55:58 -0700 (PDT)
From: Tim Gilbert <gilbert@marin.cc.ca.us>
Reply-To: gilbert@marin.cc.ca.us
To: pthreads@MIT.EDU

Hi.  I'm trying to get pthreads 1.60 beta 6 running on a SunOS 4.1.4 box.  I
did the standard confiure; make; make install and everything worked pretty
well.  I did get one error when compiling, actually:

./stdio/vfprintf.c:733: warning: `#ifndef' argument starts with a digit

Changing this line from "#ifndef 0" to "#if 0" solved the problem (I assume
this is right?).

However, now when I try to compile the tests in the tests subdirectory, pgcc
gives me multiply defined errors and won't link, eg:

../pgcc -notinstalled -g -O -Werror -o test_create test_create.o -static
collect2: ld returned 2 exit status
ld: /lib/libc.a(flsbuf.o): _fflush: multiply defined
ld: /lib/libc.a(flsbuf.o): __cleanup: multiply defined
gmake: *** [test_create] Error 1

Can anybody help me out with this?  Do I need to recompile my libc.a or
something?  (I thought the included threaded stdio library was all I
needed).  Is there some flag I need to give to gcc to tell it not to link
libc.a against a.out?  (I couldn't find one in its docs or FAQ.)  BTW, I am
using gcc 2.8.1.

It would be nice to get some sort of documentation on pthreads (at least a
brief INSTALL document; I guess it is pretty obvious that the canonical
"./configure; gmake; gmake install" holds, but it would be nice to actually
see that written down somewhere).

TIA...								-- Tim

--
Tim Gilbert <> gilbert@marin.cc.ca.us <> http://www.marin.cc.ca.us/~gilbert/


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