Subject: pkg/24084: gnome-vfs2 link error:"Undefined Symbol: main"
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <Martin_Ziemer@T-Online.de>
List: netbsd-bugs
Date: 01/13/2004 20:33:32
>Number:         24084
>Category:       pkg
>Synopsis:       gnome-vfs2 link error:"Undefined Symbol: main"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 13 20:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Martin Ziemer
>Release:        none: pkgsrc under Solaris
>Organization:
none
>Environment:
SunOS ettin.lan 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-2
>Description:
Under Solaris the package "gnome-vfs2" breaks, because it passes the Option "-z defs" to the Sun-Linker, which then searches for all Symbols even in Libraries. 
The Problem is similar to  PR 18780 in curl.
>How-To-Repeat:
Try to build the package gnome-vfs2 under Solaris while using the Sun-Linker. (/usr/ccs/bin/ld) 
>Fix:
The fix is to remove the option "-z defs" from the Arguments passed to the Linker. 
For myself I solved the Problem by using find and Perl to replace the String "-z defs" by nothing in all Makefiles. (Dont know, if this breaks with gnu-ld!) 
>Release-Note:
>Audit-Trail:
>Unformatted: