Operating System - HP-UX
1821984 Members
3264 Online
109638 Solutions
New Discussion юеВ

Installing ghostscript 8.62 with all its dependencies.

 
SOLVED
Go to solution
Barakati
Frequent Advisor

Installing ghostscript 8.62 with all its dependencies.

Hi,

I try to install ghostscript on HP-UX 11.31.
from http://hpux.connect.org.uk/hppd/hpux/PostScript/ghostscript-8.62.0/

I started with its first depency package expat.
I get the following error.
I was able to run ./configure without any error. but when i run make i get following error.
#make
/bin/sh ./libtool --silent --mode=link cc -I./lib -I. -g -DHAVE_EXPAT_C
ONFIG_H -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/rea
dfilemap.o libexpat.la
(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler, ignored.
ld: Unknown input file type: "./.libs/libexpat.so"
Fatal error.
*** Error exit code 1

libexpat.so shows:
#file libexpat.so
libexpat.so: ELF-32 executable object file - IA64

Kindly help me for this issue.

57 REPLIES 57
Steven Schweda
Honored Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

> (Bundled) cc: [...]

If you're doing anything which requires a
C compiler, and if you don't have (or wish to
buy) the HP compiler product, then your first
step should probably be installing GCC. On
IA64, the bundled C compiler is insufficient
for many purposes. (On PA-RISC, it's
insufficient for _most_ purposes.)
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

I am installing ghostscript just to convert postscript to epson printer format.

however, i installed gcc.

prod# /usr/local/bin/gcc -v
Using built-in specs.
Target: ia64-hp-hpux11.31
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.2.3

but i did not put the gcc in PATH.
hence cc was used during ./configure.

but when i put gcc in PATH.
I get following error during ./configure

prod# ./configure
checking build system type... ia64-hp-hpux11.31
checking host system type... ia64-hp-hpux11.31
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

config.log:
...
.....

configure:2495: checking for C compiler default output file name
configure:2498: gcc conftest.c >&5
/usr/lib/hpux32/dld.so: Unable to find library '/usr/local/lib/hpux32/libintl.so
'.
gcc: Internal error: Killed (program as)
Please submit a full bug report.
See <> for instructions.
configure:2501: $? = 1
configure: failed program was:
| /* confdefs.h. */

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT "expat-bugs@li
#define PACKAGE_NAME "expat"
#define PACKAGE_STRING "expat 2.0.1"
#define PACKAGE_TARNAME "expat"
#define PACKAGE_VERSION "2.0.1"

configure: exit 77

Kindly suggest me a solution.
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

