Ok, well, I can't believe I overlooked this: there is a line in the Makefile of the ports which specifically deletes a few lines from the gscan2pdf perl script (probably from an older version). Simply remove that, and gscan2pdf can be started again. Here's a diff: r...@kg-v2# diff -u Makefile.org Makefile --- Makefile.org 2010-10-16 01:04:38.000000000 +0200 +++ Makefile 2010-12-22 12:42:18.000000000 +0100 @@ -65,6 +65,5 @@ @${REINPLACE_CMD} -e 's/--parents/-p/g;s|$$sharedir/man|${MANPREFIX}/man|g;s|1p|1|g'\ -e '/SITEPREFIX/s|/usr|${PREFIX}|' ${WRKSRC}/Makefile.PL @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' ${WRKSRC}/bin/${PORTNAME} - @${REINPLACE_CMD} -e '8745,8748d' ${WRKSRC}/bin/${PORTNAME}
.include <bsd.port.mk> HTH On Wed, Dec 22, 2010 at 10:02 AM, Torfinn Ingolfsen <tin...@gmail.com> wrote: > Hello, > There has been an update (a commit on Oct 12th, 2010 which touches > this port) but things haven't improved for gscan2pdf: > ti...@kg-v2$ uname -a > FreeBSD kg-v2.kg4.no 8.1-STABLE FreeBSD 8.1-STABLE #3: Thu Sep 16 > 22:18:48 CEST 2010 r...@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC > amd64 > > ti...@kg-v2$ gscan2pdf > Constant subroutine main::LC_CTYPE redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Prototype mismatch: sub main::LC_CTYPE () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Constant subroutine main::LC_NUMERIC redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Prototype mismatch: sub main::LC_NUMERIC () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Constant subroutine main::LC_TIME redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Prototype mismatch: sub main::LC_TIME () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Constant subroutine main::LC_COLLATE redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Prototype mismatch: sub main::LC_COLLATE () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Constant subroutine main::LC_MONETARY redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Prototype mismatch: sub main::LC_MONETARY () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Constant subroutine main::LC_MESSAGES redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Prototype mismatch: sub main::LC_MESSAGES () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Constant subroutine main::LC_ALL redefined at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Prototype mismatch: sub main::LC_ALL () vs none at > /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. > at /usr/local/bin/gscan2pdf line 165 > Bareword found where operator expected at /usr/local/bin/gscan2pdf > line 8849, near "'button" > (Might be a runaway multi-line '' string starting on line 8723) > (Missing operator before button?) > syntax error at /usr/local/bin/gscan2pdf line 8849, near "'button" > Bad name after event' at /usr/local/bin/gscan2pdf line 8849. > > Am I the only one using gscan2pdf under FreeBSD? > If not, are anyone else having problem? > Or better, if anyone has a clue on fixing this, please sound up! > > On Sat, Sep 25, 2010 at 6:15 PM, Torfinn Ingolfsen <tin...@gmail.com> wrote: >> New test, the machine is now upgraded to FreeBSD 8.1-stable: >> ti...@kg-v2$ uname -a >> FreeBSD kg-v2.kg4.no 8.1-STABLE FreeBSD 8.1-STABLE #3: Thu Sep 16 22:18:48 >> CEST 2010 r...@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 >> Perl is upgraded to 5.10 (and all ports depnding on it reinstalled as per >> /usr/ports/UPDATING): >> r...@kg-v2# portversion -v | grep ^perl >> perl-5.10.1_2 = up-to-date with port >> perltidy-20090616 = up-to-date with port >> >> the latest version of gsnan2pdf is installed: >> r...@kg-v2# portversion -v | grep gscan2pdf >> gscan2pdf-0.9.31 = up-to-date with port >> >> When I start gscan2pdf, I get this: >> ti...@kg-v2$ gscan2pdf >> Constant subroutine main::LC_CTYPE redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_CTYPE () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_NUMERIC redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_NUMERIC () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_TIME redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_TIME () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_COLLATE redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_COLLATE () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_MONETARY redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_MONETARY () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_MESSAGES redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_MESSAGES () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_ALL redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_ALL () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> at /usr/local/bin/gscan2pdf line 165 >> Bareword found where operator expected at /usr/local/bin/gscan2pdf line >> 8849, near "'button" >> (Might be a runaway multi-line '' string starting on line 8723) >> (Missing operator before button?) >> syntax error at /usr/local/bin/gscan2pdf line 8849, near "'button" >> Bad name after event' at /usr/local/bin/gscan2pdf line 8849. >> >> Does nayone know how to fix this? >> >> Have a nice day. >> -- >> Regards, >> Torfinn Ingolfsen >> > > And if wish you all stress-free preparations for the holidays. > -- > Regards, > Torfinn Ingolfsen > -- mvh Torfinn _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"