1835270 Members
2451 Online
110078 Solutions
New Discussion

Re: gcc and ghostpcl

 
Vanlerberghe Ignace
Occasional Contributor

gcc and ghostpcl

I am trying to compile ghostpcl 1.37a for 10.20
with gcc 2.95.2

Using make get me the following problems :dtkrI:/usr/ghostpcl >make -k
make -C main -f pcl6_gcc.mak # build PCL and PCLXL.
make[1]: Entering directory `/usr/ghostpcl/main'
mkdir ./obj
mkdir: cannot create ./obj: File exists
make[1]: [obj/ldgs.tr] Error 2 (ignored)
mkdir ./obj
mkdir: cannot create ./obj: File exists
make[1]: [obj/ldgs.tr] Error 2 (ignored)
make GCFLAGS='-Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings' FPU_TYPE='
' CONFIG='' FEATURE_DEVS=''./obj/'colimlib.dev './obj/'dps2lib.dev './obj/'path1
lib.dev './obj/'patlib.dev './obj/'psl2cs.dev './obj/'rld.dev './obj/'roplib.dev
'./obj/'ttflib.dev './obj/'cielib.dev './obj/'pipe.dev './obj/'htxlib.dev './o
bj/'devcmap.dev './obj/'gsnogc.dev './obj/'sdctd.dev './obj/'psl3lib.dev './obj/
'seprlib.dev './obj/'translib.dev './obj/'cidlib.dev './obj/'psf1lib.dev './obj/
'psf0lib.dev' XINCLUDE='-I/usr/local/X/include' XLIBDIRS='-L/usr/X11/lib -L/usr/X11R6/lib' X
LIBDIR='' XLIBS='Xt SM ICE Xext X11' DEVICE_DEVS=''./obj/'x11.dev './obj/'x11mono.dev './obj/'x11alpha.dev
'./obj/'x11cmyk.dev './obj/'djet500.dev './obj/'ljet4.dev './obj/'cljet5pr.dev '
./obj/'cljet5c.dev './obj/'bitcmyk.dev './obj/'pcxmono.dev './obj/'pcxgray.dev '
./obj/'pcxcmyk.dev './obj/'pswrite.dev './obj/'pdfwrite2.dev './obj/'pxlmono.dev
'./obj/'pxlcolor.dev './obj/'bmpmono.dev './obj/'bmpamono.dev './obj/'pbmraw.de
v './obj/'pgmraw.dev './obj/'ppmraw.dev './obj/'jpeg.dev './obj/'bbox.dev' STDLIBS=-lm -lpthread SYNC=posync BAND_LIST_STORAGE=memory BAND_LIST_COMPRESSOR=zlib ZSRCDIR=../gs/zlib ZGENDIR=./obj ZOBJDIR=./obj ZLIB_NAME= SHARE_ZLIB=0 JSRCDIR=../gs/jpeg JGENDIR=./obj JOBJDIR=./obj GLSRCDIR='../gs/src' GLGENDIR='./obj' GLOBJDIR='./obj' -f ../gs/src/ugcclib.mak ./obj/ld.tr ./obj/gsargs.o ./obj/gsfemu.o ./obj/gconfig.o ./obj/gscdefs.o
make[2]: Entering directory `/usr/ghostpcl/main'
gcc -g -O -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -I./obj -I
../gs/src -o ./obj/gp_psync.o -c ../gs/src/gp_psync.c
../gs/src/gp_psync.c: In function `gp_semaphore_open':
../gs/src/gp_psync.c:68: incompatible type for argument 2 of `pthread_mutex_init
'
../gs/src/gp_psync.c:70: incompatible type for argument 2 of `pthread_cond_init'
../gs/src/gp_psync.c: In function `gp_monitor_open':
../gs/src/gp_psync.c:143: incompatible type for argument 2 of `pthread_mutex_ini
t'
../gs/src/gp_psync.c: In function `gp_create_thread':
../gs/src/gp_psync.c:216: warning: implicit declaration of function `pthread_att
r_init'
../gs/src/gp_psync.c:217: warning: implicit declaration of function `pthread_att
r_setdetachstate'
../gs/src/gp_psync.c:219: incompatible type for argument 2 of `pthread_create'
make[2]: *** [obj/gp_psync.o] Error 1
make[2]: Target `obj/ld.tr' not remade because of errors.
make[2]: `obj/gsargs.o' is up to date.
make[2]: `obj/gsfemu.o' is up to date.
make[2]: Target `obj/gconfig.o' not remade because of errors.
make[2]: Target `obj/gscdefs.o' not remade because of errors.
make[2]: Leaving directory `/usr/ghostpcl/main'
make[1]: *** [obj/ldgs.tr] Error 2
cp -p ../pxl/pxbfont.psc ./obj/pxbfont.c
make[1]: Target `default' not remade because of errors.
make[1]: Leaving directory `/usr/ghostpcl/main'
make: *** [pcl6] Error 2

Any idea what can be wrong ?

Thanks

Ignace

1 REPLY 1
H.Merijn Brand (procura
Honored Contributor

Re: gcc and ghostpcl

Threading issue for HP-UX 10.20. Maybe my comments in perl's README.hpux help:

--8<---
=head2 Threaded Perl on HP-UX

It is possible to compile a version of threaded Perl on any version of
HP-UX before 10.30, but it is strongly suggested that you be running on
HP-UX 11.00 at least.

To compile Perl with threads, add -Dusethreads to the arguments of
Configure. Verify that the -D_POSIX_C_SOURCE=199506L compiler flag is
automatically added to the list of flags. Also make sure that -lpthread
is listed before -lc in the list of libraries to link Perl with. The
hints provided for HP-UX during Configure will try very hard to get
this right for you.

HP-UX versions before 10.30 require a separate installation of a POSIX
threads library package. Two examples are the HP DCE package, available
on "HP-UX Hardware Extensions 3.0, Install and Core OS, Release 10.20,
April 1999 (B3920-13941)" or the Freely available PTH package, available
though worldwide HP-UX mirrors of precompiled packages
(e.g. http://hpux.tn.tudelft.nl/hppd/hpux/)

If you are going to use the HP DCE package, the library used for threading
is /usr/lib/libcma.sl, but there have been multiple updates of that
library over time. Perl will build with the first version, but it
will not pass the test suite. Older Oracle versions might be a compelling
reason not to update that library, otherwise please find a newer version
in one of the following patches: PHSS_19739, PHSS_20608, or PHSS_23672

reformatted output:

d3:/usr/lib 106 > what libcma-*.1
libcma-00000.1:
HP DCE/9000 1.5 Module: libcma.sl (Export)
Date: Apr 29 1996 22:11:24
libcma-19739.1:
HP DCE/9000 1.5 PHSS_19739-40 Module: libcma.sl (Export)
Date: Sep 4 1999 01:59:07
libcma-20608.1:
HP DCE/9000 1.5 PHSS_20608 Module: libcma.1 (Export)
Date: Dec 8 1999 18:41:23
libcma-23672.1:
HP DCE/9000 1.5 PHSS_23672 Module: libcma.1 (Export)
Date: Apr 9 2001 10:01:06
d3:/usr/lib 107 >
-->8---
Enjoy, Have FUN! H.Merijn