Discussion:
[gs-bugs] [Bug 698669] - Ghostscript - problem with command make install
b***@artifex.com
2017-10-17 19:22:22 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

Bug ID: 698669
Summary: problem with command make install
Product: Ghostscript
Version: 9.21
Hardware: HP
OS: HP-UX
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: Build Process
Assignee: ***@artifex.com
Reporter: ***@hydro.qc.ca
QA Contact: gs-***@ghostscript.com
Word Size: ---

Created attachment 14392
--> http://bugs.ghostscript.com/attachment.cgi?id=14392&action=edit
config.log -2017-10-17

Hi


This is the continuation of the bug Bug 698585 - make failed - Bad Character

We are on HP-UX B.11.31 U ia64

Can you help me with those errors?

Also, can you tell with if I can use any user or I should use the root user for
building the Ghostscript ?


We tried the command as suggested in the Bug 698585
./configure CFLAGS="-Dinline=\"\"" --prefix=/usr/ghostscript
--without-gnu-make

The configuration finish with suces, but when I looked the config.log, I saw
some errors and warning. I don't know if these errors could be ignore. I join
the config.log, so you can see

When I executed the make command, it finished with 3 warning and I still have
the "warning 922: "-O" is unsupported in the bundled compiler"


make warning(messages in the end of the execution)
=================================================

Total %rom% structure size is 8729536 bytes.
cp ./obj/gsromfs1_.c ./obj/gsromfs1.c
cc -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_FONTCONFIG
-DHAVE_SETLOCALE -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_PREAD_PWRITE=1
-DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O -DHAVE_STDINT_H=1
-DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long"
-D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -Dinline="" -I./obj -I./base
-I./devices -DWHICH_CMS="lcms2" -o ./obj/gsromfs1.o -c ./obj/gsromfs1.c
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler,
ignored.
./obj/aux/echogs -w ./obj/ldt.tr -n - cc -o ./bin/gs
./obj/aux/echogs -a ./obj/ldt.tr -n -s ./obj/gsromfs1.o ./obj/gs.o -s
cat ./obj/gsld.tr >> ./obj/ldt.tr
./obj/aux/echogs -a ./obj/ldt.tr -s - -lm -ldl -L/opt/gtk2.6/lib
-lfontconfig -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
PSI_FEATURE_DEVS= FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1=
DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./obj/ldt.tr
ld: (Warning) Unsatisfied symbol "libiconv_open" in file
/opt/gtk2.6/lib/libfontconfig.so
ld: (Warning) Unsatisfied symbol "libiconv_close" in file
/opt/gtk2.6/lib/libfontconfig.so
ld: (Warning) Unsatisfied symbol "libiconv" in file
/opt/gtk2.6/lib/libfontconfig.so
3 warnings.



When I executed the make install command, it stopped and I had with *** Error
exit code 1. You see the error below


make install error (message in the end of the execution)
=======================================================


