#27471 closed defect (worksforme)
texlive-bin compilation error
Reported by: | bgedik@… | Owned by: | drkp (Dan Ports) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: | texlive-bin |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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) .....
Attachments (1)
Change History (13)
comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to dports@… |
Port: | texlive-bin added |
comment:2 follow-up: 3 Changed 14 years ago by drkp (Dan Ports)
Status: | new → assigned |
---|
comment:3 Changed 14 years ago by bgedik@…
comment:4 follow-up: 5 Changed 14 years ago by drkp (Dan Ports)
Too bad, I had a good theory going about why it would fail in Estonia. Can you provide a debug log?
comment:5 Changed 14 years ago 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.
comment:6 Changed 14 years ago 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.
comment:7 follow-up: 8 Changed 14 years ago by drkp (Dan Ports)
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?
comment:8 Changed 14 years ago 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.
comment:9 Changed 14 years ago by drkp (Dan Ports)
Something is wrong with your installation of texlive-common. Try uninstalling and reinstalling that?
comment:10 Changed 14 years ago by bgedik@…
Right. That solved it. Apparently texlive-common was the problem. Thanks for the help.
comment:11 follow-up: 12 Changed 14 years ago by drkp (Dan Ports)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
No problem. Glad it's working now.
comment:12 Changed 14 years ago by someuser12
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.
Are you using an Estonian locale?