Subject: pkg/32044: rzip fix for Solaris 10
To: None <,,>
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
Ivy Ministries
Architecture:	?
Machine: ?

From: "Courtney R. Spencer" <>

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


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

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

That allowed me to build rzip.


Courtney R. Spencer ||| System Administrator |||  Earthlink Inc.
PGP ID 1024D/61940182 ||