pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libiconv build fails



> On Nov 21, 2025, at 17:17, Hauke Fath <hf%spg.tu-darmstadt.de@localhost> wrote:
> 
> Hi,
> 
> on today's pkgsrc converters/libiconv fails on both netbsd-10 and 
> arch-linux with
> 
> [...]
> mkdir /var/obj/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/bin
> /bin/sh ../libtool --mode=link gcc -Wl,-R/usr/pkg/lib -O2 `if test -n 
> ''; then  /usr/pkg/bin; fi` iconv.o ../srclib/libicrt.a  
> /var/obj/pkgsrc/converters/libiconv/work/.destdir/usr/pkg/lib/libiconv.la  
> -o iconv
> libtool: link: gcc -Wl,-rpath -Wl,/usr/pkg/lib -O2 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
> *** Error code 1
> 
> -- why would libiconv attempt to link against itself? Does anybody else 
> see this?

This is the iconv executable which links to libiconv.

The relevant rule is "install : all force" in src/Makefile.in.

Try editing the pkgsrc patch for that file, replacing "$(DESTDIR)$(libdir)/libiconv.la" with "../lib/libiconv.la".



Home | Main Index | Thread Index | Old Index