Subject: Re: cc problem with new buildlink framework
To: Georg Schwarz <email@example.com>
From: Johnny C. Lam <jlam@NetBSD.org>
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 ->
> When compiling (as an example archivers/lha) one gets:
> ===> Building for lha-114.9nb1
> make all in src...
> cc -O2 -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR
> -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DSYSTIME_HAS_NO_TM -DMKTIME
> -DUSESTRCASECMP -DSYSV_SYSTEM_DIR -I/usr/local/pkg/include -c lharc.c
> cc ERROR: cc is not installed in
> *** 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 <jlam@NetBSD.org>