Subject: pkg/32044: rzip fix for Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <carton@Ivy.NET>
List: pkgsrc-bugs
Date: 11/10/2005 19:31:00
>Number:         32044
>Category:       pkg
>Synopsis:       rzip fix for Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 10 19:31:00 +0000 2005
>Originator:     Miles Nordin
>Release:        Solaris 10
>Organization:
Ivy Ministries
>Environment:
?
Architecture:	?
Machine: ?
>Description:

From: "Courtney R. Spencer" <cspencer@corp.earthlink.net>

For Solaris 10, and older versions, there is no
asprintf and the build fails.

gcc -O -I/usr/include -o rzip rzip.o runzip.o main.o stream.o util.o crc32.o -lbz2
Undefined                       first referenced
 symbol                             in file
asprintf                            main.o
ld: fatal: Symbol referencing errors. No output written to rzip
collect2: ld returned 1 exit status


>Fix:


I noticed in your pkgsrc Makefile, you include libiberty
for Interix.  This works for SunOS as well:

.if ${OPSYS} == "SunOS"
.  include "../../devel/libiberty/application.mk" # need asprintf(3)
.endif


That allowed me to build rzip.

Thanks

-- 
Courtney R. Spencer ||| System Administrator |||  Earthlink Inc.
PGP ID 1024D/61940182 || http://cspencer.home.mindspring.com/pubkey.gpg