Subject: need a C++ compiler? (was: CVS commit: pkgsrc)
To: Johnny C. Lam <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 02/02/2004 11:23:36
On pkgsrc-changes on Mon, 2 Feb 2004, Johnny C. Lam wrote:

> Log Message:
> These packages need a C++ compiler.

At this time, all packages using buildlinking need a C++ compiler.
Because the linking has CXX. (Unless something changed recently.) Can we
make buildlinking work if a C++ compiler is not installed?

I can not test now because the new mk/compiler/ fails for me:

sh: line 1: type: -pipe: not found
sh: -c: line 2: syntax error: unexpected end of file
line 185: warning: "if /usr/sbin/pkg_info -K /var/db/pkg -qe gcc; then
/usr/sbin/pkg_info -K /var/db/pkg -f gcc |
/usr/bin/grep "File:.*bin/gcc" |                                /bin/sed
-e "s/.*File: *//;s/bin\/gcc.*//;q";           else
gccpath="`type cc -pipe | /usr/bin/awk '{ print $NF }'`";        case
$gccpath in                                        /usr/*)
/bin/echo "`/usr/bin/basename $gccpath`/";               ;;
*)                                                       /bin/echo
"not_found/"; ;;                                              esac"
returned non-zero status
line 186: Unassociated shell command "fi"
line 1: Could not find ../../lang/gcc/
bmake: Fatal errors encountered -- cannot continue

That was under databases/openldap on a Linux system. I didn't notice on
NetBSD 1.6.2 though.

It is doing:

${TYPE} ${CC}

My CC is "cc -pipe". I am trying to figure out where that -pipe was added.
I never noticed the -pipe by default before.

$ type cc -pipe
cc is /usr/bin/cc
bash: type: -pipe: not found

   Jeremy C. Reed