Subject: Re: gcc3/mozilla pthread link error under current
To: David Brownlee <abs@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 06/24/2003 19:31:09
On Tue, 24 Jun 2003, David Brownlee wrote:

> 	I'm trying a gcc3 on 1.6U with a very slight variation on the
> 	--host=i386--netbsdelf2.0 patch in PR pkg/21848 (attached),

[Yes, testing for the existence of /usr/include/pthread.h makes sense.]

> 	and am not having a lot of luck. For example graphics/png
> 	fails to build pngtest:
>
> 	(extract from scripts/makefile.std: '-v' added to give more output)

> /usr/bin/ld: cannot find -lgcc_eh

That's not due to the pthreads. I get the same thing on 1.6.1 with
"CC=/usr/pkg/gcc-3.3/bin/gcc make". Curiously, an out-of-the-box
(well, mostly) gcc3 compiler doesn't have the problem. Even more
curiously, after getting the same error while building "mail/imap-uw",
I was able to work around it by descending into each utility's
directory and running "make" (but that's not so easy with "png").

Frederick