This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ghostscript weirdness


Igor Pechtchanski <pechtcha <at> cs.nyu.edu> writes:

>You also need to make sure that /usr/X11R6/bin/gs gets picked up before
>/usr/bin/gs (i.e., that /usr/X11R6/bin is in your PATH before /usr/bin --
>which is usually done by default by /etc/profile.d/00xorg-x11-base.sh).

So I finally has a little time to look at this, and there's a lot of things 
broken here apparently. In sequence:

1)

[18:48] Sven [box:~] > echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdri
ve/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem


Alright, it's there but not at the beginning. Why? I check out the named file 
(/etc/profile.d/00xorg-x11-base.sh) and it looks like this

  eval "/bin/echo ${PATH} | /bin/grep -q /usr/X11R6/bin"
  if ( $status ) then
    # Path is not already in PATH, prepend it to PATH
    setenv PATH "/usr/X11R6/bin:${PATH}"
  endif

IOW somewhere during startup the X11 directories get put in the path, then some 
other stuff gets prepended or such, then the order is wrong but the 00xorg file 
never does anything about this. 

Bug.

2) 

OK, no problem so far. I simply comment out the "if ..." parts and force the 
X11 element to the beginning of my $PATH (so it occurs twice, so who cares, 
right?). I start a new xterm (with and without "-l" to be sure) and the path 
seems to come out alright. 

[18:56] Sven [box:~] > echo $PATH
/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/s
ystem32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem

I start "gs" by hand and Windows throws me an alert box that the application 
cannot run because "libICE.dll" was not found. A bit of googling finds that 
this is supposedly in /usr/X11R6/bin, but a 'find /usr/X11R6 -name libICE\* -a -
print" on my disk finds it in .../lib:

[18:59] Sven [ice:X11R6/bin] > find /usr/X11R6 -name libICE\* -a -print
/usr/X11R6/lib/libICE-6.dll.a
/usr/X11R6/lib/libICE.dll.a

Maybe that was changed recently?

Bug?

3)

At this point I'm a little puzzled what to do next. 

- I include /usr/X11R6/lib in my $PATH: 
     No effect.
- I symlink "ln -s /usr/X11R6/lib/libICE-6.dll.a /usr/X11R6/bin/libICE.dll.a":
     No effect.
- I *copy* the damn dll into /usr/X11R6/bin :
     No effect.

4) 

I am now going to uninstall everything related to X and/or ghostscript and then 
reinstall from scratch. But I think something got broken there somewhere 
recently. During the transition to Xorg, maybe? Can someone confirm or deny 
that ghostscript actually works when it is part of a completely fresh, new, 
pristine cygwin install that is performed right now (i.e. doesn't run on some 
legacy files that happen to be floating around)?

Thanks for hints in advance...

-- S 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]