Bug 689947 - Error while installing Ghostscript in HP-UX
Summary: Error while installing Ghostscript in HP-UX
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 0.00
Hardware: HP HP-UX
: P4 critical
Assignee: Hin-Tak Leung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 00:17 UTC by nivethitha
Modified: 2010-12-27 21:52 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Makefile (24.24 KB, text/plain)
2008-07-08 20:54 UTC, nivethitha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nivethitha 2008-07-08 00:17:18 UTC
hi,

I have a HP-UX 11.11. We are using GNU gcc, GNU make and still ghostscript will
not compile.
Here are the errors:


./src/mkromfs.c: In function 'inode_write':
./src/mkromfs.c:281: warning: pointer targets in passing argument 2 of
'put_bytes_padded' differ in signedness
/usr/ccs/bin/ld: Unsatisfied symbols:
mkstemp64 (first referenced in ./obj/gp_unifs.o) (code)
collect2: ld returned 1 exit status
*** Error exit code 1

This bug has been already logged for AIX and not yet solved i guess.
http://bugs.ghostscript.com/show_bug.cgi?id=689669

please help to solve this problem.

Thanks,
Comment 1 Ralph Giles 2008-07-08 17:03:24 UTC
Make sure HAVE_MKSTEMP64 isn't defined in the makefile?
Comment 2 nivethitha 2008-07-08 20:54:28 UTC
Created attachment 4187 [details]
Makefile

Please find the attached Makefile. HAVE_MKSTEMP64 is not declared anywhere in
the Makefile.
Comment 3 nivethitha 2008-07-09 23:49:37 UTC
Hi,

I could not find any solution for error : mkstemp64

Please help.
Please refer to the attached file.
Comment 4 nivethitha 2008-07-15 20:35:19 UTC
Hi,

Please confirm whether Ghostscript can be installed in HP-UX 11.11 and HP-UX 11.31 

I am not finding any solution for the issues i face while installing Ghost
script...... 

Please reply whether Ghostscript can be installed in HP-X 11.11 and HP-UX 11.31.


Thanks,
Comment 5 Ralph Giles 2008-07-16 19:02:09 UTC
You are correct that your Makefile doesn't define HAVE_MKSTEMP64. On the other
hand, the code won't reference it if it is not defined. You don't say which
version of Ghostscript you're trying to build, but this is the case with at
least 8.62 and the current development tree.

You might try removing -DHAVE_FILE64 from the makefile as a work around.
Comment 6 Hin-Tak Leung 2008-09-18 15:02:05 UTC
I believe ghostcript 8.5x works with HP-UX 11.11 and 11.31 - I tried recently -
a week or so ago - regarding bug 688184 (which I filed myself) on the HP
test-drive service - the problem in bug 688184 is no longer seen with newer HP-UX.

Unfortunately the HP test-drive service is being withdrawn end of this month, so
it would be difficult to fix any HP-UX-specific problems (AFAIK, the ghostscript
folks don't have access to an HP-UX machines), if any such problems don't get
fixed in two weeks. There are a few small HP-UX specific problems.

Would you consider granting remote access to some of your machines to some of
ghostscript's developers, if one of them/us agree to take this on?
Comment 7 Hin-Tak Leung 2008-09-30 16:39:44 UTC
gs 8.63 can be installed on HP-UX 11.31 with the HP C compiler, if you skip a 
few of the recently merged drivers. Specifically, this combination works:

(1) HP C compiler:
cpp.ansi: HP92453-01 B.11.31.01 HP C Preprocessor (ANSI)
ccom: HP92453-01 B.11.X.36086-36089-36092.GP HP C Compiler
/usr/ccs/bin/ld: 92453-07 linker linker ld B.11.60 070209

(2) HP-UX 11.31:
> uname -a
HP-UX td191 B.11.31 U 9000/800 3397116299 unlimited-user license

(3) configure ghostscript with
   ./configure --with-drivers=FILES,APPLE,BROTHER,EPSON,HP,IBM,LEXMARK,OKI,PCLXL
(i.e. without JAPAN and CANON)

These 5 files (a few from JAPAN, a few from CANON) 
contrib/japanese/gdevespg.c,
contrib/japanese/gdevnpdl.c,
contrib/japanese/gdevrpdl.c,
contrib/lips4/gdevl4r.c,
contrib/opvp/gdevopvp.c
   won't build on HP-UX; so if you desparately need some CANON printers
(unlikely you need the JAPAN ones), try removing "lbp8" "lips3" from the CANON
list in ./configure . 

Unfortunately today is the last day of the HP testdrive service (Any time now
I expect to be kicked off) - I wish it could stay for a little bit.
HP-UX-specific issues are unlikely to be fixed without access to such machines. 
Comment 8 Hin-Tak Leung 2008-09-30 16:45:35 UTC
Oh, I am just confirming the bug because it is tricky to build HP-UX (11.31). HP
test drive doesn't have gcc. (and they don't have a HP-UX 11.11 machine any
more, and today is the last day of the provision of 11.31 machine).
Comment 9 Hin-Tak Leung 2010-05-02 03:13:10 UTC
Grabbing a Ralph's bugs.
Comment 10 Hin-Tak Leung 2010-05-14 08:19:59 UTC
Please try the patch set and instruction in
http://bugs.ghostscript.com/show_bug.cgi?id=688184#c15

and do "./configure && make" with ghostscript 8.71 to see if it works. (and not "ln -s base/unix-gcc.mak make; make " or anything that involves dealing with base/*.mak)
Comment 11 Hin-Tak Leung 2010-12-27 21:52:58 UTC
Since another user is filing runtime issue on HP-UX with the 9.0 release (Bug
691853), it would appear that building on HP-UX is no longer a problem.