Subject: pkg/23746: pkg_filecheck dies on Solaris
To: None <gnats-bugs@gnats.netbsd.org>
From: None <charlie@rubberduck.com>
List: netbsd-bugs
Date: 12/14/2003 21:42:15
>Number: 23746
>Category: pkg
>Synopsis: pkg_filecheck dies on Solaris
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 14 10:43:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: SunOS 5.9
>Organization:
>Environment:
System: SunOS sparky 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-2
Architecture: sun4
>Description:
it breaks badly - even if you enter into it's bowels, it get's messy.
>How-To-Repeat:
9:30 sparky:pkgsrc/pkgtools/pkg_filecheck% sudo bmake
===> Checking for vulnerabilities in pkg_filecheck-0.1
work -> /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work
===> Extracting for pkg_filecheck-0.1
===> Required installed package perl>=5.0: perl-5.6.1nb9 found
===> Required installed package gcc3>=3.3: gcc3-3.3nb5 found
===> Patching for pkg_filecheck-0.1
===> Overriding tools for pkg_filecheck-0.1
===> Building for pkg_filecheck-0.1
/usr/xpg4/bin/sed -e 's|@PREFIX@|/usr/pkg|g' -e 's|@PKG_SYSCONFDIR@|/usr/pkg/etc|g' -e 's|@X11PREFIX@|/usr/openwin|g' < /usr/src/pkgsrc/pkgtools/pkg_filecheck/files/builddb.pl > /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work/builddb.pl
/usr/xpg4/bin/sed -e 's|@PREFIX@|/usr/pkg|g' -e 's|@PKG_SYSCONFDIR@|/usr/pkg/etc|g' -e 's|@X11PREFIX@|/usr/openwin|g' < /usr/src/pkgsrc/pkgtools/pkg_filecheck/files/builddb.1 > /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work/builddb.1
/usr/xpg4/bin/sed -e 's|@PREFIX@|/usr/pkg|g' -e 's|@PKG_SYSCONFDIR@|/usr/pkg/etc|g' -e 's|@X11PREFIX@|/usr/openwin|g' < /usr/src/pkgsrc/pkgtools/pkg_filecheck/files/pkg_filecheck.conf > /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work/pkg_filecheck.conf
/usr/xpg4/bin/sed -e 's|@PREFIX@|/usr/pkg|g' -e 's|@PKG_SYSCONFDIR@|/usr/pkg/etc|g' -e 's|@X11PREFIX@|/usr/openwin|g' < /usr/src/pkgsrc/pkgtools/pkg_filecheck/files/pkg_filecheck.conf.5 > /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work/pkg_filecheck.conf.5
/usr/xpg4/bin/sed -e 's|@PREFIX@|/usr/pkg|g' -e 's|@PKG_SYSCONFDIR@|/usr/pkg/etc|g' -e 's|@X11PREFIX@|/usr/openwin|g' < /usr/src/pkgsrc/pkgtools/pkg_filecheck/files/pkg_filecheck.c > /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work/pkg_filecheck.c
/usr/xpg4/bin/sed -e 's|@PREFIX@|/usr/pkg|g' -e 's|@PKG_SYSCONFDIR@|/usr/pkg/etc|g' -e 's|@X11PREFIX@|/usr/openwin|g' < /usr/src/pkgsrc/pkgtools/pkg_filecheck/files/pkg_filecheck.1 > /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work/pkg_filecheck.1
cd /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work && bmake pkg_filecheck
gcc -O -o pkg_filecheck pkg_filecheck.c
bmake: Exec of `gcc' failed (No such file or directory)
*** Error code 1
Stop.
bmake: stopped in /usr/obj.pkgsrc/pkgtools/pkg_filecheck/work
*** Error code 1
Stop.
bmake: stopped in /usr/src/pkgsrc/pkgtools/pkg_filecheck
*** Error code 1
Stop.
bmake: stopped in /usr/src/pkgsrc/pkgtools/pkg_filecheck
zsh: 21114 exit 1 sudo bmake
9:31 sparky:pkgsrc/pkgtools/pkg_filecheck% cd work
9:34 sparky:pkgtools/pkg_filecheck/work% /usr/pkg/gcc-3.3/bin/gcc -I/usr/pkg/include -I/usr/src/pkgsrc/pkgtools/libnbcompat/files/nbcompat -I/usr/pkg/include/db4 -L/usr/pkg/lib -ldb -o pkg_filecheck pkg_filecheck.c
pkg_filecheck.c: In function `main':
pkg_filecheck.c:95: error: too few arguments to function
pkg_filecheck.c: In function `check':
pkg_filecheck.c:127: warning: passing arg 2 of pointer to function from incompatible pointer type
pkg_filecheck.c:127: error: too few arguments to function
pkg_filecheck.c: In function `read_conf':
pkg_filecheck.c:237: warning: assignment makes pointer from integer without a cast
zsh: 21442 exit 1 /usr/pkg/gcc-3.3/bin/gcc -I/usr/pkg/include -I/usr/pkg/include/db4 -ldb -o
9:38 sparky:pkgtools/pkg_filecheck/work%
>Fix:
please :)
>Release-Note:
>Audit-Trail:
>Unformatted: