Subject: Re: failed bootstrap on os x
To: None <pkgsrc-users@netbsd.org>
From: matthew sporleder <msporleder@gmail.com>
List: pkgsrc-users
Date: 08/22/2007 15:46:51
On 8/22/07, matthew sporleder <msporleder@gmail.com> wrote:
> On 8/22/07, matthew sporleder <msporleder@gmail.com> wrote:
> > I'm getting this error from bootstrap --prefix=/usr/pkg -unprivileged
> > (adding --full also fails)
> >
> > It looks like pkgdb is including an incorrect db.h or something like
> > that. Any hints?
> >
> > pkgdb.c: In function 'pkgdb_open':
> > pkgdb.c:105: error: 'BTREEINFO' undeclared (first use in this function)
> > pkgdb.c:105: error: (Each undeclared identifier is reported only once
> > pkgdb.c:105: error: for each function it appears in.)
> > pkgdb.c:105: error: parse error before 'info'
> > pkgdb.c:109: error: 'info' undeclared (first use in this function)
> > pkgdb.c: In function 'pkgdb_close':
> > pkgdb.c:130: error: too few arguments to function 'pkgdbp->close'
> > pkgdb.c: In function 'pkgdb_store':
> > pkgdb.c:158: error: 'R_NOOVERWRITE' undeclared (first use in this function)
> > pkgdb.c:158: warning: passing argument 2 of 'pkgdbp->put' from
> > incompatible pointer type
> > pkgdb.c:158: error: too few arguments to function 'pkgdbp->put'
> > pkgdb.c: In function 'pkgdb_retrieve':
> > pkgdb.c:182: warning: passing argument 2 of 'pkgdbp->get' from
> > incompatible pointer type
> > pkgdb.c:182: error: too few arguments to function 'pkgdbp->get'
> > pkgdb.c: In function 'pkgdb_dump':
> > pkgdb.c:200: error: 'R_FIRST' undeclared (first use in this function)
> > pkgdb.c:200: error: 'struct __db' has no member named 'seq'
> > pkgdb.c:200: error: 'R_NEXT' undeclared (first use in this function)
> > pkgdb.c: In function 'pkgdb_remove':
> > pkgdb.c:231: warning: passing argument 2 of 'pkgdbp->del' from
> > incompatible pointer type
> > pkgdb.c:231: error: too few arguments to function 'pkgdbp->del'
> > pkgdb.c: In function 'pkgdb_remove_pkg':
> > pkgdb.c:255: error: 'R_FIRST' undeclared (first use in this function)
> > pkgdb.c:255: error: 'struct __db' has no member named 'seq'
> > pkgdb.c:255: error: 'R_NEXT' undeclared (first use in this function)
> > pkgdb.c:260: warning: passing argument 2 of 'pkgdbp->del' from
> > incompatible pointer type
> > pkgdb.c:260: error: too few arguments to function 'pkgdbp->del'
> > *** Error code 1
> >
> > Stop.
> > bmake: stopped in
> > /Users/msporleder/Documents/netbsd/pkgsrc/bootstrap/work/pkg_install/lib
> > *** Error code 1
> >
> > Stop.
> > bmake: stopped in
> > /Users/msporleder/Documents/netbsd/pkgsrc/bootstrap/work/pkg_install
> > ===> exited with status 1
> > aborted.
> >
> >
> >
> > (please include me on replies)
>
>
> The command that fails:
> gcc -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/usr/pkg/var/db/pkg\"
> -DTAR_CMD=\"/bin/tar\" -DFTP_CMD=\"/bin/ftp\" -I../libnbcompat
> -I../../libnbcompat -I. -I. -g -O2 -c pkgdb.c
>
> This command works:
> gcc -DHAVE_DB_H -I../libnbcompat -I../../libnbcompat -c pkgdb.c
>
It looks like I'm getting hit by:
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=26143