[tlbuild] Problem compiling texlive on RHEL6

Digimer linux at alteeve.com
Thu Nov 18 05:47:08 CET 2010


Hi all,

   I have to admit ignorance of Texlive. :)

   I ran into it while trying to get Xen installed on RHEL6. Texlive was 
a dependency of a dependency, and I've thus far failed to compile it 
from the source RPM texlive-2007-56.fc14.src.rpm. Obviously I can't 
expect a Fedora 14 source to just work on RHEL6, but it was the best I 
could find to work with.

   The problem is that 'rpmbuild -ba texlive.spec' errors with this:

This is TANGLE, Version 4.5 (Web2C 7.5.6)
*1*12*26*33*43*51*64*74*90*94*98*102
Writing the output file.....500
Done.
(No errors were found.)
srcdir=. /bin/sh ./web2c/convert patgen
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..  -I../../libs/obsdcompat 
-I../../libs/obsdcompat/.. -I./../../libs/obsdcompat 
-I./../../libs/obsdcompat/.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -fno-strict-aliasing  -c patgen.c -o patgen.o
patgen.c: In function 'outputhyphenatedword':
patgen.c:1487: warning: array subscript has type 'char'
patgen.c:1501: warning: array subscript has type 'char'
patgen.c:1503: warning: array subscript has type 'char'
patgen.c: In function 'mainbody':
patgen.c:1931: warning: label 'lab9999' defined but not used
patgen.c: In function 'readtranslate':
patgen.c:712: warning: 'n' may be used uninitialized in this function
/bin/sh ../libtool --mode=link gcc -o patgen   patgen.o lib/lib.a 
../kpathsea/libkpathsea.la -lm
gcc -o .libs/patgen patgen.o  lib/lib.a ../kpathsea/.libs/libkpathsea.so 
-lm -Wl,--rpath -Wl,/usr/lib64
creating patgen
cd pdftexdir && make pdftosrc.o
make[3]: Entering directory 
`/root/rpmbuild/BUILD/texlive-2007/texk/web2c/pdftexdir'
c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic 
-fno-strict-aliasing -DHAVE_CONFIG_H  -I. -I. -I../.. -I./../.. 
-I../../../libs/obsdcompat -I../../../libs/obsdcompat/.. 
-I./../../../libs/obsdcompat -I./../../../libs/obsdcompat/.. -c pdftosrc.cc
pdftosrc.cc:27:41: error: poppler/cpp/poppler-version.h: No such file or 
directory
pdftosrc.cc: In function 'int main(int, char**)':
pdftosrc.cc:61: error: 'POPPLER_VERSION' was not declared in this scope
pdftosrc.cc:82: warning: deprecated conversion from string constant to 
'char*'
pdftosrc.cc:88: warning: deprecated conversion from string constant to 
'char*'
pdftosrc.cc:89: warning: deprecated conversion from string constant to 
'char*'
pdftosrc.cc:94: warning: deprecated conversion from string constant to 
'char*'
make[3]: *** [pdftosrc.o] Error 1
make[3]: Leaving directory 
`/root/rpmbuild/BUILD/texlive-2007/texk/web2c/pdftexdir'
make[2]: *** [pdftexdir/pdftosrc.o] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/texlive-2007/texk/web2c'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/texlive-2007/texk'
make: *** [all] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.lNAsRy (%build)

   I also built poppler from source (poppler-0.12.4-3.el6_0.1.src.rpm) 
and installed:

cd ~
rpm -Uvh rpmbuild/RPMS/x86_64/poppler-0.12.4-3.el6.1.x86_64.rpm \
          rpmbuild/RPMS/x86_64/poppler-devel-0.12.4-3.el6.1.x86_64.rpm \
          rpmbuild/RPMS/x86_64/poppler-glib-* \
          rpmbuild/RPMS/x86_64/poppler-qt* \
          rpmbuild/RPMS/x86_64/poppler-utils-0.12.4-3.el6.1.x86_64.rpm \
          rpmbuild/RPMS/x86_64/poppler-debuginfo-0.12.4-3.el6.1.x86_64.rpm

   Any tips/pointers/beatings-with-clue-sticks would be much appreciated. :)

-- 
Digimer
E-Mail: digimer at alteeve.com
AN!Whitepapers: http://alteeve.com
Node Assassin:  http://nodeassassin.org


More information about the tlbuild mailing list