ld: (Warning) Unsatisfied symbol "libiconv_open" in file
/opt/gtk2.6/lib/libfontconfig.so
ld: (Warning) Unsatisfied symbol "libiconv_close" in file
/opt/gtk2.6/lib/libfontconfig.so
ld: (Warning) Unsatisfied symbol "libiconv" in file
/opt/gtk2.6/lib/libfontconfig.so
3 warnings.
mkdir -p /usr/ghostscript/bin
mkdir -p /usr/ghostscript/share
mkdir -p /usr/ghostscript/share/ghostscript
mkdir -p /usr/ghostscript/share/ghostscript/9.21
./base/instcopy -c -m 755 ./bin/gs /usr/ghostscript/bin/gs
mkdir -p /usr/ghostscript/share
mkdir -p /usr/ghostscript/share/ghostscript
mkdir -p /usr/ghostscript/share/ghostscript/9.21
mkdir -p /usr/ghostscript/bin
/bin/sh -c 'for f in \
gsbj gsdj gsdj500 gslj gslp gsnd \
bdftops dvipdf eps2eps font2c \
pdf2dsc pdf2ps pf2afm pfbtopfa pphs printafm \
ps2ascii ps2epsi ps2pdf ps2pdf12 ps2pdf13 ps2pdf14 ps2pdfwr ps2ps
ps2ps2 \
wftopfa fixmswrd.pl lprsetup.sh pj-gs.sh pv.sh sysvlp.sh unix-lpr.sh ;\
do if ( test -f ./lib/$f ); then \
(cat ./lib/$f | sed -e "s/GS_EXECUTABLE=gs/GS_EXECUTABLE=gs/" >
./obj/$f); \
./base/instcopy -c -m 755 ./obj/$f /usr/ghostscript/bin/$f; \
fi;\
done'
mkdir -p /usr/ghostscript/share
mkdir -p /usr/ghostscript/share/ghostscript
mkdir -p /usr/ghostscript/share/ghostscript/9.21
mkdir -p /usr/ghostscript/share/ghostscript/9.21/lib
/bin/sh -c 'for f in \
Fontmap.GS \
ht_ccsto.ps \
acctest.ps addxchar.ps align.ps bdftops.ps \
caption.ps cid2code.ps decrypt.ps docie.ps \
errpage.ps font2c.ps font2pcl.ps gslp.ps gsnup.ps image-qa.ps impath.ps
\
jispaper.ps landscap.ps level1.ps lines.ps markhint.ps markpath.ps \
mkcidfm.ps PDFA_def.ps PDFX_def.ps \
packfile.ps pcharstr.ps pf2afm.ps pfbtopfa.ps ppath.ps \
pphs.ps \
prfont.ps printafm.ps \
ps2ai.ps ps2ascii.ps ps2epsi.ps quit.ps rollconv.ps \
showchar.ps showpage.ps stcinfo.ps stcolor.ps stocht.ps \
traceimg.ps traceop.ps type1enc.ps type1ops.ps uninfo.ps unprot.ps \
viewcmyk.ps viewgif.ps viewjpeg.ps viewmiff.ps \
viewpcx.ps viewpbm.ps viewps2a.ps \
winmaps.ps wftopfa.ps wrfont.ps zeroline.ps \
pdf2dsc.ps ;\
do if ( test -f ./lib/$f ); then ./base/instcopy -c -m 644 ./lib/$f
/usr/ghostscript/share/ghostscript/9.21/lib; fi;\
done'
/bin/sh -c 'for f in ./lib/gs_*.ps ./lib/pdf*.ps;\
do ./base/instcopy -c -m 644 $f
/usr/ghostscript/share/ghostscript/9.21/lib ;\
done'
/bin/sh -c 'for f in ./lib/*.ppd ./lib/*.rpd ./lib/*.upp ./lib/*.xbm
./lib/*.xpm;\
do ./base/instcopy -c -m 644 $f
/usr/ghostscript/share/ghostscript/9.21/lib ;\
done'
mkdir -p /usr/ghostscript/share/ghostscript/9.21/doc
/bin/sh -c 'for f in API.htm C-style.htm Develop.htm
GS9_Color_Management.pdf Helpers.htm History4.htm History9.htm Lib.htm
Ps2pdf.htm Readme.htm Use.htm AUTHORS Deprecated.htm Devistory5.htm index.html
Make.htm Ps2ps2.htm Release.htm WhatIsGS.htm Changes.htm Details8.htm DLL.htm
gs.css History1.htm History6.htm Install.htm News.htm pscet_status.txt
Source.htm Xfondoc.el History2.htm History7.htm Issues.htm Projects.htm
Psfiles.htm thirdparty.htm COPYING Details.htm Fonts.htm gs-vms.hlp
History3.htm History8.htm Language.htm Ps2epsi.htm Ps-style.ht
do if ( test -f ./lib/../doc/$f ); then ./base/instcopy -c -m 644
./lib/../doc/$f /usr/ghostscript/share/ghostscript/9.21/doc; fi;\
done'
/bin/sh -c 'test -d /usr/ghostscript/share/man || mkdir -p
/usr/ghostscript/share/man'
/bin/sh -c 'for d in . de ;\
do man1dir=/usr/ghostscript/share/man/$d/man1 ;\
( test -d $man1dir || mkdir -p $man1dir ) ;\
for f in ./lib/../man/$d/*.1 ;\
do ./base/instcopy -c -m 644 $f $man1dir ;\
if ( test -f $man1dir/ps2ps.1 ) ;\
then for f in eps2eps ;\
do ( cd $man1dir; rm -f $f.1 ;\
ln -s ps2ps.1 $f.1 ) ;\
done ;\
fi ;\
if ( test -f $man1dir/ps2pdf.1 ) ;\
then for f in ps2pdf12 ps2pdf13 ps2pdf14 ;\
do ( cd $man1dir; rm -f $f.1 ;\
ln -s ps2pdf.1 $f.1 ) ;\
done ;\
fi ;\
if ( test -f $man1dir/gslp.1 ) ;\
then for f in gsbj gsdj gsdj500 gslj ;\
do ( cd $man1dir; rm -f $f.1 ;\
ln -s gslp.1 $f.1 ) ;\
done ;\
fi ;\
done ;\
done'
mkdir -p /usr/ghostscript/share/ghostscript/9.21/examples
for f in \
alphabet.ps chess.ps colorcir.ps escher.ps grayalph.ps
snowflak.ps \
text_graph_image_cmyk_rgb.pdf transparency_example.ps
waterfal.ps \
annots.pdf doretree.ps golfer.eps ridt91.eps
text_graphic_image.pdf \
tiger.eps vasarely.ps;\
do ./base/instcopy -c -m 644 ./lib/../examples/$f
/usr/ghostscript/share/ghostscript/9.21/examples ;\
done
Usage: instcopy -c [-m <mode>] <srcfile> (<dstdir>|<dstfile>)
*** Error exit code 1


Stop.


Thank's
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-18 10:59:29 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #1 from Chris Liddell (chrisl) <***@artifex.com> ---
config.log will always contain warnings and errors - the way configure works is
to try stuff and see if it works or fails.

It's strange that configure finds the iconv functionality, but it's that which
fails during linking - although it doesn't fail in our code.

Frankly, unless you really it, I'd drop fontconfig from the build.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-18 14:25:57 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #2 from ***@hydro.qc.ca ---
Hi,

I'm new with the Ghostscript utility.

Can you tell me the command or option I should add to drop the fontconfig from
the build ?

Also, can you tell with if I can use any user or I should use the root user for
building the Ghostscript ?

Thank's you
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-18 15:01:01 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #3 from Chris Liddell (chrisl) <***@artifex.com> ---
(In reply to raymond.isabelle from comment #2)
Post by b***@artifex.com
Hi,
I'm new with the Ghostscript utility.
Can you tell me the command or option I should add to drop the fontconfig
from the build ?
./configure --help

lists the options available.

In this case:

./configure CFLAGS="-Dinline=\"\"" --prefix=/usr/ghostscript --without-gnu-make
--disable-fontconfig
Post by b***@artifex.com
Also, can you tell with if I can use any user or I should use the root user
for building the Ghostscript ?
For *building*, any user ought to be able to do so. For installing, that
depends on where you want to install it, and whether the user can write to that
location. Usually, places like /usr are only writable by those with super user
rights.

It is normal to do the build as a normal user, and do the install as super
user, but it is totally dependent on the rights and security configuration of
your system.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-18 15:45:40 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #4 from ***@hydro.qc.ca ---
Hi,

I run the command

./configure CFLAGS="-Dinline=\"\"" --prefix=/usr/ghostscript --without-gnu-make
--disable-fontconfig

Unfortunately, the make install finished with the same error

What do you suggest ?

ln -s gslp.1 $f.1 ) ;\
do ./base/instcopy -c -m 644 ./lib/../examples/$f
/usr/ghostscript/share/ghostscript/9.21/examples ;\
done
Usage: instcopy -c [-m <mode>] <srcfile> (<dstdir>|<dstfile>)
*** Error exit code 1

Stop.

Thank you
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-18 16:00:31 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #5 from Chris Liddell (chrisl) <***@artifex.com> ---
I've no idea why it's triggering an error for you, and not on any other system,
but.....

If you look in the file base/unixinst.mak around line 204, there is a list of
files. "chess.ps" has not been included for some time, due to copyright/license
issues. If you remove the reference to chess.ps in base/unixinst.mak, that
might make it work.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-18 19:56:37 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #6 from ***@hydro.qc.ca ---
Hi

I removed chess.ps in base/unixinst.mak. The make install command finished. The
correction is fine, but when I executed a command like gs, I got a coredump

What can I do to give more information. Should I install again with the debug
switch ?

[/usr/ghostscript/bin]# gs -dSAFER -dBATCH /tmp/isa/Vldb.pdf
GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Bus error(coredump)

Thank you
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-18 20:19:25 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #7 from Chris Liddell (chrisl) <***@artifex.com> ---
(In reply to raymond.isabelle from comment #6)
Post by b***@artifex.com
Hi
I removed chess.ps in base/unixinst.mak. The make install command finished.
The correction is fine, but when I executed a command like gs, I got a
coredump
What can I do to give more information. Should I install again with the
debug switch ?
[/usr/ghostscript/bin]# gs -dSAFER -dBATCH /tmp/isa/Vldb.pdf
GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Bus error(coredump)
Thank you
The only other thing I can think of is to try adding:
--with-memory-alignment=64

to your configure command line, and build again (making sure to "make clean",
or start with a fresh source tree).

Otherwise, "make debug" will give you a debug executable which you can run in a
debugger.

Since we don't have access to an HP-UX box, I can't offer much more guidance,
I'm afraid.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-19 13:30:22 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #8 from ***@hydro.qc.ca ---
Hi,

Thank for answering quickly

Sorry, for an ohter question.

The --with-memory-alignment=64 you sugested, the possible value are 4 or 8 for
this parameter. Which one should I chose ?


checking for setenv... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
configure: error: 4 and 8 are the only valid values for
"--with-memory-alignment"


Thank you
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-19 13:46:17 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #9 from Chris Liddell (chrisl) <***@artifex.com> ---
(In reply to raymond.isabelle from comment #8)
Post by b***@artifex.com
Hi,
Thank for answering quickly
Sorry, for an ohter question.
The --with-memory-alignment=64 you sugested, the possible value are 4 or 8
for this parameter. Which one should I chose ?
checking for setenv... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
configure: error: 4 and 8 are the only valid values for
"--with-memory-alignment"
Thank you
Oops, sorry should be "--with-memory-alignment=8"

I forgot it's bytes not bits.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-19 15:59:32 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #10 from ***@hydro.qc.ca ---
Hi

Thank for your helping.
It works correctly.
There no coredump anymore.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-19 19:22:36 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

***@hydro.qc.ca changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-19 21:09:03 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #11 from Chris Liddell (chrisl) <***@artifex.com> ---
Thanks for confirming.

Could you do me a favour, and post the output of the "uname" command, and the
"uname -a" commands, here? With that, I can look into setting the alignment
value automatically for HP-UX.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-19 21:28:09 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #12 from ***@hydro.qc.ca ---
uname
HP-UX

uname -a
HP-UX hxxxxxxx B.11.31 U ia64 0330822220 unlimited-user license


note: hxxxxxxx is the hostname
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-20 06:13:39 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #13 from Chris Liddell (chrisl) <***@artifex.com> ---
(In reply to raymond.isabelle from comment #12)
Post by b***@artifex.com
uname
HP-UX
uname -a
HP-UX hxxxxxxx B.11.31 U ia64 0330822220 unlimited-user license
note: hxxxxxxx is the hostname
Thanks, I'll see if I can make configure set this automatically.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-21 23:09:19 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

Hin-Tak Leung <***@users.sourceforge.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@users.sourceforge.net

--- Comment #14 from Hin-Tak Leung <***@users.sourceforge.net> ---
(In reply to raymond.isabelle from comment #0)
...
Post by b***@artifex.com
ld: (Warning) Unsatisfied symbol "libiconv_open" in file
/opt/gtk2.6/lib/libfontconfig.so
ld: (Warning) Unsatisfied symbol "libiconv_close" in file
/opt/gtk2.6/lib/libfontconfig.so
ld: (Warning) Unsatisfied symbol "libiconv" in file
/opt/gtk2.6/lib/libfontconfig.so
3 warnings.
...

FWIW, since your fontconfig is in an unusual location, I suspect your libiconv
is in an unusual location also . Not that it matters now, as you have switched
to --disable-fontconfig .
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-25 14:01:47 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #15 from ***@hydro.qc.ca ---
Hi

Thank you for the answer. I will check the location of the font libraries in
case we need them
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-25 20:31:59 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #16 from ***@hydro.qc.ca ---
Hi

I have a question.

In the Hpexstream installation guide, it is mentionned to set these variable
below

______________________________________________________________

Add the directory where Ghostscript resides to your PATH.
For example, export
PATH=$PATH:/ghostscript_dir

Set the GS_LIB environment variable to
<gsdir>/gsfonts:<gsdir>/gslib
where
<gsdir>
is your Ghostscript directory.

____________________________________________________________________________

My question is about the GS_LIB variable. We don't have the <gsdir>/gslib and
<gsdir>/gsfont directories. I only have the <gsdir>/bin and <gsdir>/share
directories.

Should I have to set this GS_LIB variable or which directory I should set for
this variable


Thank you
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-30 19:23:25 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698669

--- Comment #17 from ***@hydro.qc.ca ---
Hi,

I just want to know if you received my question or you have any news or should
I open a new incident for the question ?

Thank you
--
You are receiving this mail because:
You are the QA Contact for the bug.
Loading...