On Mon, 26 Aug 2013 16:24:26 +0200 Dimitry Andric <dim_at_FreeBSD.org> wrote: [...] > > and furthermore, when I > > thought the cups binary might be out of sync with the environment, I > > tried to recompile the whole preint/cups installation, but this > > fails now in a close to EPICAL way not finding "libiconv" > > > > [...] > > cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler > > -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib > > -Wl,-R/usr/local/lib -Wall -Wno-format-y2k -Wunused -fPIC -Os -g > > -fstack-protector -Wno-tautological-compare -o bannertops > > bannertops.o pstext.o common.o -lcupsimage \ -lcups -lssl > > -lcrypto -lz -pthread -lcrypt -lm > > -lssp_nonshared ../cups/libcups.so: undefined reference to > > `libiconv' ../cups/libcups.so: undefined reference to > > `libiconv_close' ../cups/libcups.so: undefined reference to > > `libiconv_open' > > ... but maybe I can help here. This is due to iconv being enabled in > the base system, as I pointed out here: > > http://lists.freebsd.org/pipermail/freebsd-ports/2013-August/085459.html > > The easiest workaround for now is to force LDFLAGS to contain -liconv > in the port's Makefile, e.g.: > > Index: print/cups-base/Makefile > =================================================================== > --- print/cups-base/Makefile (revision 324846) > +++ print/cups-base/Makefile (working copy) > _at__at_ -23,7 +23,7 _at__at_ > GNU_CONFIGURE= yes > CFLAGS+= ${PTHREAD_CFLAGS} > CPPFLAGS+= -I${LOCALBASE}/include > -LDFLAGS+= -L${LOCALBASE}/lib > +LDFLAGS+= -L${LOCALBASE}/lib -liconv > DSOFLAGS= -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib ${LDFLAGS} > CONFIGURE_ENV= DSOFLAGS="${DSOFLAGS}" > CONFIGURE_ARGS+= --localstatedir=/var \ > > -Dimitry > > _______________________________________________ > freebsd-current_at_freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe_at_freebsd.org" Sorry, I missed the detailed explanation and how-to. Applying the add on th LDCONFIG solves the problem. Thank you very much Oliver
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:40 UTC