[tlbuild] link error for pdftosrc on aix
Vladimir Volovich
vvv at vsu.ru
Wed Jun 3 19:45:00 CEST 2009
"PB" == Peter Breitenlohner writes:
PB> no real idea but a suspicion. Could it be that these symbols are
PB> declared extern but never defined and never used, and that the
PB> linker nevertheless wants to resolve them?
PB> If so, why does this only occur for pdftosrc?
PB> Or this is yet another library ordering problem.
it occurs only for pdftosrc, and it is fixed by removing libpdftex.a
from the link command:
this fails:
/bin/bash ./libtool --tag=CXX --mode=link xlC -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -o pdftosrc pdftosrc-pdftosrc.o libpdftex.a /usr/local/vvv/src/source/Work/libs/libpng/libpng.a /usr/local/vvv/src/source/Work/libs/zlib/libz.a /usr/local/vvv/src/source/Work/libs/xpdf/libxpdf.a /usr/local/vvv/src/source/Work/libs/obsdcompat/libopenbsd-compat.a libmd5.a lib/lib.a /usr/local/vvv/src/source/Work/texk/kpathsea/libkpathsea.la -lm
libtool: link: xlC -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -o pdftosrc pdftosrc-pdftosrc.o libpdftex.a /usr/local/vvv/src/source/Work/libs/libpng/libpng.a /usr/local/vvv/src/source/Work/libs/zlib/libz.a /usr/local/vvv/src/source/Work/libs/xpdf/libxpdf.a /usr/local/vvv/src/source/Work/libs/obsdcompat/libopenbsd-compat.a libmd5.a lib/lib.a /usr/local/vvv/src/source/Work/texk/kpathsea/.libs/libkpathsea.a -lm
this works:
/bin/bash ./libtool --tag=CXX --mode=link xlC -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -o pdftosrc pdftosrc-pdftosrc.o /usr/local/vvv/src/source/Work/libs/libpng/libpng.a /usr/local/vvv/src/source/Work/libs/zlib/libz.a /usr/local/vvv/src/source/Work/libs/xpdf/libxpdf.a /usr/local/vvv/src/source/Work/libs/obsdcompat/libopenbsd-compat.a libmd5.a lib/lib.a /usr/local/vvv/src/source/Work/texk/kpathsea/libkpathsea.la -lm
libtool: link: xlC -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -o pdftosrc pdftosrc-pdftosrc.o /usr/local/vvv/src/source/Work/libs/libpng/libpng.a /usr/local/vvv/src/source/Work/libs/zlib/libz.a /usr/local/vvv/src/source/Work/libs/xpdf/libxpdf.a /usr/local/vvv/src/source/Work/libs/obsdcompat/libopenbsd-compat.a libmd5.a lib/lib.a /usr/local/vvv/src/source/Work/texk/kpathsea/.libs/libkpathsea.a -lm
and this was the link command in TL2008:
/bin/sh ../libtool --mode=link xlC -o pdftosrc pdftexdir/pdftosrc.o ../../libs/xpdf/xpdf/libxpdf.a ../../libs/xpdf/goo/libGoo.a ../../libs/xpdf/fofi/libfofi.a -lm
xlC -o pdftosrc pdftexdir/pdftosrc.o ../../libs/xpdf/xpdf/libxpdf.a ../../libs/xpdf/goo/libGoo.a ../../libs/xpdf/fofi/libfofi.a -lm
thus, is it possible to remove libpdftex.a from the link command? (and why
was it added there?)
Best,
v.
More information about the tlbuild
mailing list