Subject: pkg/33181: www/firefox fails to build on -current/amd64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <martijnb@atlas.ipv6.stack.nl>
List: pkgsrc-bugs
Date: 04/02/2006 12:45:01
>Number:         33181
>Category:       pkg
>Synopsis:       www/firefox fails to build on -current/amd64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 02 12:45:01 +0000 2006
>Originator:     martijnb@atlas.ipv6.stack.nl
>Release:        NetBSD 3.99.17
>Organization:
	
>Environment:
	
	
System: NetBSD atlas.ipv6.stack.nl 3.99.17 NetBSD 3.99.17 (ATLAS) #2: Tue Mar 21 19:50:15 CET 2006 martijnb@atlas.ipv6.stack.nl:/usr/obj/sys/arch/amd64/compile/ATLAS amd64
Architecture: x86_64
Machine: amd64
>Description:
        Firefox fails to build, failing with a linker error. See 

http://bigbird.dohd.org:3021/NetBSD/pkgstat/20060325.0310/www/firefox/.broken.html

	for a full build log. 
>How-To-Repeat:
	Try and build firefox on a recent current
>Fix:
	Unknown. This bears a more than striking resemblance to pkg/32987, 
where glib2 failed with a similiar error. In that case, a mis-matched 
scope definition was to blame - amd64's linker is more strict in this than
others.

       I gave it a shot to locate the problem myself, but failed. The offending
call is made from inline assembly to an 'extern "C"' function defined just
above; commenting the call makes the linker happy (but is obviously not the
solution). My knowledge about gcc and C/inline assembly integration is just
not good enough to solve the problem :(

>Unformatted: