Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compile problem ??

6 views
Skip to first unread message

Roberto Tempesti

unread,
Jan 18, 2012, 5:47:18 AM1/18/12
to
Hi all,

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??

I thank you in advance and pls don't be rude with this "old guy".

P.S. Sorry for my terrible English


Lowell Gilbert

unread,
Jan 20, 2012, 8:54:18 PM1/20/12
to
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/

Roberto Tempesti

unread,
Jan 23, 2012, 6:12:17 AM1/23/12
to

"Lowell Gilbert" <lgus...@be-well.ilk.org> ha scritto nel messaggio
news:448vl1l...@lowell-desk.lan...
Hi Gilbert,

thank you for your answer.

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.

I tried to compile GhostPDL that doesn't have a ports but only sources to be
compile.

However i discovery where is the error:

it was my "typo" mistake inside Makefile. I wrote +STFLIBS=-lm -lpthread
instead +STDLIBS=-lm -lpthread


Now it works!

Thank you


0 new messages