Author: Ted Fines
Date: 20-03-03 20:27
I'm a newbie FreeBSD user, and I've gotten this error on FreeBSD 4.6.2, 4.7 and 5.0. So I figure I must be doing something wrong, but
heck if I know what. This is happening on a 'fresh' install of FreeBSD, from the ISO CD download.
I download a port from www.freshports.org. For example, automake or autoconf. I 'tar -zxf automake.tar.gz' then 'cd automake'. I type
'make' and the program runs perfectly, fetching any dependencies, and making without any errors.
But then I run 'make install' something goes wrong, but only at the very end. The program appears to install OK, because I can use it,
but EVERY 'make install' of EVERY port (I've tried 7) ends with this error:
==> Registering information for <port name here>
pkg_create: only one package name allowed ('Makefile' extraneous)
usage: pkg_create (blah blah blah)
*** Error code 1
So then I try deinstalling the program, with 'make deinstall' but I get this error:
===> Deinstalling for <port name here>
pkg_delete: package '<package name here> doesn't have a prefix
*** Error code 1
On a Google search, I found this info, which might be related. It looks like it is, to me.
http://mail-index.netbsd.org/netbsd-bugs/2001/04/03/0006.html. In this posting, the fix is stated as, "Edit Makefile to remove COMMENT
line, and make a normal pkg/COMMENT file." I've tried getting rid of the COMMENT= line in the Makefile, but that just generates a
different error. And if I knew how to "make a normal pkg/COMMENT file" as it suggests, I would.
But I just can't believe that there's been a problem with every package for BSD since version 4.6.2, and nobody's bothered to fix it. Or
that people have to hand edit the Makefile and mess with the COMMENT= line for every install. So I must be doing something wrong. But
what? If I just use the distribution ports on the CDROM, I get no errorss with 'make' or 'make install'.
PS I posted this same message to nntp://comp.unix.bsd.freebsd.misc and received this response:
"Im currently testing if i can use freebsd as my server and 2 days ago i
updated my /usr/ports with the one on the site and i got the same errors,
they dont seem to be fatal but they are annoying"