>(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler
>libexpat.so: ELF-32 executable object file - IA64

The bundled C compiler doesn't support -b. You created an executable rather than a shlib. You could of course just use ld -b to link.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

I was able to run ./configure successfully with gcc. what i did was mv all lib needed to hpux32 folder /usr/local/hpux32.
But i found there a file hpux32 object file.
so i renamed this file and created a folder hpux32 and put all the libraries here.

Then i run make.
#make
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -Wall -Wmi
ssing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xml
wf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libe
xpat.la
ld: Unknown input file type: "./.libs/libexpat.so"
Fatal error.
collect2: ld returned 1 exit status
*** Error exit code 1

kindly help me.
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

>ld: Unknown input file type: .libs/libexpat.so

Remove this file, was it bad from the first time?
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi Handy,

I am a oracle dba and new to this kind of installation.
Could you kindly show me exactly how can i do what you said in steps.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

My question was regarding reling with ld -b.
However i test removing ./.libs/libexpat.so.

This time:
dev2# make
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -Wall -Wmi
ssing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xml
wf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libe
xpat.la
gcc: ./.libs/libexpat.so: No such file or directory
*** Error exit code 1


Then I saw there are other versions of this file in the same directory i tried them as well but same.

dev2# ls
libexpat.a libexpat.lai libexpat.so.6.2
libexpat.la libexpat.so.6 libexpat.so.org
dev2# cp libexpat.so.6 libexpat.so


dev2# make
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -Wall -Wmi
ssing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xml
wf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libe
xpat.la
ld: Unknown input file type: "./.libs/libexpat.so"
Fatal error.
collect2: ld returned 1 exit status
*** Error exit code 1

Do you suggest me to re-extract it form the source? Kindly suggest me.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

Thanks you all.

I re-extracted expat and then ./configure and make went fine.

Now i will try to do the same for all dependencies for ghostscript and let you all know.

Thanks for your efforts.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

I successfully install all dependencies for ghostscript 8.62.

-expat-2.0.1.tar1
-fontconfig-2.6.0-hppa-11.31.depot
-freetype-2.3.7-ia64-11.31.depot
-gcc-4.2.3-ia64-11.31.depot
-jpeg-6b-ia64-11.31.depot
-libiconv-1.12-ia64-11.31.depot
-libpng-1.2.34-ia64-11.31.depot
-zlib-1.2.3-ia64-11.31.depot

Now I extracted the ghostscript8.62
now from ghostscript folder.

dev2# ./configure
sh: ./configure: Execute permission denied.

dev2# chmod 766 configure
dev2# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
.........
...........
............

checking for local jasper configure script... no
checking for local jasper autogen.sh script... configure: error:
Unable to find jasper/src/libjasper/include/jas_config.h,
or generate generate such a file for this system. You will
have to build one by hand, or configure, build and install
the jasper library separately.

You can also pass --without-jasper to configure to disable
JPEG 2000 PDF image support entirely.
#

When i try to run like below.

dev2# make install
Make: Don't know how to make install. Stop.
dev2# make
Make: No arguments or description file. Stop.

Thanks in advance.


Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

I have fix the above issue by using.

# ./configure --without-jasper

---configure went successfuly--

but make

dev2# make install
Make: Must be a separator on rules line 29. Stop.

Could anybody help me on this.
Steven Schweda
Honored Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

> Make: Must be a separator on rules line 29. Stop.

I know nothing, but if you're building modern
freeware, you may also need a "make" program
like the one everyone else uses, namely GNU
"make".

http://www.gnu.org/software/make/

http://hpux.connect.org.uk/hppd/hpux/Gnu/make-3.81/

The "make" programs supplied with many
commercial UNIX operating systems are old and
feeble. Many freeware developers expect a
"make" which has more features.

After installing it, either get it ahead of
the HP-UX "make" on your path, or make a
link like:

/usr/local/gmake -> /usr/local/make

(or wherever you install it)

and then use "gmake" instead of "make" in
your command(s).
Steven Schweda
Honored Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

Wait. Let me guess. You installed GNU
"make", but you did not put it in PATH.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

Thanks a lot for the suggestion.
I used gmake it did run but it is giving another error after running for atleast 2 mins.

#gmake install
.......
.......
.......
mkdir -p /usr/local/share
mkdir -p /usr/local/share/ghostscript
mkdir -p /usr/local/share/ghostscript/8.62
mkdir -p /usr/local/bin
./src/instcopy -c -m 755 ./bin/gs /usr/local/bin/gs
gmake: execvp: ./src/instcopy: Permission denied
gmake: *** [install-exec] Error 127

Is it something which i can ignore.
Kindly help on this.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

when i try testing gs ignoring above error.

dev2# gs /usr/local/share/ghostscript/8.62/examples/chess.ps
/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libexpat.sl
/usr/lib/dld.sl: No such file or directory
[HP ARIES32]: Core file for 32 bit PA-RISC application
[HP ARIES32]: /usr/local/bin/gs saved to /ghost/ghostscript-8.62/ghostscript-8
.62/core.gs.
Abort(coredump)

Kindly help me on this.
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

>gmake: execvp: ./src/instcopy: Permission denied

Is ./src/instcopy executable? What does "file ./src/instcopy" show?

>[HP ARIES32]: /usr/local/bin/gs saved to /ghost/ghostscript-8.62/ghostscript-8.62/core.gs.

This indicates you have a PA executable. That means you need a PA shlib libexpat.sl, which you must build on PA.
Steven Schweda
Honored Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

> make: execvp: ./src/instcopy: Permission denied

ls -l ./src/instcopy
file ./src/instcopy

"man chmod"?
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi,

Thanks a lot all of you there.
I have successfully executed the gs test.
instcopy needed to chmod.

Now i am trying to use gs.

Thanks again.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi all,

I did installed ghostscript sucessfully on one of the servers. But when i follow the same steps. It stucks.
all dependecies went fine.

ghostscript

#./configure (went fine)
# gmake install

................
..................
ld: (Warning) Unsatisfied symbol "_Unwind_DeleteException" in file /usr/
b/gcc/ia64-hp-hpux11.31/4.2.3/../../../libstdc++.so
9 warnings.
3 errors.
collect2: ld returned 1 exit status
gmake: *** [bin/gs] Error 1

Need your kind help again.
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

>ld: (Warning) Unsatisfied symbol "_Unwind_DeleteException" .../libstdc++.so

You need a newer libunwind. The latest is: PHSS_39102
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi Dennis,

Do you think the error is also due to this pathch set inavaiablity?

I see the error message you kindly showing is a warning not error and i get so many warnings like that. I did not post all warnings i get but only last few lines from gmake install (mention in above post).

Kindly help me in this regard.
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

>Do you think the error is also due to this patch set unavailability?

Actually you never listed the errors so that warning may be meaningless. I.e. you could have added the stab-me-in-the-back option +vshlibunsats.

The latest patch is always a good idea. But if you have that symbol, that's not the problem:
nm -px /usr/lib/hpux32/libunwind.so | grep _Unwind_DeleteException

>I did not post all warnings I get but only last few lines from gmake install

I need to see the errors.
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi Dennis,

Actually I am oracle dba and new to this kind of installation on unix (hp_ux) platform.
Could you please tell me how can i get errors i face because on console i just seea lenghthy list of warning and outher stuff( i think related to compilation) no error message.
Kindly ask me if more information is needed.

#nm -px /usr/lib/hpux32/libunwind.so | grep _Unwind_DeleteException
0x0403cd60 T _Unwind_DeleteException
Dennis Handly
Acclaimed Contributor

Re: Installing ghostscript 8.62 with all its dependencies.

>Could you please tell me how can i get errors i face because on console i just see a lengthy list of warning and other stuff (i think related to compilation) no error message.

Your link output said:
ld: (Warning) Unsatisfied symbol "_Unwind_DeleteException" in file .../libstdc++.so
9 warnings.
3 errors.

There should be 9 warnings and 3 errors.
If you see: ld: Unsatisfied symbol ...
This is an error if it doesn't say "(Warning)".
Barakati
Frequent Advisor

Re: Installing ghostscript 8.62 with all its dependencies.

Hi Dennis,

Thanks for your continous help.

Here is the output:

...........
.............ld: (Warning) Unsatisfied symbol "_Unwind_SetIP" in file /usr/local/lib/gcc/ia64
-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: (Warning) Unsatisfied symbol "_Unwind_SetGR" in file /usr/local/lib/gcc/ia64
-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: (Warning) Unsatisfied symbol "_Unwind_GetIP" in file /usr/local/lib/gcc/ia64
-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: (Warning) Unsatisfied symbol "_Unwind_GetGR" in file /usr/local/lib/gcc/ia64
-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: (Warning) Unsatisfied symbol "_Unwind_RaiseException" in file /usr/local/lib
/gcc/ia64-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: (Warning) Unsatisfied symbol "_Unwind_GetRegionStart" in file /usr/local/lib
/gcc/ia64-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: Unsatisfied symbol "libiconv_open" in file ./obj/gdevopvp.o
ld: (Warning) Unsatisfied symbol "_Unwind_Resume" in file /usr/local/lib/gcc/ia6
4-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: Unsatisfied symbol "libiconv_close" in file ./obj/gdevopvp.o
ld: (Warning) Unsatisfied symbol "_Unwind_GetLanguageSpecificData" in file /usr/
local/lib/gcc/ia64-hp-hpux11.31/4.2.3/../../../libstdc++.so
ld: Unsatisfied symbol "libiconv" in file ./obj/gdevopvp.o
ld: (Warning) Unsatisfied symbol "_Unwind_DeleteException" in file /usr/local/li
b/gcc/ia64-hp-hpux11.31/4.2.3/../../../libstdc++.so
9 warnings.
3 errors.
collect2: ld returned 1 exit status
gmake: *** [bin/gs] Error 1


Kindly help me.