Subject: Re: need a C++ compiler? (was: CVS commit: pkgsrc)
To: Johnny C. Lam <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 02/02/2004 13:24:41
And the third related problem ... my cc is "not_found".

$ bmake show-var VARNAME=_GCC_SUBPREFIX
$ bmake show-var VARNAME=_GCC_PREFIX

I don't have _GCC_PKGBASE (gcc) installed. I do have gcc3-c installed.

My CC is /usr/bin/cc which is a symlink[1].

$ ls -ld /usr/bin/cc
lrwxrwxrwx    1 root     root           16 Sep 22 13:50 /usr/bin/cc ->
$ ls -ld /usr/gcc3/bin/cc
-rwxr-xr-x    4 root     root       319387 Dec 19 13:34 /usr/gcc3/bin/cc

Another problem is format of type's output:

$ echo $SHELL
$ /bin/sh --version
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
$ type cc
cc is hashed (/usr/bin/cc)
$ bash
$ type cc
cc is /usr/bin/cc
$ exit
$ type cc
cc is hashed (/usr/bin/cc)

So matching may need to take in consideration of the parantheses "()".

I think this causes my BUILDLINK_PREFIX.${_pkg_} to be set to "not_found"

I am trying to track this down, but with new mk/compiler stuff, I am not
able to build.

   Jeremy C. Reed

[1] It would be nice to have a package make the ${LOCALBASE}/bin/cc
symlink for me automatically. (Similar to recent discussion for python.)