Subject: pkg/31170: firefox package build dumps core
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 09/06/2005 15:06:01
>Number:         31170
>Category:       pkg
>Synopsis:       firefox package dumps core on first firefox-bin execution
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 06 15:06:00 +0000 2005
>Originator:     Thor Lancelot Simon
>Release:        NetBSD 2.1_RC3
	The NetBSD Foundation
System: NetBSD enola-gay 2.1_RC3 NetBSD 2.1_RC3 (ENOLA-GAY.MPBIOS) #1: Mon Sep 5 15:43:58 EDT 2005 root@:/usr/src/sys/arch/i386/compile/ENOLA-GAY.MPBIOS i386
Architecture: i386
Machine: i386
	Building the "firefox" package from a freshly checked out pkgsrc
	tree on a 2.1-branch system checked out today, *having removed
	all existing packages prior to the firefox build*, produces an
	executable that dumps core immediately when the package build
	tries to run firefox-bin -register.
	Remove your old packages.  Try to rebuild firefox-linux and discover
	that it no longer works (see previous PR).  Punt on Java and Flash
	support, groan in frustration, and try to build a native firefox.
	Discover that *it* doesn't work.  Get used to living with no web
	browser for a while and wonder how many other NetBSD users are
	losing in the same way.

It dies like this (this is just the end of the build log output) at the
end of the "install" target:

 BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 555     
         BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 555  
                 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 
555                      BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wh
eel\ -m\ 644                     BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\
 -g\ wheel\ -m\ 444                      BSD_INSTALL=/usr/bin/install           
                 BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ whe
el\ -m\ 755      BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ whee
l\ -m\ 755               BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\
 wheel\ -m\ 755          BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g
\ wheel\ -m\ 755                 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ r
oot\ -g\ wheel\ -m\ 755          BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ 
root\ -g\ wheel\ -m\ 555                         BSD_INSTALL_GAME_DATA=/usr/bin/
install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 WRAPPER_DEBUG="yes" /bin/sh "../../www
[1]   Segmentation fault (core dumped) ${SETENV} LD_LIB...
[1]   Segmentation fault (core dumped) ${SETENV} LD_LIB...
cd /usr/pkg/lib/firefox &&  /usr/bin/env LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. H
OME=/usr/pkgsrc/www/firefox/work.i386/mozilla  ./firefox-bin -register
[1]   Segmentation fault (core dumped) /usr/bin/env LD_...
*** Error code 139

make: stopped in /usr/pkgsrc/www/firefox
*** Error code 1

make: stopped in /usr/pkgsrc/www/firefox
*** Error code 1

make: stopped in /usr/pkgsrc/www/firefox
*** Error code 1

make: stopped in /usr/pkgsrc/www/firefox

Here is my mk.conf:

#HOST_CFLAGS=-mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -pipe -O2
#HOST_CXXFLAGS=-mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -pipe -O2
#COPTS=-Os -mcpu=i486 -march=i486 -momit-leaf-frame-pointer -pipe
#CXXFLAGS+=-O2 -mcpu=athlon-xp -march=athlon-xp -momit-leaf-frame-pointer -fno-strict-a
liasing -pipe
CFLAGS+=-O2 -mcpu=athlon-xp -march=athlon-xp -momit-leaf-frame-pointer
COPTS=-O2 -mcpu=athlon-xp -march=athlon-xp -momit-leaf-frame-pointer

	Beats me.