Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 10 Jan 2005 19:46:16 -0800
From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
To: "Gerrit P. Haase" <gp@familiehaase.de>
Cc: cygwin@cygwin.com
Subject: Re: atoi() missing on Win98, perl extension breaks
Message-ID: <20050111034616.GA1196@efn.org>
References: <41E2E111.5040701@iopan.gda.pl> <41E2E529.1020603@familiehaase.de> <41E2EBF1.8050108@iopan.gda.pl> <41E2ED4F.6030901@familiehaase.de> <20050110210930.GD3757@trixie.casa.cgf.cx> <41E2F203.2040400@familiehaase.de> <20050110234135.GA3704@efn.org> <41E31C6A.8020302@familiehaase.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <41E31C6A.8020302@familiehaase.de>
User-Agent: Mutt/1.4.1i
Organization: bs"d
X-IsSubscribed: yes

On Tue, Jan 11, 2005 at 01:23:06AM +0100, Gerrit P. Haase wrote:
> Yitzchak Scott-Thoennes wrote:
> 
> >On Mon, Jan 10, 2005 at 10:22:11PM +0100, Gerrit P. Haase wrote:
> >
> >>Christopher Faylor wrote:
> >>
> >>
> >>>>>All I needed to trigger it was "perl -V".
> >>>>
> >>>>Hmmm, atoi() is not available on Win98/ME?  Strange.
> >>>
> >>>
> >>>Why would perl be finding atoi in ntdll.dll?  It should be coming from
> >>>the cygwin DLL shouldn't it?
> >>
> >>Yes, as it used to be, it is used all over the place in the perl
> >>sources.  I'm a little clueless now.
> >
> >
> >Did you verify that it was Win32CORE at fault by trying a perl built
> >without it?
> 
> $ cat ext.libs
> -L/lib/w32api -lnetapi32 -lwininet -lversion -lmpr -lodbc32 -lodbccp32 
> -lwinmm -lstdc++ -lole32 -loleaut32 -luuid -lcomctl32 -lgdi32 -lcomdlg32 
> -lntdll
> 
> There it is:
> $ cat ext/Win32CORE/hints/cygwin.pl
> [...]
> $self->{LIBS} = [q{ -L/lib/w32api -lnetapi32 -lwininet -lversion -lmpr 
> -lodbc32 -lodbccp32 -lwinmm -lstdc++ -lole32 -loleaut32 -luuid 
> -lcomctl32 -lgdi32 -lcomdlg32 -lntdll }];
> [...]
> 
> >Perl itself doesn't use atoi, nor does Win32CORE.xs.  I'm guessing
> >Win32CORE is calling a win32 routine that isn't fully supported
> >on win9x.  One of:
> 
> $ grep -r atoi *
> [72 lines output]

Sorry, I was thinking of atof.  Anyway, Win32CORE.c doesn't use it.

--
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/

