Subject: problem with pkg_chk -i
To: None <netbsd-users@netbsd.org>
From: Erik Osheim <erik@plastic-idolatry.com>
List: netbsd-users
Date: 09/25/2003 12:15:49
After a recent CVS update, I've been experiencing a strange problem in
pkgsrc that seems to center around pkgtools/pkg_chk,audio/libogg,and
mk/compiler.mk.

I'm running NetBSD-1.6 on an i386, and keeping pkgsrc up-to-date through
CVS. Here are the symptoms:

When I run pkg_chk -i, I get an error while checking libogg. The first
line of the error is here (I'll include the full error at the end of the
email):

-q: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 61: warning:
Couldn't read shell's output for "if cc -v 2>&1 |  -q 'gcc version'; then
echo `cc -v 2>&1 |  'gcc version'`;  fi"

This seems to be a typo in compiler.mk, but I'm not sure when this was
introduced, or if anyone else has noticed it. I've deleted the compiler.mk
file and updated from CVS to restore it, with no effect. I have also
updated pkgchk using 'make update' which hasn't fixed the problem.

I get similar errors if I try to do 'make update' or 'make deinstall' on
libogg. Strangely, I don't seem to have problems with other packages.

I was going to email tech-pkg, but first I want to make sure this is
actually a problem with pkgsrc (i.e. other people experience it).

So please, let me know if anyone experiences similar problems, or not. I
can put files online or provide more information as needed.

-- Erik Osheim

Full error text for 'pkgchk -i' follows:

cage,11:55am# pkg_chk -i
snort-2.0.2: version mismatch - snort-2.0.1
-q: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 61: warning:
Couldn't read shell's output for "if cc -v 2>&1 |  -q 'gcc version'; then
echo `cc -v 2>&1 |  'gcc version'`;  fi"
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 105: Malformed
conditional (defined(USE_GCC2) && empty(PKGPATH:Mlang/gcc) &&
empty(_PKGSRC_DEPS:Mgcc-2*))
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 105: Missing
dependency operator
not-defined: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 117: warning:
"if [ -x /gcc-2.95.3/bin/gcc ]; then                            dirname
`/gcc-2.95.3/bin/gcc --print-libgcc-file-name`;         else
not-defined;                                   fi" returned non-zero
status
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 142: Malformed
conditional (defined(USE_GCC3) && empty(PKGPATH:Mlang/gcc3) &&
empty(_PKGSRC_DEPS:Mgcc-3*))
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 142: Missing
dependency operator
not-defined: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/../lang/gcc3/buildlink2.mk" line
28: warning: "if [ -x /gcc-3.3/bin/gcc ]; then
dirname `/gcc-3.3/bin/gcc --print-libgcc-file-name`;    else
not-defined;                                   fi" returned non-zero
status
: permission denied
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 195: warning:
"if /gcc-3.3/bin/gcc -dumpversion > /dev/null 2>&1; then
`/gcc-3.3/bin/gcc -dumpversion`;  else   "";  fi" returned non-zero status
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 209: if-less
endif
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 209: Need an
operator
make: Fatal errors encountered -- cannot continue
eval:  make: stopped in /usr/pkgsrc/audio/libogg: not found
cage,[mk],11:58am# cd ../audio/libogg/
cage,[libogg],11:58am# make update
-q: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 61: warning:
Couldn't read shell's output for "if cc -v 2>&1 |  -q 'gcc version'; then
echo `cc -v 2>&1 |  'gcc version'`;  fi"
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 105: Malformed
conditional (defined(USE_GCC2) && empty(PKGPATH:Mlang/gcc) &&
empty(_PKGSRC_DEPS:Mgcc-2*))
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 105: Missing
dependency operator
not-defined: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 117: warning:
"if [ -x /gcc-2.95.3/bin/gcc ]; then                            dirname
`/gcc-2.95.3/bicage,[libogg],11:58am# pkg_chk -i
snort-2.0.2: version mismatch - snort-2.0.1
-q: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 61: warning:
Couldn't read shell's output for "if cc -v 2>&1 |  -q 'gcc version'; then
echo `cc -v 2>&1 |  'gcc version'`;  fi"
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 105: Malformed
conditional (defined(USE_GCC2) && empty(PKGPATH:Mlang/gcc) &&
empty(_PKGSRC_DEPS:Mgcc-2*))
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 105: Missing
dependency operator
not-defined: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 117: warning:
"if [ -x /gcc-2.95.3/bin/gcc ]; then                            dirname
`/gcc-2.95.3/bin/gcc --print-libgcc-file-name`;         else
not-defined;                                   fi" returned non-zero
status
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 142: Malformed
conditional (defined(USE_GCC3) && empty(PKGPATH:Mlang/gcc3) &&
empty(_PKGSRC_DEPS:Mgcc-3*))
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 142: Missing
dependency operator
not-defined: not found
make: "/usr/pkgsrc/audio/libogg/../../mk/../lang/gcc3/buildlink2.mk" line
28: warning: "if [ -x /gcc-3.3/bin/gcc ]; then
dirname `/gcc-3.3/bin/gcc --print-libgcc-file-name`;    else
not-defined;                                   fi" returned non-zero
status
: permission denied
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 195: warning:
"if /gcc-3.3/bin/gcc -dumpversion > /dev/null 2>&1; then
`/gcc-3.3/bin/gcc -dumpversion`;  else   "";  fi" returned non-zero status
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 209: if-less
endif
make: "/usr/pkgsrc/audio/libogg/../../mk/compiler.mk" line 209: Need an
operator
make: Fatal errors encountered -- cannot continue
eval:  make: stopped in /usr/pkgsrc/audio/libogg: not found