Subject: pkg/11893: libiconv-1.5 pkg can't be built as non-root
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lukem@wasabisystems.com>
List: netbsd-bugs
Date: 01/04/2001 19:19:17
>Number: 11893
>Category: pkg
>Synopsis: can't build converters/libiconv as non-root
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 04 19:19:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Luke Mewburn
>Release: 1.5
>Organization:
Luke Mewburn <lukem@wasabisystems.com> http://www.wasabisystems.com
Luke Mewburn <lukem@netbsd.org> http://www.netbsd.org
Wasabi Systems - providing NetBSD sales, support and service.
>Environment:
System: NetBSD argo.akimbo.com.au 1.5_BETA2 NetBSD 1.5_BETA2 (ARGO) #0: Thu Nov 16 19:55:34 EST 2000 lukem@argo.akimbo.com.au:/z/src/netbsd-1-5/src/sys/arch/i386/compile/ARGO i386
>Description:
i ran into the an error message from install whilst trying to
build libiconv as myself (i.e, a non-root user):
===> Building for libiconv-1.5
builddir="`pwd`"; cd libcharset && gmake -r all && gmake -r install-lib libdir="$builddir/lib" includedir="$builddir/lib"
gmake[1]: Entering directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset'
if [ ! -d include ] ; then mkdir include ; fi
cp ./include/libcharset.h.in include/libcharset.h
cd lib && gmake -r all
gmake[2]: Entering directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset/lib'
/bin/sh ../libtool --mode=compile cc -O2 -I. -I. -I.. -I./.. -DHAVE_CONFIG_H -DLIBDIR=\"/usr/pkg/lib\" -c ./localcharset.c
mkdir .libs
cc -O2 -I. -I. -I.. -I./.. -DHAVE_CONFIG_H -DLIBDIR=\"/usr/pkg/lib\" -c ./localcharset.c -fPIC -DPIC -o .libs/localcharset.lo
cc -O2 -I. -I. -I.. -I./.. -DHAVE_CONFIG_H -DLIBDIR=\"/usr/pkg/lib\" -c ./localcharset.c -o localcharset.o >/dev/null 2>&1
mv -f .libs/localcharset.lo localcharset.lo
/bin/sh ../libtool --mode=link cc -o libcharset.la -rpath /usr/pkg/lib -version-info 1:0:0 localcharset.lo
rm -fr .libs/libcharset.la .libs/libcharset.* .libs/libcharset.*
cc -shared localcharset.lo -Wl,-soname -Wl,libcharset.so.1 -o .libs/libcharset.so.1.0
(cd .libs && rm -f libcharset.so.1 && ln -s libcharset.so.1.0 libcharset.so.1)
(cd .libs && rm -f libcharset.so && ln -s libcharset.so.1.0 libcharset.so)
(cd .libs && rm -f libcharset.so && ln -s libcharset.so.1.0 libcharset.so)
ar cru .libs/libcharset.a localcharset.o
ranlib .libs/libcharset.a
creating libcharset.la
(cd .libs && rm -f libcharset.la && ln -s ../libcharset.la libcharset.la)
/bin/sh ./config.charset 'i386--netbsd' > t-charset.alias
mv t-charset.alias charset.alias
sed -e '/^#/d' -e 's/@''PACKAGE''@/libcharset/g' ref-add.sin > t-ref-add.sed
mv t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@/libcharset/g' ref-del.sin > t-ref-del.sed
mv t-ref-del.sed ref-del.sed
gmake[2]: Leaving directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset/lib'
gmake[1]: Leaving directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset'
gmake[1]: Entering directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset'
if [ ! -d include ] ; then mkdir include ; fi
cp ./include/libcharset.h.in include/libcharset.h
cd lib && gmake -r all
gmake[2]: Entering directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset/lib'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset/lib'
cd lib && gmake -r install-lib libdir='/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/lib' includedir='/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/lib'
gmake[2]: Entering directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset/lib'
/bin/sh ./../autoconf/mkinstalldirs /z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/lib
/bin/sh ../libtool --mode=install install -c -o root -g wheel -m 444 libcharset.la /z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/lib/libcharset.la
install -c -o root -g wheel -m 444 .libs/libcharset.so.1.0 /z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/lib/libcharset.so.1.0
install: /z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/lib/libcharset.so.1.0: chown/chgrp: Operation not permitted
gmake[2]: *** [install-lib] Error 1
gmake[2]: Leaving directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset/lib'
gmake[1]: *** [install-lib] Error 2
gmake[1]: Leaving directory `/z/src/current/pkgsrc/converters/libiconv/work.i386/libiconv-1.5/libcharset'
gmake: *** [all] Error 2
*** Error code 2
Stop.
>How-To-Repeat:
see above.
>Fix:
nfi
>Release-Note:
>Audit-Trail:
>Unformatted: