Subject: pkg/12705: pkgsrc/www/mozilla for 0.8.1 fails to build on i386 1.5T
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@proven.weird.com>
List: netbsd-bugs
Date: 04/19/2001 13:43:20
>Number: 12705
>Category: pkg
>Synopsis: pkgsrc/www/mozilla for 0.8.1 fails to build on i386 1.5T
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 19 10:44:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Greg A. Woods
>Release: pkgsrc-2001/04/18, Makefile rev. 1.62
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD proven 1.5T NetBSD 1.5T (PROVEN) #5: Tue Apr 17 20:14:46 EDT 2001 woods@proven:/work/woods/NetBSD-src/sys/arch/i386/compile/PROVEN i386
Architecture: i386
Machine: i386
>Description:
Last night (well early this AM) I thought I'd start building
mozilla-0.8.1 to upgrade from 0.7. Unfortunately it didn't get
very far at all -- it only ran for just under an hour and most
of that time was the "extract"....
cd pthreads; gmake export
gmake[4]: Entering directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub/pr/src/pthreads'
cc -o ptio.o -c -I/usr/pkg/include -O2 -pipe -O2 -I/usr/X11R6/include -pipe -O2 -I/usr/X11R6/include -I/usr/pkg/include -ansi -Wall -pipe -O -fPIC -DPIC -U_DEBUG -UDEBUG -DUSE_AUTOCONF=1 -DNDEBUG=1 -DXP_UNIX=1 -DNETBSD=1 -DHAVE_BSD_FLOCK=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/dist/include -I../../../pr/include -I../../../pr/include/private ptio.c
ptio.c:129: #error "Cannot determine architecture"
ptio.c: In function `pt_Connect':
ptio.c:1106: warning: unused variable `addrp'
ptio.c: In function `pt_Bind':
ptio.c:1257: warning: unused variable `addrp'
ptio.c: In function `pt_SendTo':
ptio.c:1475: warning: unused variable `addrp'
gmake[4]: *** [ptio.o] Error 1
gmake[4]: Leaving directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub/pr/src/pthreads'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub/pr/src'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub/pr'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub'
gmake: *** [export] Error 2
*** Error code 2
Stop.
That error was easy enough to fix, though it was in feature-test
code that was so ancient and brain-dead that I could hardly
believe my eyes. All I had to do was add "|| defined(NETBSD)"
to an incredibly long list of other stupid ifdefs. For code
that claims to use Autoconf this is horrible and ugly and
greatly reduces my trust in Mozilla and company!
But the first obvious fix didn't help a whole lot:
cc -o libnspr4.so -shared -Wl,-soname,libnspr4.so -Wl,-R/usr/pkg/lib/mozilla ./prvrsion.o io/./prfdcach.o io/./prmwait.o io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o threads/./prcmon.o threads/./prrwlock.o threads/./prtpd.o linking/./prlink.o malloc/./prmem.o md/./prosdep.o memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o misc/./prerr.o misc/./prerror.o misc/./prerrortable.o misc/./prinit.o misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o misc/./prnetdb.o misc/./prolock.o misc/./prrng.o misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o misc/./prtime.o malloc/./prmalloc.o pthreads/./ptsynch.o pthreads/./ptio.o pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./netbsd.o -lpthread
/usr/bin/ld: cannot open -lpthread: No such file or directory
collect2: ld returned 1 exit status
gmake[3]: *** [libnspr4.so] Error 1
gmake[3]: Leaving directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub/pr/src'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub/pr'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory `/work/woods/m-NetBSD-pkgsrc/www/mozilla/work.i386/mozilla/nsprpub'
gmake: *** [export] Error 2
*** Error code 2
Stop.
Now I know others have built Mozilla on -current so what the
heck's going on here?
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: