Subject: Re: pkg/12705: pkgsrc/www/mozilla for 0.8.1 fails to build on i388
To: NetBSD Bugs and PR posting List <netbsd-bugs@NetBSD.ORG>
From: Frederick Bruckman <>
List: netbsd-bugs
Date: 05/04/2001 14:12:22
On Fri, 4 May 2001, Greg A. Woods wrote:

> [ On Friday, May 4, 2001 at 12:05:01 (-0500), Frederick Bruckman wrote: ]
> > You realize that the package build sets ${LDFLAGS} in the environment?
> Yes, indeed I do!

> FYI the command that fails when 'make' is run from the
> pkgsrc/www/mozilla directory (either initially, or a second time) is
> identical:
>     cc -o -shared -Wl,-soname, -Wl,-R/usr/pkg/lib/mozilla [...] -lpthread
>     /usr/bin/ld: cannot open -lpthread: No such file or directory
>     collect2: ld returned 1 exit status

> The mozilla build seems to already be careful not to be influenced by
> at least that environment variable....

I see. So the mystery is why configure didn't put "-L/usr/pkg/lib
-Wl,-R/usr/pkg/lib" in the file ".../pthreads/Makefile". Do
"config.log" and "config.status" indicate that the test for pthreads
passed? At the top, package level, what is the result of "make -V

> I still don't understand why the build fails on my system but clearly
> not on other people's systems....

It may be that no one's ever tried to build it againt NetBSD-1.5T.

> Note that I have no mozilla installed on my system now.  I did a
> 'pkg_delete mozilla' before trying to build the new version.

Don't think that would matter. It's not picking up a wrong library.
The flags to tell it where libpthreads is are completely missing.