Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119856 - tetex-3.0_p1 fails to compile, undeclared defaults in tex-file.c
Summary: tetex-3.0_p1 fails to compile, undeclared defaults in tex-file.c
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: TeX project
URL:
Whiteboard:
Keywords:
: 120136 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-21 13:18 UTC by Jaak Ristioja
Modified: 2008-06-05 19:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2006-01-21 13:18:42 UTC
make[2]: Entering directory `/var/tmp/portage/tetex-3.0_p1/work/tetex-src-3.0/texk/kpathsea'
rm -f texmf.sed
echo prefix=/usr exec_prefix=/usr bindir=/usr/bin scriptdir=/usr/bin libdir=/usr/lib64 datadir=/var/tmp/portage/tetex-3.0_p1/work/tetex-src-3.0 infodir=/usr/share/info includedir=/usr/include mandir=/usr/share/man manext=1 man1dir=/usr/share/man/man1 texmf=/var/lib/texmf web2cdir=/var/lib/texmf/web2c vartexfonts=/var/tmp/texfonts texinputdir=/var/lib/texmf/tex mfinputdir=/var/lib/texmf/metafont mpinputdir=/var/lib/texmf/metapost fontdir=/var/lib/texmf/fonts fmtdir=/var/lib/texmf/web2c/tex basedir=/var/lib/texmf/web2c/metafont memdir=/var/lib/texmf/web2c/metapost texpooldir=/var/lib/texmf/web2c mfpooldir=/var/lib/texmf/web2c mppooldir=/var/lib/texmf/web2c dvips_plain_macrodir=/var/lib/texmf/tex/plain/dvips dvilj_latex2e_macrodir=/var/lib/texmf/tex/latex/dvilj dvipsdir=/var/lib/texmf/dvips psheaderdir=/var/lib/texmf/dvips default_texsizes='300:600' \
| tr ' ' '\012' \
| sed -e 's/^/s%@/' -e 's/=/@%/' -e 's/$/%g/' \
>texmf.sed
echo 's%/var/lib/texmf%\$TEXMF%g' >>texmf.sed
echo '/^ *TEXMFMAIN[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*TEXMFLOCAL[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*TEXMFDIST[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*VARTEXMF[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*TEXMFSYSVAR[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*TEXMFSYSCONFIG[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*TEXMFSYSVAR[ =]/s%/var/lib/texmfMAIN%\$TEXMFMAIN%' >>texmf.sed
echo '/^[% ]*TEXMFSYSCONFIG[ =]/s%/var/lib/texmfMAIN%\$TEXMFMAIN%' >>texmf.sed
echo '/^[% ]*TEXMFVAR[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*TEXMFCONFIG[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^[% ]*TEXMFVAR[ =]/s%/var/lib/texmfMAIN%\$TEXMFMAIN%' >>texmf.sed
echo '/^[% ]*TEXMFCONFIG[ =]/s%/var/lib/texmfMAIN%\$TEXMFMAIN%' >>texmf.sed
echo '/^[% ]*TEXMFCNF[ =]/s%\$TEXMF%/var/lib/texmf%' >>texmf.sed
echo '/^ *TEXMFCNF[ =]/s%@web2c@%/var/lib/texmf/web2c%' >>texmf.sed
sed -f texmf.sed ./texmf.in >texmf.cnf
echo "/* paths.h: Generated from texmf.cnf. */" >paths.tmp
sed -e 's/%.*//' -e 's/^[       ]*//' -e 's/[   ]*$//' texmf.cnf \
| grep '^[      ]*[A-Z0-9_]*[   =]' \
| sed '/^$/d' \
| sed 's/^\([^  =]*\)[  ]*=*[   ]*\(.*\)/#ifndef DEFAULT_\1%#define DEFAULT_\1 "\2"%#endif/' \
| tr '%' '\012' \
| sed -e 's%\$TEXMFMAIN%/var/lib/texmf%g' \
      -e 's%\$TEXMF%/var/lib/texmf%g' \
      -e 's%\$VARTEXFONTS%/var/tmp/texfonts%g' \
      -e 's%\$web2cdir%/var/lib/texmf/web2c%g' \
      -e 's%\$prefix%/usr%g' \
| sed -e 's%;%:%g' \
>>paths.tmp
cp paths.tmp paths.h
rm -f paths.tmp
date >stamp-paths
libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -O2 -pipe -march=athlon64  -DMAKE_KPSE_DLL -c tex-file.c
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -O2 -pipe -march=athlon64 -DMAKE_KPSE_DLL -c tex-file.c  -fPIC -DPIC -o .libs/tex-file.o
tex-file.c: In function `kpse_init_format':
tex-file.c:415: error: `DEFAULT_GFFONTS' undeclared (first use in this function)
tex-file.c:415: error: (Each undeclared identifier is reported only once
tex-file.c:415: error: for each function it appears in.)
tex-file.c:422: error: `DEFAULT_PKFONTS' undeclared (first use in this function)
tex-file.c:429: error: `DEFAULT_GLYPHFONTS' undeclared (first use in this function)
tex-file.c:436: error: `DEFAULT_TFMFONTS' undeclared (first use in this function)
tex-file.c:442: error: `DEFAULT_AFMFONTS' undeclared (first use in this function)
tex-file.c:452: error: `DEFAULT_BIBINPUTS' undeclared (first use in this function)
tex-file.c:457: error: `DEFAULT_BSTINPUTS' undeclared (first use in this function)
tex-file.c:461: error: `DEFAULT_TEXMFCNF' undeclared (first use in this function)
tex-file.c:465: error: `DEFAULT_TEXMFDBS' undeclared (first use in this function)
tex-file.c:472: error: `DEFAULT_TEXFORMATS' undeclared (first use in this function)
tex-file.c:479: error: `DEFAULT_TEXFONTMAPS' undeclared (first use in this function)
tex-file.c:490: error: `DEFAULT_MFINPUTS' undeclared (first use in this function)
tex-file.c:494: error: `DEFAULT_MFTINPUTS' undeclared (first use in this function)
tex-file.c:502: error: `DEFAULT_MPINPUTS' undeclared (first use in this function)
tex-file.c:510: error: `DEFAULT_MPSUPPORT' undeclared (first use in this function)
tex-file.c:514: error: `DEFAULT_OCPINPUTS' undeclared (first use in this function)
tex-file.c:521: error: `DEFAULT_OFMFONTS' undeclared (first use in this function)
tex-file.c:528: error: `DEFAULT_OPLFONTS' undeclared (first use in this function)
tex-file.c:533: error: `DEFAULT_OTPINPUTS' undeclared (first use in this function)
tex-file.c:538: error: `DEFAULT_OVFFONTS' undeclared (first use in this function)
tex-file.c:544: error: `DEFAULT_OVPFONTS' undeclared (first use in this function)
tex-file.c:549: error: `DEFAULT_TEXINPUTS' undeclared (first use in this function)
tex-file.c:562: error: `DEFAULT_TEXPSHEADERS' undeclared (first use in this function)
tex-file.c:570: error: `DEFAULT_TEXDOCS' undeclared (first use in this function)
tex-file.c:573: error: `DEFAULT_TEXPOOL' undeclared (first use in this function)
tex-file.c:577: error: `DEFAULT_TEXSOURCES' undeclared (first use in this function)
tex-file.c:580: error: `DEFAULT_TRFONTS' undeclared (first use in this function)
tex-file.c:584: error: `DEFAULT_T1FONTS' undeclared (first use in this function)
tex-file.c:590: error: `DEFAULT_VFFONTS' undeclared (first use in this function)
tex-file.c:596: error: `DEFAULT_TEXCONFIG' undeclared (first use in this function)
tex-file.c:599: error: `DEFAULT_INDEXSTYLE' undeclared (first use in this function)
tex-file.c:603: error: `DEFAULT_TTFONTS' undeclared (first use in this function)
tex-file.c:610: error: `DEFAULT_T42FONTS' undeclared (first use in this function)
tex-file.c:614: error: `DEFAULT_WEB2C' undeclared (first use in this function)
tex-file.c:630: error: `DEFAULT_MISCFONTS' undeclared (first use in this function)
tex-file.c:634: error: `DEFAULT_WEBINPUTS' undeclared (first use in this function)
tex-file.c:639: error: `DEFAULT_CWEBINPUTS' undeclared (first use in this function)
tex-file.c:645: error: `DEFAULT_ENCFONTS' undeclared (first use in this function)
tex-file.c:649: error: `DEFAULT_CMAPFONTS' undeclared (first use in this function)
tex-file.c:653: error: `DEFAULT_SFDFONTS' undeclared (first use in this function)
tex-file.c:657: error: `DEFAULT_OPENTYPEFONTS' undeclared (first use in this function)
tex-file.c:662: error: `DEFAULT_PDFTEXCONFIG' undeclared (first use in this function)
tex-file.c:665: error: `DEFAULT_LIGFONTS' undeclared (first use in this function)
tex-file.c:669: error: `DEFAULT_TEXMFSCRIPTS' undeclared (first use in this function)
make[2]: *** [tex-file.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/tetex-3.0_p1/work/tetex-src-3.0/texk/kpathsea'
make[1]: *** [do-kpathsea] Error 2
make[1]: Leaving directory `/var/tmp/portage/tetex-3.0_p1/work/tetex-src-3.0/texk'
make: *** [all] Error 1



emerge --info:
Portage 2.1_pre3-r1 (default-linux/amd64/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo x86_64)
=================================================================
System uname: 2.6.15-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="et_EE.UTF-8"
LDFLAGS="-Wl,-O2"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl adns alsa amd64 apm audiofile avi bash-completion bitmap-fonts bzip2 cairo cdr cjk crypt cups curl dbus directfb divx4linux dri eds emboss encode ethereal exif expat fam fbcon ffmpeg flac foomaticdb gif gimpprint glut gmp gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib ithreads jpeg kde lcms libcaca libwww lirc lzw lzw-tiff mhash mikmod mjpeg mmap mng mozilla mp3 mpeg ncurses nogcj nomotif nptl ogg oggvorbis openal opengl pam pcre pdflib perl pic png ppds python qt quicktime readline samba sdl sqlite ssl subversion svg sysfs tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vhosts vorbis wmf xine xinerama xml xml2 xmms xpm xprint xscreensaver xv xvid zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, LINGUAS


locale:
LANG=en_US.UTF-8
LC_CTYPE="et_EE.UTF-8"
LC_NUMERIC="et_EE.UTF-8"
LC_TIME="et_EE.UTF-8"
LC_COLLATE="et_EE.UTF-8"
LC_MONETARY="et_EE.UTF-8"
LC_MESSAGES="et_EE.UTF-8"
LC_PAPER="et_EE.UTF-8"
LC_NAME="et_EE.UTF-8"
LC_ADDRESS="et_EE.UTF-8"
LC_TELEPHONE="et_EE.UTF-8"
LC_MEASUREMENT="et_EE.UTF-8"
LC_IDENTIFICATION="et_EE.UTF-8"
LC_ALL=et_EE.UTF-8
Comment 1 Alexandre Buisse (RETIRED) gentoo-dev 2006-01-24 10:14:57 UTC
*** Bug 120136 has been marked as a duplicate of this bug. ***
Comment 2 Alexandre Buisse (RETIRED) gentoo-dev 2006-01-24 10:19:10 UTC
Can you please try a new compilation without ccache?
Comment 3 Jaak Ristioja 2006-01-24 12:13:47 UTC
(In reply to comment #2)
> Can you please try a new compilation without ccache?
> 

Same results.
Comment 4 Jaak Ristioja 2006-01-24 12:29:07 UTC
btw, i included the compilation messages before the actual error, because i suspect, that perhaps it has something to do with my locale. Grep and sed seem to use patterns like A-Z. As the estonian alphabet is "ABCDEFGHIJKLMNOPQRS
Comment 5 Jaak Ristioja 2006-01-24 12:29:07 UTC
btw, i included the compilation messages before the actual error, because i suspect, that perhaps it has something to do with my locale. Grep and sed seem to use patterns like A-Z. As the estonian alphabet is "ABCDEFGHIJKLMNOPQRSZTUVWÕÄÖÜXY", A-Z only includes "ABCDEFGHIJKLMNOPQRSZ" and excludes the letters "TUVWÕÄÖÜXY". I just tested it with LC_ALL="C" and it compiled just fine. So here's a temporary workaround:

1) edit /etc/env.d/02locales, add or change the line LC_ALL="C"
2) env-update
3) source /etc/profile
4) emerge --oneshot tetex
5) restore /etc/env.d/02locales
6) env-update
7) source /etc/profile
Comment 6 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-25 06:02:03 UTC
This should be a simple case of adding
export LC_ALL=C
to the ebuild.
I'll add it next time i'm at my gentoo dev box.
Thanks for debugging this!
Comment 7 Martin Ehmsen (RETIRED) gentoo-dev 2006-02-02 08:46:56 UTC
I have fixed it in tetex-3.0_p1-r1. Try to sync and then reemerge tetex, to confirm that it actually works (I don't have estonian locale installed :-P)
Reopen the bug if it isn't fixed.

Thanks for reporting and locating the problem!
Comment 8 SpanKY gentoo-dev 2006-02-02 11:00:52 UTC
> This should be a simple case of adding
> export LC_ALL=C
> to the ebuild.

no offense, but that's a weak solution that only helps Gentoo

patch the build system itself to run
LC_ALL=C sed ...
and then send the patch upstream
Comment 9 SpanKY gentoo-dev 2007-08-04 13:42:56 UTC
stop messing with bugs
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-08-19 11:03:35 UTC
(In reply to comment #9)
> stop messing with bugs

Yeah indeed, which part of NeedPatch keyword description is unclear for you?

http://bugs.gentoo.org/describekeywords.cgi
Comment 11 SpanKY gentoo-dev 2007-08-19 11:10:12 UTC
when you have something useful to contribute, do so ... since that is unlikely to happen, go away
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-09-01 10:25:53 UTC
Great, lets generate more noise here. Especially useful since tetex has been deprecated in favor of texlive upstream and is no longer being developed.