pdflib problems

paul van den bergen pvandenbergen at swin.edu.au
Tue Aug 26 19:40:29 PDT 2003


Hey all,

I've been repeatedly encountering problems with pdflib requiring programs, 
particularly gnuplot and grace. (for FreeBSD 4.8)

gnuplot I eventually got sorted - cvsup'ing the ports helped, but grace is 
still looking for pdflib4 instead of pdflib5.

the problem arises because pdflib4 is no longer downloadable and is hence 
marked as broken.  messing with the math/grace/Makefile and changing the line
pdf.4:${PORTSDIR}/print/pdflib4
to
pdf.5:${PORTSDIR}/print/pdflib

I could get it to correctly check and install, untill it started to compile 
and encountered a undefined variable... *sigh* 
e.g.

plotone.o: In function `do_hardcopy':
plotone.o(.text+0x1b7): warning: tmpnam() possibly used unsafely; consider 
using mkstemp()
t1fonts.o: In function `init_t1':
t1fonts.o(.text+0xaa): undefined reference to `T1_GetNoFonts'
fontwin.o: In function `update_fonttool_cb':
fontwin.o(.text+0x5f9): undefined reference to `T1_CheckForFontID'
gmake[1]: *** [xmgrace] Error 1
gmake[1]: Leaving directory `/usr/ports/math/grace/work/grace-5.1.12/src'
gmake: *** [subdirs] Error 1
*** Error code 2

Stop in /usr/ports/math/grace.

still a relative niovice wrt FreeBSD, I was stumped at this point... any 
suggestions?

BTW, doing 
pkg_add -r grace 
gives
pkg_add: warning: package 'grace-5.1.10' requires 'pdflib-4.0.3', but 
'pdflib-5.0.1' is installed
Not surprisingly, running grace after results in
/usr/libexec/ld-elf.so.1: Shared object "libpdf.so.4" not found

so the error also exists in the precompiled package

(aside: when one does a pkg_add -r, why doesn't the tarball get archived for 
possible future use?)

-- 
Dr Paul van den Bergen
Centre for Advanced Internet Architectures
caia.swin.edu.au
pvandenbergen at swin.edu.au
IM:bulwynkl2002
"And some run up hill and down dale, knapping the chucky stones 
to pieces wi' hammers, like so many road makers run daft. 
They say it is to see how the world was made."
Sir Walter Scott, St. Ronan's Well 1824 



More information about the freebsd-bugs mailing list