[bug-gs] Ghostscript-8.11__long_full_file_name_problem

Mike.Warby at brunel.ac.uk Mike.Warby at brunel.ac.uk
Thu Mar 4 15:19:13 PST 2004


--To: bug-gs at ghostscript.com
--Subject: Ghostscript-8.11  long full file name problem


------------------------------------------------------------------------
Symptoms:

I have come across a problem, which probably does not affect too many
installations, which seems to be connected with full file names when they
are greater than about 128 characters.   In the case of a eps file
created with matlab everything works if I type

gs -I$GS_FONTPATH/ matlab1.eps

.......................................................
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/fonts/n019003l.pfb... 2217976 826807 1657672 362546 3 done.
>>showpage, press <return> to continue<<
GS>
.......................................................

but it fails if I type

gs matlab1.eps

I get the error messages shown below.

.......................................................
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file n019003l.pfb.
Can't find (or can't open) font file /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Can't find (or can't open) font file /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Scanning /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/fonts for fonts... 168 files, 1 scanned, 0 new fonts.
Can't find (or can't open) font file n019003l.pfb.
Can't find (or can't open) font file /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Can't find (or can't open) font file /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Querying operating system for font files...
Can't find (or can't open) font file n019003l.pfb.
Can't find (or can't open) font file /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Didn't find this font on the system!
Substituting font Courier for NimbusSanL-Regu.
Can't find (or can't open) font file n022003l.pfb.
Can't find (or can't open) font file /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Can't find (or can't open) font file /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Didn't find this font on the system!
Unable to substitute for font.
Error: /invalidfont in findfont
Operand stack:
   120   Helvetica   ISOLatin1Encoding   Helvetica   Helvetica   Font   Helvetica   343176   Helvetica   --nostringval--   Courier   NimbusMonL-Regu   (NimbusMonL-Regu)   NimbusMonL-Regu   (NimbusMonL-Regu)   NimbusMonL-Regu
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   --nostringval--   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   5   5   %oparray_pop   6   5   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   9   6   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   5   -1   1   --nostringval--   %for_neg_int_continue
Dictionary stack:
   --dict:1113/1686(ro)(G)--   --dict:0/20(G)--   --dict:74/200(L)--   --dict:69/160(L)--   --dict:8/88(L)--   --dict:17/17(ro)(G)--   --dict:1113/1686(ro)(G)--
Current allocation mode is local
Last OS error: 2
Current file position is 6506
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
.......................................................



------------------------------------------------------------------------
Ghostscript version (or include output from "gs -h"):

AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: x11
Available devices:
   bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256
   bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono
   cljet5 cljet5c deskjet devicen djet500 epswrite faxg3 faxg32d faxg4 ijs
   jpeg jpeggray laserjet lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d
   ljetplus nullpage pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono
   pdfwrite pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkm pkmraw pksm pksmraw
   pnm pnmraw ppm ppmraw psdcmyk psdrgb psgray psmono psrgb pswrite pxlcolor
   pxlmono spotcmyk tiff12nc tiff24nc tiffcrle tiffg3 tiffg32d tiffg4
   tifflzw tiffpack uniprint x11 x11alpha x11cmyk x11gray2 x11gray4 x11mono
   xcf
Search path:
   . :
   /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/lib :
   /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/lib :
   /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/Resource :
   /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/fonts
For more information, see /vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/doc/Use.htm.
Report bugs to bug-gs at ghostscript.com, using the form in Bug-form.htm.

------------------------------------------------------------------------
Where you got Ghostscript:
TeX Collection TeX Live and CTAN Edition 9/2003 DVD from Lehmanns

------------------------------------------------------------------------
Hardware system you are using (including printer model if the problem
involves printing): 

------------------------------------------------------------------------
Operating system you are using: Solaris 2.5.1

------------------------------------------------------------------------
If you are using X Windows, and your problem involved output to the
screen, the output from running xdpyinfo and xwininfo:

------------------------------------------------------------------------
C compiler you are using, including its version, if you compiled
Ghostscript yourself: cc 4.2

------------------------------------------------------------------------
If you compiled Ghostscript yourself, changes you made to the makefiles:
Minor, connected with getting vsnprintf recognised.

------------------------------------------------------------------------
Environment variables:

        GS_DEVICE  ""

        GS_FONTPATH
/vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/fonts

        GS_LIB
/vol/fileservers/charon/charon3/pcpack/cd12/MKW/latesttetex/gsrelated/share/ghostscript/8.11/lib

        GS_OPTIONS ""

------------------------------------------------------------------------
Command line: E.g.  gs matlab1.eps

------------------------------------------------------------------------
URL or FTP location of test files (include the data at the end of this
form if 500K or less):


------------------------------------------------------------------------
Suggested fix, if any:

Are there some fixed length character array bounds
that just need to be increased (I have had to do something like this
to get xdvi to work with t1lib fonts on our system)?

On the command line I can get things to work by typing

gs -I$GS_FONTPATH/ matlab1.eps

or by copying *.pfb files to the current directory.

When gs is used within xdvi to view a postscript imported into LaTeX
I do not have the option of controlling the order in which gs searches
for fonts and thus copying the *.pfb files to the working directory
is my only solution at the moment.


------------------------------------------------------------------------
Other comments:

     _________________________________________________________________

*****************************************************************************
**  Michael K. Warby, Department of Mathematical Sciences,                 **
**  Brunel University, Uxbridge, Middlesex UB8 3PH, U.K.                   **
**  Tel: ++ 44 1895 274000 Ext. 2169 (international)                       **
**           0 1895 274000 Ext. 2169 (U.K.)                                **
**  Fax: 44 1895 203303/232806 (Department/University)                     **
**  Email: Mike.Warby at brunel.ac.uk   or  na.warby at na-net.ornl.gov          **
**  URL: http://www.brunel.ac.uk/~icstmkw/    Thu Mar  4 23:19:12 GMT 2004 **
*****************************************************************************


More information about the bug-gs mailing list