> "Roberto Tempesti" <roberto.tempe
...@nospam.com> writes:
>> it's my first time with FreeBSD (8.2 on i386 platform). I'm trying to
>> build a "pdfbox" whit two applications:
>> a) GhostScript - to convert PDF files into PCL (HP language)
>> b) GhostPDL - to convert PCL files into PDF
>> no problem with GhostScript because installation by "pkg_add -r
>> ghostscript"
>> downloads and install binaries so no compilation is needed.
>> GhostPDL, however, is quite difficult for me because binaries are not
>> available. So I downloaded sources and tried building with "gmake".
>> After a long compilation time I got many messages e.g.:
>> /obj/pglabel.o(.text+0x1915): in funcion 'hpgl_process_buffer': undefined
>> reference to 'hypot'.
>> I'm not a "c" programmer but I know what 'hypot' means and watching
>> inside
>> the "pglabel.c" source I saw that there were these includes:
>> #include "math_.h"
>> #include "memory_.h"
>> #include "ctype_.h"
>> #include "stdio_.h"
>> I think they are customized versions of standard headers; by the way I
>> found
>> these header's versions in the directory:
>> /usr/local/src/ghostpdl-8.71/gs/base
>> but this directory it isn't in PATH environment's variable.
>> I tried to add this directory to PATH through "tcsh" shell without
>> success
>> (perhaps it's my fault).
>> How can I do ??? Can you help me with simple words??
> Have you tried using the ports collection? [Documented in the FreeBSD
> Handbook as well as "man ports"] It currently includes a port of pdfbox.
> If I am reading the dates correctly, you will need to update your ports
> tree (pdfbox has been added to the ports system since the release of
> 8.2). This, also, is covered in the Handbook.
>> I thank you in advance and pls don't be rude with this "old guy".
> I'm not clear on what qualifies as "old." I would have a grey beard
> myself, if I had grown it out this year.
>> P.S. Sorry for my terrible English
> If it's not your primary language, then I congratulate you on doing well
> with it. I cannot do as well in any language *other* than English.
> --
> Lowell Gilbert, embedded/networking software engineer
> http://be-well.ilk.org/~lowell/
Maybe it was a misunderstanding (my fault!). I don't try to compile "pdfbox"
Java library. "pdfbox" it's the name that I gave to the hardware box.
it was my "typo" mistake inside Makefile. I wrote +STFLIBS=-lm -lpthread
instead +STDLIBS=-lm -lpthread