Subject: pkg/32996: fontforge fails on "ja.po.tmp:XXXX: parse error"
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <lars.udo@gmail.com>
List: pkgsrc-bugs
Date: 03/05/2006 03:20:01
>Number:         32996
>Category:       pkg
>Synopsis:       fontforge fails on "ja.po.tmp:XXXX: parse error"
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 05 03:20:00 +0000 2006
>Originator:     Lars Udo
>Release:        3.0
>Organization:
home user
>Environment:
NetBSD  3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
Fontforge fails to build while trying to compile Wine ang gives following output on console:

console output:
----clip-----------------------
ln: po/es.po: File exists
ln: po/fr.po: File exists
ln: po/gr.po: File exists
ln: po/it.po: File exists
ln: po/ja.po: File exists
ln: po/orig-fr.po: File exists
ln: po/ru.po: File exists
ln: po/zh_TW.po: File exists
gmake: [pos] Error 1 (ignored)
ja.po.tmp:3292: end-of-line within string
ja.po.tmp:7482: end-of-line within string
ja.po.tmp:7551: end-of-line within string
ja.po.tmp:10686: parse error
found 4 fatal errors
gmake[1]: *** [ja.mo] Error 1
gmake: *** [pos] Error 2
----------EOF------------------------

make install > log:
--------------clip----------------
(cd ../.libs && rm -f libgdraw.so && ln -s libgdraw.so.1.0.9 libgdraw.so)
ar cru ../.libs/libgdraw.a  choosericons.o divisors.o drawboxborder.o fsys.o gaskdlg.o gbuttons.o gchardlg.o gcontainer.o gdraw.o gdrawbuildchars.o gdrawerror.o gdrawtxt.o gdrawtxtinit.o genkeysym.o gfilechooser.o gfiledlg.o ggadgets.o ggroupbox.o gimage.o gimageclut.o gimagecvt.o gimagepsdraw.o gimageread.o gimagereadbmp.o gimagereadgif.o gimagereadjpeg.o gimagereadpng.o gimagereadras.o gimagereadrgb.o gimagereadtiff.o gimagereadxbm.o gimagereadxpm.o gimagewritebmp.o gimagewriteeps.o gimagewritegimage.o gimagewritejpeg.o gimagewritepng.o gimagewritexbm.o gimagewritexpm.o gimagexdraw.o gio.o giofile.o giohosts.o giomime.o giothread.o giotrans.o gkeysym.o glist.o gmenu.o gprogress.o gpsdraw.o gpstxtinit.o gradio.o gresource.o gresourceimage.o gsavefiledlg.o gscrollbar.o gtabset.o gtextfield.o gtextinfo.o gwidgets.o gxdraw.o dynamic.o
ranlib ../.libs/libgdraw.a
creating ../libgdraw.la
(cd ../.libs && rm -f libgdraw.la && ln -s ../libgdraw.la libgdraw.la)
gmake[1]: Leaving directory `/usr/pkgsrc/fonts/fontforge/work/fontforge-20060114/gdraw'
ln -s ./po/*.po po
( cd po ; /usr/pkg/bin/gmake )
gmake[1]: Entering directory `/usr/pkgsrc/fonts/fontforge/work/fontforge-20060114/po'
msgfmt -o es.mo es.po
Working-around plural forms in es.po
Running `/usr/bin/msgfmt -o es.mo es.po.tmp'
msgfmt -o fr.mo fr.po
Working-around plural forms in fr.po
Running `/usr/bin/msgfmt -o fr.mo fr.po.tmp'
msgfmt -o it.mo it.po
Working-around plural forms in it.po
Running `/usr/bin/msgfmt -o it.mo it.po.tmp'
msgfmt -o ja.mo ja.po
Working-around plural forms in ja.po
Running `/usr/bin/msgfmt -o ja.mo ja.po.tmp'
gmake[1]: Leaving directory `/usr/pkgsrc/fonts/fontforge/work/fontforge-20060114/po'
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/fonts/fontforge
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/fonts/fontforge/work/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/fonts/fontforge
----------------EOF-------------------------------

work.log takes 3 MB so, i guess that i submit if asked. But just to be sure, i'll paste few last lines of it:
----------clip----------
    (cmd-sink) pop: .libs/gimagexdraw.o
    (cmd-sink) pop: .libs/gio.o
    (cmd-sink) pop: .libs/giofile.o
    (cmd-sink) pop: .libs/giohosts.o
    (cmd-sink) pop: .libs/giomime.o
    (cmd-sink) pop: .libs/giothread.o
    (cmd-sink) pop: .libs/giotrans.o
    (cmd-sink) pop: .libs/gkeysym.o
    (cmd-sink) pop: .libs/glist.o
    (cmd-sink) pop: .libs/gmenu.o
    (cmd-sink) pop: .libs/gprogress.o
    (cmd-sink) pop: .libs/gpsdraw.o
    (cmd-sink) pop: .libs/gpstxtinit.o
    (cmd-sink) pop: .libs/gradio.o
    (cmd-sink) pop: .libs/gresource.o
    (cmd-sink) pop: .libs/gresourceimage.o
    (cmd-sink) pop: .libs/gsavefiledlg.o
    (cmd-sink) pop: .libs/gscrollbar.o
    (cmd-sink) pop: .libs/gtabset.o
    (cmd-sink) pop: .libs/gtextfield.o
    (cmd-sink) pop: .libs/gtextinfo.o
    (cmd-sink) pop: .libs/gwidgets.o
    (cmd-sink) pop: .libs/gxdraw.o
    (cmd-sink) pop: .libs/dynamic.o
    (cmd-sink) pop: -L/usr/pkgsrc/fonts/fontforge/work/.buildlink/lib
    (cmd-sink) pop: -L/usr/pkgsrc/fonts/fontforge/work/.x11-buildlink/lib
    (cmd-sink) pop: -lintl
    (cmd-sink) pop: -Wl,-R/usr/pkg/lib
    (cmd-sink) pop: -Wl,-R/usr/X11R6/lib
    (cmd-sink) pop: -Wl,-soname
    (cmd-sink) pop: -Wl,libgdraw.so.1
    (cmd-sink) pop: -o
    (cmd-sink) pop: ../.libs/libgdraw.so.1.0.9
    (cmd-sink) pop: -I/usr/pkgsrc/fonts/fontforge/work/.buildlink/include
    (cmd-sink) pop: -L/usr/pkgsrc/fonts/fontforge/work/.buildlink/lib
<.> /usr/pkgsrc/fonts/fontforge/work/.gcc/bin/gcc -shared .libs/choosericons.o .libs/divisors.o .libs/drawboxborder.o .libs/fsys.o .libs/gaskdlg.o .libs/gbuttons.o .libs/gchardlg.o .libs/gcontainer.o .libs/gdraw.o .libs/gdrawbuildchars.o .libs/gdrawerror.o .libs/gdrawtxt.o .libs/gdrawtxtinit.o .libs/genkeysym.o .libs/gfilechooser.o .libs/gfiledlg.o .libs/ggadgets.o .libs/ggroupbox.o .libs/gimage.o .libs/gimageclut.o .libs/gimagecvt.o .libs/gimagepsdraw.o .libs/gimageread.o .libs/gimagereadbmp.o .libs/gimagereadgif.o .libs/gimagereadjpeg.o .libs/gimagereadpng.o .libs/gimagereadras.o .libs/gimagereadrgb.o .libs/gimagereadtiff.o .libs/gimagereadxbm.o .libs/gimagereadxpm.o .libs/gimagewritebmp.o .libs/gimagewriteeps.o .libs/gimagewritegimage.o .libs/gimagewritejpeg.o .libs/gimagewritepng.o .libs/gimagewritexbm.o .libs/gimagewritexpm.o .libs/gimagexdraw.o .libs/gio.o .libs/giofile.o .libs/giohosts.o .libs/giomime.o .libs/giothread.o .libs/giotrans.o .libs/gkeysym.o .libs/glist.o .
 libs/gmenu.o .libs/gprogress.o .libs/gpsdraw.o .libs/gpstxtinit.o .libs/gradio.o .libs/gresource.o .libs/gresourceimage.o .libs/gsavefiledlg.o .libs/gscrollbar.o .libs/gtabset.o .libs/gtextfield.o .libs/gtextinfo.o .libs/gwidgets.o .libs/gxdraw.o .libs/dynamic.o -L/usr/pkgsrc/fonts/fontforge/work/.buildlink/lib -L/usr/pkgsrc/fonts/fontforge/work/.x11-buildlink/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -Wl,-soname -Wl,libgdraw.so.1 -o ../.libs/libgdraw.so.1.0.9 -I/usr/pkgsrc/fonts/fontforge/work/.buildlink/include -lintl
==> Fixed ../libgdraw.la
==> Fixed ../.libs/libgdraw.lai
# 
-----------EOF-----------

have phun :)
>How-To-Repeat:
happens everytime, nomatter if pkgsrc is checked out or new distfile fetch.
>Fix:
send-pr