Subject: www/firefox2 build failure on SPARC Solaris 10
To: None <>
From: Raymond Meyer <>
List: pkgsrc-users
Date: 11/03/2006 13:27:02
CC -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/freetype2  -I/usr/openwin/include -xO3 -xtarget=native -xbuiltin -xdepend=yes -xlibmil -xlibmopt -features=%all -I/opt/pkg/include -I/usr/include -I/opt/pkg/include/freetype2 -xbuiltin=%all -features=tmplife -pthread -mt  -DNDEBUG -DTRIMMED -xO3 -xtarget=native -xbuiltin -xdepend=yes -xlibmil -xlibmopt  -G -z,muldefs -h -o  adler32.o compress.o crc32.o deflate.o gzio.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o    -M /usr/lib/ld/map.noexstk -xildoff -zlazyload -zcombreloc -Wl,-R/opt/pkg/lib/firefox2 -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib    -lsocket -ldl -lm    
CC: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=v8plusa which generates code that does not run on pre UltraSPARC processors
ld: fatal: option -z has illegal argument `,muldefs'
ld: fatal: Flags processing errors
make[3]: *** [] Error 1
make[3]: Leaving directory `/opt/pkg.obj/www/firefox2/work.ultra10/mozilla/modules/zlib/src'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/opt/pkg.obj/www/firefox2/work.ultra10/mozilla/modules/zlib'
make[1]: *** [tier_1] Error 2
make[1]: Leaving directory `/opt/pkg.obj/www/firefox2/work.ultra10/mozilla'
gmake: *** [default] Error 2
*** Error code 2

bmake: stopped in /opt/pkgsrc/www/firefox2
*** Error code 1

As you can see above the compiler tries to pass the following argument to the
linker '-z,muldefs' which is illegal because of the comma, it should be

Below are the files I grepped for 'muldefs' string

# pwd

       MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@'
       DSO_LDOPTS='-G -Qoption ld -z,muldefs'
^^ ./
       MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@'
       DSO_LDOPTS='-G -z,muldefs'
^^ ./
       MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@'
       DSO_LDOPTS='-G -z,muldefs'
^^ ./configure
MKCSHLIB                = $(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@
DSO_LDOPTS              = -G -z,muldefs
^^ ./config/
s%@MKCSHLIB@%$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@% g
s%@DSO_LDOPTS@%-G -z,muldefs%g
^^ ./config.status