Subject: pkg/36307: sysutils/xfce4-xarchiver fails to build on Sparc Solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 05/11/2007 14:00:01
>Number:         36307
>Category:       pkg
>Synopsis:       sysutils/xfce4-xarchiver fails to build on Sparc Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 11 14:00:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic_118833-36 sun4u sparc SUNW,Ultra-5_10
>Description:
Building sysutils/xfce4-xarchiver fails on Solaris with the following error message:

Undefined                       first referenced
 symbol                             in file
mkdtemp                             xarchiver-extract_dialog.o
ld: fatal: Symbol referencing errors. No output written to xarchiver
collect2: ld returned 1 exit status

This is because xarchiver-0.4.6/src/string_utils.c declares mkdtemp as 'static', so the function is not visible outside that file. Solaris does not have a native implementation of mkdtemp.
>How-To-Repeat:

>Fix:
To fix the error, simply remove the 'static' keyword.