This is the mail archive of the cygwin mailing list for the Cygwin 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: gnome and hicolor exit code 127 for /usr/bin .vs. /bin


> >>> Package: gnubg
> >>> 	gnubg.sh exit code 127
> >>> Package: Unknown package
> >>> 	gnome-icon-theme.sh exit code 127
> >>> 	hicolor-icon-theme.sh exit code 127
> >>> --snip-- < <
> >> could you please try :
> >>
> >> /usr/bin/gtk-update-icon-cache --force /usr/share/icons/gnome
> >> and ls -l
> >> /usr/bin/gtk-update-icon-cache --force /usr/share/icons/hicolor
> >>
> >> so we can try to understand what is not working on your system?
> >
> > Brian S. Wilson@ncc-1701 ~
> > $ /usr/bin/gtk-update-icon-cache --force /usr/share/icons/gnome
> >
> > Brian S. Wilson@ncc-1701 ~
> > $ echo $?
> > 127
> >
> > Brian S. Wilson@ncc-1701 ~
> > $ /usr/bin/gtk-update-icon-cache --force /usr/share/icons/hicolor
> >
> > Brian S. Wilson@ncc-1701 ~
> > $ echo $?
> > 127
> >
> 
> the normal behaviour should be:
> $ /usr/bin/gtk-update-icon-cache --force /usr/share/icons/hicolor
> gtk-update-icon-cache: Cache file created successfully.
> 
> the error 127 is usually due to a missing or corrupted dll.
> 
> On your case the problem is:
> 
> cygwin                    1.7.16-1             OK
> 
> but
> 
>   2778k 2012/04/05 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                    "cygwin1.dll" v0.0 ts=2012/4/5 11:43
>      Cygwin DLL version info:
>          DLL version: 1.7.13
> 
> this means that when you updated the last cygwin package
> you had still process running and it failed to replace the cygwin1.dll.
> 
> Solution:
> Stop all the programs and cygwin services
> 
> Service             : cygserver
> Service             : sshd
> 
> and re-install the cygwin-1.7.16-1 package.
> 

The solution worked.  I shut down cygserver (sshd was already down; you can do 
this from the command line  "cygrunsrv --stop cygserver" or from the Start, 
Run, Services.msc window) and did the setup.exe reinstall of cygwin.  Now 
there are no more silent errors and the icon cache files are in place.  It 
looks like somehow my system didn't automatically replace the dll file when I 
did a restart.  I will remember to use the "cygrunsrv -L" command to list the 
services and shut them down before my next update.

It would be nice if an error message could be added to the gtk-update-icon-
cache program to say there had been an error just so this doesn't get missed 
when running from the command line.  Not everyone (though they should) checks 
the return codes for every command.

Thank you Marco (by the way, do you play polo by any chance?). :) You were a 
great help.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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