Compiling ghostscript v 9.21


 
Thread Tools Search this Thread
Top Forums Programming Compiling ghostscript v 9.21
# 1  
Old 08-04-2017
Compiling ghostscript v 9.21

I ran configure, and then make, using the SCO 6.0.0 cc compiler.
Code:
-bash-3.2# make                                                                 
UX:make: ERROR: bad character | (octal 174), line 277 (bu40)UX:make: ERROR: Mess
age not found!!                                                                 
.

Is this error in the Makefile, as line 277 of it appears to be correct,
Code:
272  # Choose shared or compiled in libjbig2dec and source location         
273  # JBIG2_LIB=jbig2dec                                                   
274  JBIG2_LIB=jbig2dec                                                     
275  SHARE_JBIG2=0                                                          
276  JBIG2SRCDIR=./jbig2dec                                                 
277  JBIG2_CFLAGS=-DHAVE_STDINT_H=1                                         
278                                                                         
279  # uncomment the following three lines and one of the last two to

Unless the comment lines in the Makefile are discarded.
# 2  
Old 08-05-2017
Hmmmmm.......well jgt, with your enormous contribution to this forum you would have already tried the obvious so this is probably just 'second opinion' rather than a solution.

Octal 174 is the pipe '|' character in most ascii sets, hex 7C, dec 124.

Try using a suitable (hex) editor to find any instances of 7C in the file and whether it finds one on line 277.

Make a backup copy of the file and then delete line 277 and retype it in manually to ensure any hidden/unprintable characters are removed. Do you get the same error? If a hidden character has been removed I would at least expect a different error even if it still doesn't work.

Any make/compiler that reports wrong line numbers by omitting comment lines is about as much use as a chocolate teapot so my opinion is that the error line number would be correct (unless it's inserting some other source file and including the line count in that).

If you look at the code (you didn't post the whole file) do you reckon that the '-' after the '=' is correct? I guess that it's just creating a switch option on a command line.

Last edited by hicksd8; 08-05-2017 at 06:24 AM..
# 3  
Old 08-05-2017
Hi jgt,
Assuming the line numbers are correct, one might guess that there is a <vertical-bar> character (AKA pipe symbol) followed by a <backspace> on line 277 and those two characters are being replaced by whatever character follows them (making the <vertical-bar> invisible when you print the line to a non-hardcopy device).

Hi hicksd8,
In a makefile, the CFLAGS macro is a list of command line options to be fed to the C compiler. Presumably, JBIG2_CFLAGS is a macro in this makefile that will be assigned to CFLAGS or used in addition to it when the target being built is JBIG2. (And the C compiler command line option -DHAVE_STDINT_H=1 initializes the C macro HAVE_STDINT_H to have the value 1).
This User Gave Thanks to Don Cragun For This Post:
# 4  
Old 08-05-2017
@Don.....Thanks for the clarification. I thought that if you specify CFLAGS without a leading '-' that the system would insert one automatically on the compiler command line. Therefore, actually supplying a '-' at the start of CFLAGS would put two ('--<whatever>') on the compiler command line. Anyway, got it!
# 5  
Old 08-06-2017
I put another hour or so into it. I changed the PATH so that gcc 2.95 was ahead of the SCO cc, and used gnu make instead of SCO and that eliminated the error with the |. However, a new problem appeared. It seems that the new version of Ghostscript requires a version of gcc newer than 2.95.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ghostscript on SCO 5.0.7

I am attempting to update to ghostscript version 8.54 on my SCO 5.0.7 box. When I run ./configure, I get the following error configure: error: no acceptable C compiler found in $PATH Could someone please help me? (0 Replies)
Discussion started by: kberger82
0 Replies

2. UNIX for Dummies Questions & Answers

Ghostscript

I am trying to use Ghostscript oin AIX to print pdf's and it seems I have downloaded it and all dependencys fine - install went fine, when I type any gs commnad except gs -h it just hangs..Here is what it says before the hang: GNU Ghostscript 5.50 (2000-2-13) Copyright (C) 1998 Aladdin... (6 Replies)
Discussion started by: capeme
6 Replies

3. HP-UX

Ghostscript Errpr

Hi everyone, I'm new here but I hope there's someone who can help me with this error when running ghostscript/gs: /usr/lib/dld.sl: Unresolved symbol: jpeg_resync_to_restart (code) from gs Abort(coredump) I've managed to install Ghostscript 8.56 including all dependencies successfully... (0 Replies)
Discussion started by: bgail
0 Replies

4. UNIX for Dummies Questions & Answers

Ghostscript Question

I need to know how to convert 132 columns text file to Postcript by using ghostscript. What I want to do is to fax a 132 columns report (text file) with efax and I was told to use ghostscript to change the type and szie of font so the lines will not wrap. Thanks ;) (1 Reply)
Discussion started by: falcon2460
1 Replies

5. UNIX for Dummies Questions & Answers

Perl and ghostscript

Hi all I am using HPUX11.0 i want to install perl 5.6.0 and ghostscript 5.03.. can anyone help me to get it download from any free ftp or http link... i searched perl.com and ghostscript.com but in vain.... the procuct are to be installed with the above mentioned version... please... (1 Reply)
Discussion started by: Prafulla
1 Replies
Login or Register to Ask a Question