Subject: Re: PKGSRC on Solaris
To: NetBSD/pkgsrc-users <pkgsrc-users@NetBSD.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: pkgsrc-users
Date: 01/12/2007 21:43:57
Am 12.01.2007 um 21:37 schrieb Omar Lopez Limonta:
> Hi , i'm trying to compile libiconv (and it is basic to run pkgsrc) on
> pkgsrc over solaris 10, and it return this error:
>
> # bmake
> builddir="`pwd`"; cd libcharset && bmake all && -rw
> lib/libcharset.la lib/.libs "$builddir/" && -rw include/*.h
> "$builddir/"
> cd lib && bmake all
> /bin/sh ../libtool --mode=link gcc -Wl,-R/usr/pkg/lib -o libcharset.la
> -rpath /usr/pkg/lib -version-info 1:0:0 -no-undefined localcharset.lo
> relocatable.lo
> rm -fr .libs/libcharset.so .libs/libcharset.so.1 .libs/
> libcharset.so.1.0.0
> gcc -shared -Wl,-h -Wl,libcharset.so.1 -o .libs/libcharset.so.1.0.0
> .libs/localcharset.o .libs/relocatable.o
> -L/opt/pkgsrc/converters/libiconv/work/.buildlink/lib -lc
> -Wl,-R/usr/pkg/lib
> (cd .libs && rm -f libcharset.so.1 && ln -s libcharset.so.1.0.0
> libcharset.so.1)
> (cd .libs && rm -f libcharset.so && ln -s libcharset.so.1.0.0
> libcharset.so)
> false cru .libs/libcharset.a localcharset.o relocatable.o
configure failed to find ar.
I'm using the following lines in my mk.conf:
TOOLS_PLATFORM.ar= /usr/ccs/bin/ar
TOOLS_PLATFORM.nm= /usr/ccs/bin/nm
TOOLS_PLATFORM.ranlib= /usr/ccs/bin/ranlib
USE_TOOLS+= ar nm ranlib
alternatively you could include /usr/ccs/bin in your shell path (but
that would be too easy, wouldn't it? :-))
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 151 11559652