[MacPorts] #27471: texlive-bin compilation error
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ------------------------------+--------------------------------------------- I run into the following errors when installing texlive-bin :info:build tex-file.c: In function 'kpathsea_init_format': :info:build tex-file.c:489: error: 'DEFAULT_GFFONTS' undeclared (first use in this function) :info:build tex-file.c:489: error: (Each undeclared identifier is reported only once :info:build tex-file.c:489: error: for each function it appears in.) :info:build tex-file.c:496: error: 'DEFAULT_PKFONTS' undeclared (first use in this function) :info:build tex-file.c:503: error: 'DEFAULT_GLYPHFONTS' undeclared (first use in this function) ..... -- Ticket URL: <https://trac.macports.org/ticket/27471> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => dports@… * port: => texlive-bin Old description:
I run into the following errors when installing texlive-bin
:info:build tex-file.c: In function 'kpathsea_init_format': :info:build tex-file.c:489: error: 'DEFAULT_GFFONTS' undeclared (first use in this function) :info:build tex-file.c:489: error: (Each undeclared identifier is reported only once :info:build tex-file.c:489: error: for each function it appears in.) :info:build tex-file.c:496: error: 'DEFAULT_PKFONTS' undeclared (first use in this function) :info:build tex-file.c:503: error: 'DEFAULT_GLYPHFONTS' undeclared (first use in this function) .....
New description: I run into the following errors when installing texlive-bin {{{ :info:build tex-file.c: In function 'kpathsea_init_format': :info:build tex-file.c:489: error: 'DEFAULT_GFFONTS' undeclared (first use in this function) :info:build tex-file.c:489: error: (Each undeclared identifier is reported only once :info:build tex-file.c:489: error: for each function it appears in.) :info:build tex-file.c:496: error: 'DEFAULT_PKFONTS' undeclared (first use in this function) :info:build tex-file.c:503: error: 'DEFAULT_GLYPHFONTS' undeclared (first use in this function) ..... }}} -- -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Changes (by dports@…): * status: new => assigned Comment: Are you using an Estonian locale? -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by bgedik@…): Replying to [comment:2 dports@…]:
Are you using an Estonian locale?
No. en_US.utf-8 -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by dports@…): Too bad, I had a good theory going about why it would fail in Estonia. Can you provide a debug log? -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by bgedik@…): Ok, I cleaned it, and installed again. Got the same problem. I attached the log file. Please let me know if you need some other log. I am not deeply knowledgeable in Mac ports. I was just trying to get my ports updated, and got stuck with this one. Thanks for the attention. -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by bgedik@…): The following lines look suspicious to me: {{{ 1227 :debug:patch Executing proc-post-org.macports.patch-patch-0 1228 :debug:patch delete: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_ports_tex_texlive- bin/work/texlive-20100720-source/texk/kpathsea/texmf.cnf }}} Once texmf.cnf is deleted, then the paths.h file will not be properly generated as part of configure, thus the errors. When I go to the build dir, I see texmf.cnf empty, where as it has the proper env vars defined in the original source. I hope this is not a red herring, but looking at the following lines in configure, I am pretty sure this is the issue: {{{ :info:build Making all in texk/kpathsea 1720 :info:build echo "/* paths.h: Generated from texmf.cnf. */"
paths.tmp 1721 :info:build awk -f ./bsnl.awk ./texmf.cnf \ 1722 :info:build | sed -e 's/%.*//' -e 's/^[ ]*//' -e 's/[ ]*$//' \ 1723 :info:build | grep '^[ ]*[A-Z0-9_]*[ =]' \ 1724 :info:build | sed '/^$/d' \ 1725 :info:build | sed 's/^\([^ =]*\)[ ]*=*[ ]*\(.*\)/#ifndef DEFAULT_\1%#define DEFAULT_\1 "\2"%#endif/' \ 1726 :info:build | tr '%' '\012' \ 1727 :info:build | sed -e 's%\$TEXMFCONFIG%/nonesuch/texmfconfig%g' \ 1728 :info:build -e 's%\$TEXMFDIST%/nonesuch/texmfdist%g' \ 1729 :info:build -e 's%\$TEXMFDOCDIR%/nonesuch/texmfdocdir%g' \ 1730 :info:build -e 's%\$TEXMFLOCAL%/nonesuch/texmflocal%g' \ 1731 :info:build -e 's%\$TEXMFMAIN%/nonesuch/texmfmain%g' \ 1732 :info:build -e 's%\$TEXMFSYSCONFIG%/nonesuch/texmfsysconfig%g' \ 1733 :info:build -e 's%\$TEXMFSYSVAR%/nonesuch/texmfsysvar%g' \ 1734 :info:build -e 's%\$TEXMFVAR%/nonesuch/texmfvar%g' \ 1735 :info:build -e 's%\$TEXMF%/nonesuch/texmf%g' \ 1736 :info:build -e 's%\$VARTEXFONTS%/nonesuch/vartexfonts%g' \ 1737 :info:build | sed -e 's%;%:%g' \ 1738 :info:build >>paths.tmp 1739 :info:build cp paths.tmp paths.h }}}
I am not familiar with the patching process, so no idea why texmf.cnf is messed with. -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by dports@…): Yes, the problem seems to be related to generating paths.h from texmf.cnf. The patch phase deletes the texmf.cnf included in the texlive tarball, then immediately replaces it with a symlink to /opt/local/etc/texmf/texmf.cnf which is generated by texlive-common. Is this the file that's empty? -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by bgedik@…): You are right. It is a sym link to /opt/local/etc/texmf/texmf.cnf and that file is empty in my case. -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by dports@…): Something is wrong with your installation of texlive-common. Try uninstalling and reinstalling that? -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error ------------------------------+--------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: texlive-bin ------------------------------+--------------------------------------------- Comment(by bgedik@…): Right. That solved it. Apparently texlive-common was the problem. Thanks for the help. -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error -------------------------------+-------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: Port: texlive-bin | -------------------------------+-------------------------------------------- Changes (by dports@…): * status: assigned => closed * resolution: => worksforme Comment: No problem. Glad it's working now. -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27471: texlive-bin compilation error -------------------------------+-------------------------------------------- Reporter: bgedik@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: Port: texlive-bin | -------------------------------+-------------------------------------------- Comment(by macosx12345@…): I had the same problem, just doing a standard upgrade on Mac OS 10.5. Uninstalling and reinstalling texlive-common solved it. On a different machine, running Mac OS 10.6, I didn't have the problem but I don't know why. -- Ticket URL: <https://trac.macports.org/ticket/27471#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts