Re: error installing libiconv-1.17
> I think this is a bug, since it prevents a proper upgrade. Certainly it is. These bugs are not that rare. There is typically a link line to make a binary that needs libs that are part of the package and libs that are in pkgsrc (in dependencies). So it ends up being something that sort of is like this cc -o prog prog.o foo.o bar.o -L../libs -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lproglib -lotherlib and that is probably ok but if the -L get tangled up in the wrong order because it's 10 times more complicated than that with multiple stages of substitution, you can see how it would go wrong. My guess is that these bugs are 90% upstream bugs. So if you can figure it out, and how to fix, and report upstream if that's where the bug is, that would be helpful. But it's hard.
Re: error installing libiconv-1.17
Hi Thomas, Thomas Klausner wrote: > On Mon, Mar 27, 2023 at 10:03:18AM +, Riccardo Mottola wrote: >> I am trying to upgrade current pkgsrc packages on current. >> >> Current installed version: >> libiconv-1.14nb3Character set conversion library > IIRC libiconv doesn't build if a different version is already > installed - is that the case in your setup? > Thomas yes, I have Current installed version: libiconv-1.14nb3 and am trying to upgrade to libiconv-1.17 which is in current pkgsrc. Since you hinted an issue, I uninstalled libiconv. It had no reverse dependencies. After that, "make install" of libiconv succeeded (of course, not make replace). I think this is a bug, since it prevents a proper upgrade. Riccardo
Re: error installing libiconv-1.17
On Mon, 27 Mar 2023 10:03:18 + Riccardo Mottola wrote: > I am trying to upgrade current pkgsrc packages on current. > > Any ideas? > -Wl,-rpath,/usr/pkg/lib > ld: cannot find -liconv: No such file or directory > *** Error code 1 PR pkg/57222. One way to work around the problem without having to resort to pkg_delete -f is: libiconv# mv /usr/pkg/lib/libiconv.so* /root libiconv# make clean replace
Re: error installing libiconv-1.17
On Mon, Mar 27, 2023 at 10:03:18AM +, Riccardo Mottola wrote: > I am trying to upgrade current pkgsrc packages on current. > > Current installed version: > libiconv-1.14nb3Character set conversion library IIRC libiconv doesn't build if a different version is already installed - is that the case in your setup? Thomas
error installing libiconv-1.17
Hello, I am trying to upgrade current pkgsrc packages on current. Current installed version: libiconv-1.14nb3Character set conversion library Any ideas? Riccardo libtool: install: chmod 644 /usr/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/lib/libiconv.a libtool: install: ranlib /usr/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/lib/libiconv.a libtool: warning: remember to run 'libtool --finish /usr/pkg/lib' case "netbsd" in aix*) (cd /usr/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/lib && objects=`ar t libiconv.a`" "`ar t /lib/libiconv.a` && ar x libiconv.a && ar x /lib/libiconv.a && ar q libiconv.new.a $objects && rm -f $objects && mv -f libiconv.new.a libiconv.a) ;; esac cd srclib && /usr/bin/make install prefix='/usr/pkg' exec_prefix='/usr/pkg' libdir='/usr/pkg/lib' /usr/bin/make install-am cd src && /usr/bin/make install prefix='/usr/pkg' exec_prefix='/usr/pkg' libdir='/usr/pkg/lib' test `ls -ld . | sed -e 's/^d\(.\).*/\1/'` = rwxrwxrwx || chmod 777 . if [ ! -d /usr/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/bin ] ; then /bin/sh ../build-aux/mkinstalldirs /usr/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/bin ; fi case "netbsd" in hpux*) gcc -Wl,-zrelro -Wl,-R/usr/pkg/lib -O2 -march=core2 -fPIC -D_FORTIFY_SOURCE=2 `if test -n ''; then /usr/pkg/bin; fi` iconv.o ../srclib/libicrt.a -L/usr/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/lib -liconv `if test -n '/usr/pkgsrc/converters/libiconv/work/.destdir'; then echo " -Wl,+b -Wl,/usr/pkg/lib"; fi` -o iconv;; *) /bin/sh ../libtool --mode=link gcc -Wl,-zrelro -Wl,-R/usr/pkg/lib -O2 -march=core2 -fPIC -D_FORTIFY_SOURCE=2 `if test -n ''; then /usr/pkg/bin; fi` iconv.o ../srclib/libicrt.a /usr/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/lib/libiconv.la -o iconv;; esac libtool: link: gcc -Wl,-zrelro -Wl,-rpath -Wl,/usr/pkg/lib -O2 -march=core2 -fPIC -D_FORTIFY_SOURCE=2 iconv.o -o iconv -pie ../srclib/libicrt.a -L/usr/pkg/lib -liconv -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib ld: cannot find -liconv: No such file or directory *** Error code 1