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: Odd transient error about __impure_ptr


On Tue, 6 Sep 2005, Luke Kendall wrote:

> On a freshly (re?)installed copy of Cygwin from September 2004, a weird
> thing happened that I thought I'd mention.  We use Michael Wardle's
> excellent shell.c program that queries the password file to find the
> user's default shell, to start that (instead of running bash --login),
> run from inside a .bat file with a shortcut on the desktop.
>
> I *think* I may have compiled this with a later version of Cygwin.
> Anyway, when we recently dusted off and installed the Sept '04 Cygwin,
> trying to run shell.exe lead to a failure, with the message that
> cygwin1.dll did not provide __impure_ptr.
>
> So I recompiled it from the freshly-installed stable release.
> It failed the same way.  Then I ran it from inside a Cygwin shell
> (inside rxvt), and it worked!  I then changed the .bat file for the
> shortcut back the way it had been, and it also worked!
>
> Does that make sense to anyone?  It's no big deal, just something weird
> that I thought someone more knowledgeable than I might understand.

Hard to say without a proper problem report[*], but it sounds like you
have another version of cygwin1.dll in the PATH.  Windows looks for
cygwin1.dll in the directory of the program before it looks at the PATH,
and the standard cygwin.bat runs bash from /bin, so it finds the new DLL.
If your shell.exe is in another directory, the older DLL in the PATH will
take precedence.
HTH,
	Igor
[*] <http://cygwin.com/problems.html>
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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


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