From owner-freebsd-gnome Sat Mar 23 8:32:55 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.datanet.hu (mx1.datanet.hu [194.149.13.160]) by hub.freebsd.org (Postfix) with ESMTP id 7282737B419; Sat, 23 Mar 2002 08:32:36 -0800 (PST) Received: from fonix.adamsfamily.xx (nilus-1641.adsl.datanet.hu [195.56.94.117]) by mx1.datanet.hu (DataNet) with ESMTP id 5CC6EFAE4; Sat, 23 Mar 2002 17:32:32 +0100 (CET) Received: from fonix.adamsfamily.xx (localhost [127.0.0.1]) by fonix.adamsfamily.xx (8.12.2/8.12.2) with ESMTP id g2NGWYmv087542; Sat, 23 Mar 2002 17:32:35 +0100 (CET) (envelope-from sziszi@bsd.hu) Received: (from cc@localhost) by fonix.adamsfamily.xx (8.12.2/8.12.2/Submit) id g2NGWYIj087537; Sat, 23 Mar 2002 17:32:34 +0100 (CET) X-Authentication-Warning: fonix.adamsfamily.xx: cc set sender to sziszi@bsd.hu using -f Date: Sat, 23 Mar 2002 17:32:32 +0100 From: Szilveszter Adam To: Maxim Sobolev Cc: gnome@FreeBSD.ORG, ade@FreeBSD.ORG Subject: Re: libiconv build broken after upgrade for non-root? Message-ID: <20020323163232.GD8995@fonix.adamsfamily.xx> References: <20020318185931.GC918@fonix.adamsfamily.xx> <200203181913.g2IJDSI02606@vega.vega.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <200203181913.g2IJDSI02606@vega.vega.com> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello everybody, Today I had some more time to deal with this and I may have nailed it. Find attached the patch to ports/converters/libiconv/files/patch-ae and the build and install logs. I also tried with a different prefix than the default and it seemed to work. I may be wrong of course, so I would appreciate a review:-) -- Regards: Szilveszter ADAM Szombathely Hungary --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="libiconv.patch" Index: patch-ae =================================================================== RCS file: /usr/local/ncvs/freebsd//ports/converters/libiconv/files/patch-ae,v retrieving revision 1.5 diff -u -r1.5 patch-ae --- patch-ae 18 Mar 2002 09:43:24 -0000 1.5 +++ patch-ae 23 Mar 2002 15:08:52 -0000 @@ -20,23 +20,6 @@ # Needed by $(LIBTOOL). top_builddir = .. -@@ -72,11 +73,12 @@ - install-lib : all force - $(MKINSTALLDIRS) $(libdir) - $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(libdir)/libcharset.la -- test -f $(libdir)/charset.alias && orig=$(libdir)/charset.alias \ -+ $(MKINSTALLDIRS) $(sysconfdir) -+ test -f $(sysconfdir)/charset.alias && orig=$(sysconfdir)/charset.alias \ - || orig=charset.alias; \ -- sed -f ref-add.sed $$orig > $(libdir)/t-charset.alias; \ -- $(INSTALL_DATA) $(libdir)/t-charset.alias $(libdir)/charset.alias; \ -- rm -f $(libdir)/t-charset.alias -+ sed -f ref-add.sed $$orig > $(sysconfdir)/t-charset.alias; \ -+ $(INSTALL_DATA) $(sysconfdir)/t-charset.alias $(sysconfdir)/charset.alias; \ -+ rm -f $(sysconfdir)/t-charset.alias - - # The following is needed in order to install a simple file in $(libdir) - # which is shared with other installed packages. We use a list of referencing @@ -88,15 +90,16 @@ install : all force $(MKINSTALLDIRS) $(DESTDIR)$(libdir) --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="libiconvbuild.log" ===> Extracting for libiconv-1.7_2 >> Checksum OK for libiconv-1.7.tar.gz. ===> Patching for libiconv-1.7_2 ===> Applying FreeBSD patches for libiconv-1.7_2 ===> Configuring for libiconv-1.7_2 creating cache ./config.cache checking whether make sets $(MAKE)... yes checking for gcc... cc checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works... yes checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler... no checking whether we are using GNU C... yes checking how to run the C preprocessor... cc -E -w checking whether -traditional is needed for cc on this system... no checking for ranlib... ranlib checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking how to copy files... cp -p checking how to make hard links... ln checking whether ln -s works... yes checking host system type... i386-portbld-freebsd5.0 checking for AIX... no checking for minix/config.h... no checking for POSIXized ISC... no checking for object suffix... o checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking build system type... i386-portbld-freebsd5.0 checking for ld used by GCC... /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking for /usr/libexec/elf/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognise dependant libraries... pass_all checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... (cached) ranlib checking for strip... strip checking for objdir... .libs checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.lo... checking if cc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd5.0 ld.so checking if libtool supports shared libraries... yes checking whether -lc should be explicitly linked in... yes creating libtool checking for locale.h... yes checking for stdlib.h... yes checking for mbstate_t... yes checking for iconv... no checking for mbrtowc... no checking for wcrtomb... no checking for setlocale... yes checking byte ordering... little endian updating cache ./config.cache creating ./config.status creating Makefile creating lib/Makefile creating src/Makefile creating man/Makefile creating tests/Makefile creating include/iconv.h creating lib/config.h configuring in libcharset running /bin/sh ./configure --enable-static --prefix=/usr/local i386-portbld-freebsd5.0 --cache-file=../config.cache --srcdir=. loading cache ../config.cache checking whether make sets ${MAKE}... (cached) yes checking for gcc... (cached) cc checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works... yes checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether cc accepts -g... yes checking how to run the C preprocessor... (cached) cc -E -w checking whether cc needs -traditional... (cached) no checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking host system type... i386-portbld-freebsd5.0 checking for AIX... no checking for minix/config.h... (cached) no checking for POSIXized ISC... no checking for object suffix... (cached) o checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking build system type... i386-portbld-freebsd5.0 checking for ld used by GCC... (cached) /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... (cached) yes checking for /usr/libexec/elf/ld option to reload object files... (cached) -r checking for BSD-compatible nm... (cached) /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... (cached) pass_all checking command to parse /usr/bin/nm -B output... (cached) ok checking for dlfcn.h... (cached) yes checking for ranlib... (cached) ranlib checking for strip... (cached) strip checking for objdir... .libs checking for cc option to produce PIC... (cached) -fPIC checking if cc PIC flag -fPIC works... (cached) yes checking if cc static flag -static works... (cached) yes checking if cc supports -c -o file.o... (cached) yes checking if cc supports -c -o file.lo... (cached) checking if cc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd5.0 ld.so checking if libtool supports shared libraries... yes checking whether -lc should be explicitly linked in... (cached) yes creating libtool checking for langinfo.h... yes checking for nl_langinfo... yes checking for nl_langinfo and CODESET... yes checking whether we are using the GNU C Library 2.1 or newer... no checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... yes checking for setlocale... (cached) yes updating cache ../config.cache creating ./config.status creating Makefile creating lib/Makefile creating config.h ===> Building for libiconv-1.7_2 builddir="`pwd`"; cd libcharset && make all && make install-lib libdir="$builddir/lib" includedir="$builddir/lib" if [ ! -d include ] ; then mkdir include ; fi cp ./include/libcharset.h.in include/libcharset.h cd lib && make all /bin/sh ../libtool --mode=compile cc -I. -I. -I.. -I./.. -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -c ./localcharset.c mkdir .libs cc -I. -I. -I.. -I./.. -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -c ./localcharset.c -fPIC -DPIC -o .libs/localcharset.lo cc -I. -I. -I.. -I./.. -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/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/local/lib -version-info 1 -no-undefined 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 (cd .libs && rm -f libcharset.so && ln -s libcharset.so.1 libcharset.so) (cd .libs && rm -f libcharset.so && ln -s libcharset.so.1 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-portbld-freebsd5.0' > 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 cd lib && make all cd lib && make install-lib libdir='/usr/ports/converters/libiconv/work/libiconv-1.7/lib' includedir='/usr/ports/converters/libiconv/work/libiconv-1.7/lib' /bin/sh ./../autoconf/mkinstalldirs /usr/ports/converters/libiconv/work/libiconv-1.7/lib /bin/sh ../libtool --mode=install install -c -m 444 libcharset.la /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.la install -c -m 444 .libs/libcharset.so.1 /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.so.1 (cd /usr/ports/converters/libiconv/work/libiconv-1.7/lib && rm -f libcharset.so && ln -s libcharset.so.1 libcharset.so) (cd /usr/ports/converters/libiconv/work/libiconv-1.7/lib && rm -f libcharset.so && ln -s libcharset.so.1 libcharset.so) install -c -m 444 .libs/libcharset.a /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.a ranlib /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.a chmod 644 /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.a libtool: install: warning: remember to run `libtool --finish /usr/local/lib' test -f /usr/ports/converters/libiconv/work/libiconv-1.7/lib/charset.alias && orig=/usr/ports/converters/libiconv/work/libiconv-1.7/lib/charset.alias || orig=charset.alias; sed -f ref-add.sed $orig > /usr/ports/converters/libiconv/work/libiconv-1.7/lib/t-charset.alias; install -c -m 444 /usr/ports/converters/libiconv/work/libiconv-1.7/lib/t-charset.alias /usr/ports/converters/libiconv/work/libiconv-1.7/lib/charset.alias; rm -f /usr/ports/converters/libiconv/work/libiconv-1.7/lib/t-charset.alias /bin/sh ./autoconf/mkinstalldirs /usr/ports/converters/libiconv/work/libiconv-1.7/lib install -c -m 444 include/libcharset.h /usr/ports/converters/libiconv/work/libiconv-1.7/lib/libcharset.h cd lib && make all /bin/sh ../libtool --mode=compile cc -I. -I. -I../include -I./../include -O -pipe -march=pentiumpro -c ./iconv.c mkdir .libs cc -I. -I. -I../include -I./../include -O -pipe -march=pentiumpro -c ./iconv.c -fPIC -DPIC -o .libs/iconv.lo cc -I. -I. -I../include -I./../include -O -pipe -march=pentiumpro -c ./iconv.c -o iconv.o >/dev/null 2>&1 mv -f .libs/iconv.lo iconv.lo /bin/sh ../libtool --mode=link cc -o libiconv.la -rpath /usr/local/lib -version-info 3 -no-undefined iconv.lo ../libcharset/lib/localcharset.lo rm -fr .libs/libiconv.la .libs/libiconv.* .libs/libiconv.* cc -shared iconv.lo ../libcharset/lib/localcharset.lo -Wl,-soname -Wl,libiconv.so.3 -o .libs/libiconv.so.3 (cd .libs && rm -f libiconv.so && ln -s libiconv.so.3 libiconv.so) (cd .libs && rm -f libiconv.so && ln -s libiconv.so.3 libiconv.so) ar cru .libs/libiconv.a iconv.o ../libcharset/lib/localcharset.o ranlib .libs/libiconv.a creating libiconv.la (cd .libs && rm -f libiconv.la && ln -s ../libiconv.la libiconv.la) cd src && make all /bin/sh ../libtool --mode=link cc -I. -I. -I../include -I./../include -I../lib -O -pipe -march=pentiumpro ./iconv.c ../lib/libiconv.la -o iconv mkdir .libs cc -I. -I. -I../include -I./../include -I../lib -O -pipe -march=pentiumpro ./iconv.c -o .libs/iconv ../lib/.libs/libiconv.so -Wl,--rpath -Wl,/usr/local/lib creating iconv cd man && make all #if test -d tests; then cd tests && make all; fi --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="libiconvinstall.log" ===> Installing for libiconv-1.7_2 cd libcharset && make install prefix='/usr/local' exec_prefix='/usr/local' libdir='/usr/local/lib' cd lib && make install prefix='/usr/local' exec_prefix='/usr/local' libdir='/usr/local/lib' /bin/sh ./../autoconf/mkinstalldirs /usr/local/lib /bin/sh ../libtool --mode=install install -c -m 444 libcharset.la /usr/local/lib/libcharset.la install -c -m 444 .libs/libcharset.so.1 /usr/local/lib/libcharset.so.1 (cd /usr/local/lib && rm -f libcharset.so && ln -s libcharset.so.1 libcharset.so) (cd /usr/local/lib && rm -f libcharset.so && ln -s libcharset.so.1 libcharset.so) install -c -m 444 .libs/libcharset.a /usr/local/lib/libcharset.a ranlib /usr/local/lib/libcharset.a chmod 644 /usr/local/lib/libcharset.a ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/sh ./../autoconf/mkinstalldirs /usr/local/libdata if test -f /usr/local/libdata/charset.alias; then sed -f ref-add.sed /usr/local/libdata/charset.alias > /usr/local/libdata/t-charset.alias; install -c -m 444 /usr/local/libdata/t-charset.alias /usr/local/libdata/charset.alias; rm -f /usr/local/libdata/t-charset.alias; else if test no = no; then sed -f ref-add.sed charset.alias > /usr/local/libdata/t-charset.alias; install -c -m 444 /usr/local/libdata/t-charset.alias /usr/local/libdata/charset.alias; rm -f /usr/local/libdata/t-charset.alias; fi ; fi /bin/sh ./autoconf/mkinstalldirs /usr/local/include install -c -m 444 include/libcharset.h /usr/local/include/libcharset.h cd lib && make install prefix='/usr/local' exec_prefix='/usr/local' libdir='/usr/local/lib' if [ ! -d /usr/local ] ; then mkdir /usr/local ; fi if [ ! -d /usr/local ] ; then mkdir /usr/local ; fi if [ ! -d /usr/local/lib ] ; then mkdir /usr/local/lib ; fi /bin/sh ../libtool --mode=install install -c -m 444 libiconv.la /usr/local/lib/libiconv.la install -c -m 444 .libs/libiconv.so.3 /usr/local/lib/libiconv.so.3 (cd /usr/local/lib && rm -f libiconv.so && ln -s libiconv.so.3 libiconv.so) (cd /usr/local/lib && rm -f libiconv.so && ln -s libiconv.so.3 libiconv.so) install -c -m 444 .libs/libiconv.a /usr/local/lib/libiconv.a ranlib /usr/local/lib/libiconv.a chmod 644 /usr/local/lib/libiconv.a ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- if test -n ""; then install -c -m 444 /usr/local/lib/.new && mv /usr/local/lib/.new /usr/local/lib/ ; fi cd src && make install prefix='/usr/local' exec_prefix='/usr/local' libdir='/usr/local/lib' if [ ! -d /usr/local ] ; then mkdir /usr/local ; fi if [ ! -d /usr/local ] ; then mkdir /usr/local ; fi if [ ! -d /usr/local/bin ] ; then mkdir /usr/local/bin ; fi /bin/sh ../libtool --mode=install install -c -s -m 555 iconv /usr/local/bin/iconv libtool: install: warning: `../lib/libiconv.la' has not been installed in `/usr/local/lib' install -c -m 555 -s .libs/iconv /usr/local/bin/iconv if [ ! -d /usr/local ] ; then mkdir /usr/local ; fi if [ ! -d /usr/local ] ; then mkdir /usr/local ; fi if [ ! -d /usr/local/include ] ; then mkdir /usr/local/include ; fi install -c -m 444 include/iconv.h /usr/local/include/iconv.h cd man && make install prefix='/usr/local' exec_prefix='/usr/local' mandir='/usr/local/man' if [ ! -d /usr/local ] ; then mkdir /usr/local ; fi if [ ! -d /usr/local/man ] ; then mkdir /usr/local/man ; fi if [ ! -d /usr/local/man/man1 ] ; then mkdir /usr/local/man/man1 ; fi cd . && for f in *.1 ; do echo install -c -m 444 $f /usr/local/man/man1/$f ; install -c -m 444 $f /usr/local/man/man1/$f ; done install -c -m 444 iconv.1 /usr/local/man/man1/iconv.1 if [ ! -d /usr/local/man/man3 ] ; then mkdir /usr/local/man/man3 ; fi cd . && for f in *.3 ; do echo install -c -m 444 $f /usr/local/man/man3/$f ; install -c -m 444 $f /usr/local/man/man3/$f ; done install -c -m 444 iconv.3 /usr/local/man/man3/iconv.3 install -c -m 444 iconv_close.3 /usr/local/man/man3/iconv_close.3 install -c -m 444 iconv_open.3 /usr/local/man/man3/iconv_open.3 if [ ! -d /usr/local/doc ] ; then mkdir /usr/local/doc ; fi if [ ! -d /usr/local/share/doc/libiconv ] ; then mkdir /usr/local/share/doc/libiconv ; fi if [ ! -d /usr/local/share/doc/libiconv ] ; then mkdir /usr/local/share/doc/libiconv ; fi cd . && for f in *.html ; do echo install -c -m 444 $f /usr/local/share/doc/libiconv/$f ; install -c -m 444 $f /usr/local/share/doc/libiconv/$f ; done install -c -m 444 iconv.1.html /usr/local/share/doc/libiconv/iconv.1.html install -c -m 444 iconv.3.html /usr/local/share/doc/libiconv/iconv.3.html install -c -m 444 iconv_close.3.html /usr/local/share/doc/libiconv/iconv_close.3.html install -c -m 444 iconv_open.3.html /usr/local/share/doc/libiconv/iconv_open.3.html ===> Generating temporary packing list ===> Compressing manual pages for libiconv-1.7_2 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for libiconv-1.7_2 --BOKacYhQ+x31HxR3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message