Subject: Re: pkgsrc and solaris
To: Christer Solskogen <solskogen@online.no>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 03/28/2004 01:39:08
--w6U88vdWm8UqIXvc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 21, 2004 at 03:22:43AM +0100, Christer Solskogen wrote:

> 2) It seems like i need to set some variables to get things to compile.
> Like PATH and LD_LIBRARY_PATH. Anything else?

you shouldn't need to play with LD_LIBRARY_PATH unless you need to for
other purposes and not for pkgsrc specifically. anything in pkgsrc which
doesn't work unless you tweak LD_LIBRARY_PATH is a bug.

the PATH I use on my Solaris machines is

/usr/pkg/bin /usr/pkg/sbin /usr/bin /usr/sbin /sbin /usr/openwin/bin /usr/c=
cs/bin /usr/ccs/lib

you need /usr/ccs/bin for as, ar, etc. and /usr/ccs/lib for cpp - I
vaguely recall a package blindly calling 'cpp' and expecting to get
the C pre-processor...

> And while we are at it, i cant install vim.=20
> It fails on devel/ncurses.=20
> g++: /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/crti.o: No such
> file or directory
> g++: /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/crtbegin.o: No such
> file or directory
> g++: /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/crtend.o: No such
> file or directory
> g++: /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/crtn.o: No such
> file or directory
> *** Error code 1

they belong to your old installation of sunfreeware gcc, ncurses uses
libtool and you must rebuild libtool-base with your new compiler before
building anything that uses libtool.

libtool hardcodes the path to various files at build time, so if it
appears to work even after you change compilers, it's probably running
the old binaries and using the wrong files, so you run the risk of
building packages which may break later on. rebuilding libtool-base is
therefore the only supported way.

grant.


--w6U88vdWm8UqIXvc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAZZIMluYOb9yiFXoRAkPvAJ9d28I0ycn9GYJ4W+6GAk5DApvfMgCglccT
y651rhlazLA+6Y2sGy5SxeM=
=WSBc
-----END PGP SIGNATURE-----

--w6U88vdWm8UqIXvc--