[bug-pcl] Problem compiling GhostPCL on Tru64

Kim Berg Hansen kbh at thansen.dk
Thu Aug 11 01:51:44 PDT 2005


Hiya
 
I have a problem compiling GhostPCL 1.41 on Compaq Tru64 UNIX V5.1B
(Rev. 2650)
 
I realize there's no actual support, but I hope I can get at least a few
pointers that might get me further along :-)
 
Here's step by step what I have done trying to compile:
 

- Step 1 -
 
Edit Makefile to use 'gmake' instead of 'make'
 
ds1.thansen.dk# gmake fonts
ds1.thansen.dk# gmake product
 
First error:
 
  In file included from ../gs/src/gp_psync.c:17:
  /usr/include/pthread.h:326:4: #error "Please compile the module
including pthread.h with -pthread"
  gmake[2]: *** [obj/gp_psync.o] Error 1
  gmake[1]: *** [obj/ldgs.tr] Error 2
 
So I avoid threading and X-devices by defining CYGWIN
(I don't need X-devices anyway - I just want to use GhostPCL to convert
a PCL file to a PDF file)
 
- Step 2 -
 
ds1.thansen.dk# gmake clean
ds1.thansen.dk# gmake fonts
ds1.thansen.dk# gmake CYGWIN=TRUE
 
Second error:
 
  ../gs/src/gsparam.c:189:57: macro "return_error" requires 2 arguments,
but only 1 given
  ../gs/src/gsparam.c: In function `param_coerce_typed':
  ../gs/src/gsparam.c:189: error: `return_error' undeclared (first use
in this function)
  ../gs/src/gsparam.c:189: error: (Each undeclared identifier is
reported only once
  ../gs/src/gsparam.c:189: error: for each function it appears in.)
  gmake[2]: *** [obj/gsparam.o] Error 1
  gmake[1]: *** [obj/ldgs.tr] Error 2
 
View the gsparam.c file
Found that return_error seemed to need 'mem' as first parameter
 
- Step 3 -
 
Edit file gs/src/gsparam.c
Change line 189:
From: return_error(gs_error_rangecheck);
To  : return_error(mem, gs_error_rangecheck);
 
ds1.thansen.dk# gmake clean
ds1.thansen.dk# gmake fonts
ds1.thansen.dk# gmake CYGWIN=TRUE
 
Third error:
 
  Can't locate file for: -ldl
  collect2: ld returned 1 exit status
  gmake[1]: *** [obj/pcl6] Error 1
  gmake: *** [product] Error 2
 
Found out that there's no libdl.so in Tru64
Instead the stub-functions of libdl.so is located in libc.so
 
- Step 4 -
 
Edit file main/pcl6_gcc.mak
Change line 152:
From: STDLIBS=-lm -ldl
To  : -lm -lc
 
ds1.thansen.dk# gmake clean
ds1.thansen.dk# gmake fonts
ds1.thansen.dk# gmake CYGWIN=TRUE
 
This time compilation finishes:
 
  echo Done.
  Done.
  gmake[1]: Leaving directory
`/usr/users/tekniker/ghost/ghostpcl_1.41/main'
 
But all attempts to use pcl6 fails:
 
ds1.thansen.dk# gmake test
cd tools; ../main/obj/pcl6 -dTextAlphaBits=4 owl.pcl tiger.px3 # test
with PCL
FAIL freeing wild pointer freed address 40096bc0 not found
FAIL freeing wild pointer freed address 400943a0 not found
/bin/sh: 711547 Memory fault - core dumped
gmake: *** [test] Error 139
 
ds1.thansen.dk# main/obj/pcl6
FAIL freeing wild pointer freed address 40096bc0 not found
FAIL freeing wild pointer freed address 400943a0 not found
Memory fault(coredump)
 

Perhaps it would work compiling with cc instead of gcc ?
 
- Step 5 -
 
ds1.thansen.dk# gmake clean
ds1.thansen.dk# gmake fonts
ds1.thansen.dk# gmake CYGWIN=TRUE CC_=cc CCLD=cc \ CCAUX=cc CFLAGS=-g
CC_NO_WARN=cc GCFLAGS=
 
Again compilation finishes:
 
  echo Done.
  Done.
  gmake[1]: Leaving directory
`/usr/users/tekniker/ghost/ghostpcl_1.41/main'
 
But same memory faults occur :-(
 

I have a couple of ideas of possible problems:
- It could either be that my editing of gsparam.c is not correct
- Or it could be that using libc instead of libdl is bad
 
Anyone have an idea how I can get it to work?
 
Any help would be much appreciated - much thanks in advance

 
Med venlig hilsen / Best regards
 
T. Hansen Gruppen A/S
 
 
Kim Berg Hansen
Chef-udvikler / Senior System Developer
 
web: www.thansen.dk <http://www.thansen.dk/> 
e-mail: kbh at thansen.dk
 
Tlf: +45 63 41 69 00
Fax: +45 63 41 69 90
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ghostscript.com/pipermail/bug-pcl/attachments/20050811/61945d57/attachment.html


More information about the bug-pcl mailing list