Subject: Re: cc problem with new buildlink framework
To: Georg Schwarz <>
From: Johnny C. Lam <>
List: tech-pkg
Date: 02/09/2004 05:53:07
On Sun, Feb 08, 2004 at 05:59:14PM +0100, Georg Schwarz wrote:
> The compiler handling with the new buildlink framework causes some
> problems on IRIX 5.3, where /usr/bin/cc is a symbolic link:
> lrwxr-xr-x    1 root     sys           17 Dec 29 15:32 /usr/bin/cc ->
> ../lib/driverwrap
> When compiling (as an example archivers/lha) one gets:
> ===> Building for lha-114.9nb1
> make all in src...
> -DUSESTRCASECMP -DSYSV_SYSTEM_DIR   -I/usr/local/pkg/include -c lharc.c
> cc ERROR:  cc is not installed in
> /usr/people/schwarz/pkgsrc/archivers/lha/work/.mipspro/bin/../lib/cc
> *** Error code 1
> When explicitely setting on the command line CC=/usr/lib/cc things work
> (it does not work when setting CC in /etc/mk.conf though. Why?). I
> wonder why the buildlink framework cannot handle a cc which is a
> symbolic link.

It's a fault of the compiler for trying to be too smart.  If you update
pkgsrc, I've made some changes that might fix this problem.  Please try
and let me know the result.


	-- Johnny Lam <>