Subject: converters/libiconv on solaris with Sun Studio 11.
To: None <tech-pkg@netbsd.org>
From: Todd Whitesel <toddpw@toddpw.org>
List: tech-pkg
Date: 08/07/2006 14:17:45
I'm trying to build solaris pkgsrc on a solaris 8 machine with Sun Studio 11.
Out of respect (hah) for the IT dept I am trying to keep all of the footprint
of the build and install on my local partition since that is where all the
free disk space is. (See mk.conf included further down)

I already kludged to get around the cpp wrapper problem, but now I get the
following make entrails. The libcharset.so.1 it's looking for doesn't appear
anywhere in the work directory. This is not a high priority project (I'm trying
to build new gaim and firefox for solaris users here) but if anyone can give me
a head start on debugging it that would be much appreciated.

cc -shared  .libs/localcharset.o .libs/relocatable.o  -L/alabama1/toddpw/netbsd-20060804/pkgsrc/converters/libiconv/work/.buildlink/lib -lc  -Wl,-R/alabama1/toddpw/pkg/lib -Wl,-soname -Wl,libcharset.so.1 -o .libs/libcharset.so.1.0.0
ld: fatal: file libcharset.so.1: open failed: No such file or directory
*** Error code 1

Stop.
bmake: stopped in /alabama1/toddpw/netbsd-20060804/pkgsrc/converters/libiconv/work/libiconv-1.10/libcharset/lib
*** Error code 1

Stop.
bmake: stopped in /alabama1/toddpw/netbsd-20060804/pkgsrc/converters/libiconv/work/libiconv-1.10/libcharset
*** Error code 1

Stop.
bmake: stopped in /alabama1/toddpw/netbsd-20060804/pkgsrc/converters/libiconv/work/libiconv-1.10
*** Error code 1

Stop.
bmake: stopped in /alabama1/toddpw/netbsd-20060804/pkgsrc/converters/libiconv
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /alabama1/toddpw/netbsd-20060804/pkgsrc/converters/libiconv/work/.work.log
===> 
*** Error code 1

Stop.
bmake: stopped in /alabama1/toddpw/netbsd-20060804/pkgsrc/converters/libiconv


My mk.conf:
# Fri Aug  4 21:02:05 PDT 2006

.ifdef BSD_PKG_MK       # begin pkgsrc settings

ALAROOT=/alabama1/toddpw

VARBASE=$(ALAROOT)/var
PKG_DBDIR=$(VARBASE)/db/pkg
LOCALBASE=$(ALAROOT)/pkg
FETCH_CMD=$(LOCALBASE)/bin/ftp
PAX=$(LOCALBASE)/bin/pax
SED=$(LOCALBASE)/bin/nbsed

PKGSRC_COMPILER = sunpro
CC=     cc
CXX=    CC
CPP=    /usr/ccs/lib/cpp

CONFIG_SHELL=   /bin/ksh
WRAPPER_SHELL=  /bin/ksh

.endif                  # end pkgsrc settings

-- 
Todd Whitesel
toddpw @ toddpw.org