Re: cap_mkdb: illegal option -i. upgrade 5.4->6.1



On Tue, Sep 12, 2006 at 04:52:32PM +0200, rvenne@xxxxxxxxxxxxxxxxx wrote:
Hi list

I'm upgrading 5.4 p18 to 6.1 p6.

here's my tag: RELENG_6_1

I did:
make update
make cleanworld
make buildworld

which gives following issue:

cap_mkdb: illegal option -i

It seems a known problem on netbsd during buildworld compilation. here's
the solution I'm tring:

cd /usr/src/usr.bin/cap_mkdb
make clean
make
make install

and I'm building world again.

is that a known problem on freebsd?

This shouldn't happen. The buildworld target detects the current
version of your system, and bootstraps cap_mkdb if necessary:

: .if ${BOOTSTRAPPING} < 600015
: _cap_mkdb= usr.bin/cap_mkdb
: .endif

BOOTSTRAPPING is defined as follows:

: .if !defined(OSRELDATE)
: .if exists(/usr/include/osreldate.h)
: OSRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
: /usr/include/osreldate.h
: .else
: OSRELDATE= 0
: .endif

That is, it's the value of __FreeBSD_version as defined in
/usr/include/osreldate.h. If your /usr/include/osreldate.h
is lying about the current version, e.g. if you accidentally
installed the new headers, then you can force it to zero,
such as:

make buildworld OSRELDATE=0


Cheers,
--
Ruslan Ermilov
ru@xxxxxxxxxxx
FreeBSD committer

Attachment: pgpq9EkNnIQai.pgp
Description: PGP signature



Relevant Pages

  • Re: 9.0 buildworld problems
    ... I used portsnap fetch extract to install the ports tree, ... ran make -j16 buildworld from the /usr/src directory. ...
    (freebsd-questions)
  • RE: Buildworld problem?
    ... > Subject: Buildworld problem? ... I rebooted after install kernel, ... To unsubscribe, ...
    (freebsd-questions)
  • Re: how to compile 7.0 kernel?
    ... : undefined reference to `dl_iconv_close' ... btw, the error I got from build kernl, not from buildworld. ... The solution would probably be to do a virgin install and then immediately ... csup the source code to RELENG_7. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Patch/Announcement for DHCPD remote root hole?
    ... upgrade your system you need to CVSup, ... shown the grasshopper sysadmins in my team at work how to do this ... IMO buildworld is simpler, easier, and takes less ... sysadmin how to install Tru64-UNIX. ...
    (FreeBSD-Security)
  • 9.0 buildworld problems
    ... I used portsnap fetch extract to install the ports tree, copied the /etc/make.conf and /etc/src.conf from my existing 8.2 system onto the new test system. ... Ran cvsup to download source tree, ran make -j16 buildworld from the /usr/src directory. ... Interestingly enough at the same time I was building this system I was also testing an upgrade from source option on different virtual machine that was made from a restore of live system, after downloading the FreeBSD9.0 source tree and running buildworld from usr/src against copies of the same make.conf and src.conf file above, it built fine and the install process ran successfully. ...
    (freebsd-questions)