On Thu, Oct 11, 2007 at 01:09:52PM +0100, Edd Barrett wrote:
> (...) I tried building the test-poppler-qt4.cpp distributed in the
> poppler source tarball qt4/tests.
> ---8<---
> $ qmake4 && make
> g++ -pthread -o poppler test-poppler-qt4.o -L/lib
> -L/usr/local/lib/qt4 -lpoppler-qt4 -lpoppler -lpoppler-glib -lQtGui
> -L/usr/local/lib/qt4 -L/usr/local/lib -L/usr/local/lib/mysql -L/lib
> -L/usr/X11R6/lib -lpng -lSM -lICE -pthread -pthread -lXi -lXrender
> -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext
> -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lglib-2.0 -lintl
> -liconv
> /usr/local/lib/libpoppler.so.2.0: warning: vsprintf() is often
> misused, please use vsnprintf()
> /usr/local/lib/libpoppler.so.2.0: warning: strcpy() is almost always
> misused, please use strlcpy()
> /usr/local/lib/libpoppler.so.2.0: warning: sprintf() is often misused,
> please use snprintf()
> /usr/X11R6/lib/libICE.so.8.1: warning: strcat() is almost always
> misused, please use strlcat()
> /usr/local/lib/libpoppler-qt4.so.0.0: undefined reference to
> `ArthurOutputDev::startDoc(XRef*)'
> /usr/local/lib/libpoppler-qt4.so.0.0: undefined reference to
> `ArthurOutputDev::~ArthurOutputDev [in-charge]()'
> /usr/local/lib/libpoppler-qt4.so.0.0: undefined reference to
> `ArthurOutputDev::ArthurOutputDev[in-charge](QPainter*)'
> collect2: ld returned 1 exit status
> *** Error code 1
>
> Stop in /home1/eddlocal/poppler (line 92 of Makefile).
> ---8<---
>
> The header for AuthurOutputDev is not installed for some reason, but
> that is not what this error suggests. This is a linker error.
>
> Can someone enlighten me?
You *are* aware that this is *exactly* what you would see if the
function was not present at all, right?
Better grep the source of poppler before assuming it's supposed to be
defined.
> PS also the poppler port is a bit out of date. Maybe this is fixed in
> newer versions.
-current has 0.5.4.
Joachim
--
PotD: multimedia/gstreamer-0.10/plugins-base,-main - multimedia
framework - plugins base