Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA22848; Sun, 17 Mar 96 23:26:11 EST
Received: from kipr.us.net by MIT.EDU with SMTP
	id AA26116; Sun, 17 Mar 96 23:24:42 EST
Received: (from rsargent@localhost) by atoll.kipr.org (8.6.12/8.6.12) id XAA00416; Sun, 17 Mar 1996 23:29:47 -0500
Date: Sun, 17 Mar 1996 23:29:47 -0500
Message-Id: <199603180429.XAA00416@atoll.kipr.org>
From: Randy Sargent <rsargent@kipr.org>
To: hseung@selab.kaist.ac.kr
Cc: pthreads-bugs@MIT.EDU
Subject: Re: problems in Linux


> I managed to compile and install the pthreads-1_60_beta5 package on
> Linux by commenting out the definition for "struct timespec" in
> 
> But now I'm encountering the following problems when compiling a
> hello.c file:
> 
> $ gcc hello.c -lpthread
> bfd assertion fail /opt/release/pub/bin/binutils/bfd/elfcode.h:4716
> bfd assertion fail /opt/release/pub/bin/binutils/bfd/elf32-i386.c:624
> $ 

I'm just a casual user, not an expert.

I happened to have the same problem with pthreads-1_60_beta4, with a
Slackware 3.0 install of Linux (which had: 
    gcc -v="gcc versoin 2.7.0", 
    ld -v="ld version cygnus/linux-2.5.2l.17 (with BFD cygnus/linux-2.5.2l.11)"
)

The workaround I found was to link statically, with:

pgcc -static hello.c

(Also, I think you want to use the provided script "pgcc", which gives
flags to gcc for which directories to find #includes, and for a more
correct way of linking against -lpthreads).

-- Randy

