public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Missing ntdll.dll export with perl 5.8.6 om Win9x
@ 2005-01-10 20:12 Jacek Piskozub
  2005-01-10 20:28 ` bug in w32api? (was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Gerrit P. Haase
  2005-01-10 20:33 ` Missing ntdll.dll export with perl 5.8.6 om Win9x Gerrit P. Haase
  0 siblings, 2 replies; 21+ messages in thread
From: Jacek Piskozub @ 2005-01-10 20:12 UTC (permalink / raw)
  To: cygwin

After updating to perl 5.8.6-1 I got an missing ntdll.dll export error. 
Because I use Windows Me, I do not obviously have any ntdll.dll. It 
seems the new perl was compiled for WindowsNT/2k/Xp only.

Regards,

Jacek Piskozub

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug in w32api? (was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x)
  2005-01-10 20:12 Missing ntdll.dll export with perl 5.8.6 om Win9x Jacek Piskozub
@ 2005-01-10 20:28 ` Gerrit P. Haase
  2005-01-10 21:00   ` bug in w32api? Jacek Piskozub
  2005-01-11 22:10   ` Perl 5.8.6 Jacek Piskozub
  2005-01-10 20:33 ` Missing ntdll.dll export with perl 5.8.6 om Win9x Gerrit P. Haase
  1 sibling, 2 replies; 21+ messages in thread
From: Gerrit P. Haase @ 2005-01-10 20:28 UTC (permalink / raw)
  To: Jacek Piskozub; +Cc: cygwin

Jacek Piskozub wrote:
> After updating to perl 5.8.6-1 I got an missing ntdll.dll export error. 
> Because I use Windows Me, I do not obviously have any ntdll.dll. It 
> seems the new perl was compiled for WindowsNT/2k/Xp only.

A bug in w32api?

What says cygcheck for you?

Please note that on NT ntdll.dll looks up always:
$ cygcheck /usr/bin/cygwin1.dll
H:/bin/cygwin1.dll
   C:\WINNT\System32\ADVAPI32.DLL
     C:\WINNT\System32\ntdll.dll
     C:\WINNT\System32\KERNEL32.dll
     C:\WINNT\System32\USER32.dll
       C:\WINNT\System32\GDI32.dll
     C:\WINNT\System32\RPCRT4.dll

Mine is:
$ cygcheck usr/bin/cygperl5_8.dll
usr/bin/cygperl5_8.dll
   H:\bin\cygcrypt-0.dll
     H:\bin\cygwin1.dll
       C:\WINNT\System32\ADVAPI32.DLL
         C:\WINNT\System32\ntdll.dll
         C:\WINNT\System32\KERNEL32.dll
         C:\WINNT\System32\USER32.dll
           C:\WINNT\System32\GDI32.dll
         C:\WINNT\System32\RPCRT4.dll

$ cygcheck usr/bin/perl.exe
usr/bin/perl.exe
   usr/bin\cygperl5_8.dll
     H:\bin\cygcrypt-0.dll
       H:\bin\cygwin1.dll
         C:\WINNT\System32\ADVAPI32.DLL
           C:\WINNT\System32\ntdll.dll
           C:\WINNT\System32\KERNEL32.dll
           C:\WINNT\System32\USER32.dll
             C:\WINNT\System32\GDI32.dll
           C:\WINNT\System32\RPCRT4.dll


Gerrit
-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Missing ntdll.dll export with perl 5.8.6 om Win9x
  2005-01-10 20:12 Missing ntdll.dll export with perl 5.8.6 om Win9x Jacek Piskozub
  2005-01-10 20:28 ` bug in w32api? (was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Gerrit P. Haase
@ 2005-01-10 20:33 ` Gerrit P. Haase
  2005-01-14 23:00   ` WFM (Was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Jacek Piskozub
  1 sibling, 1 reply; 21+ messages in thread
From: Gerrit P. Haase @ 2005-01-10 20:33 UTC (permalink / raw)
  To: Jacek Piskozub; +Cc: cygwin

Jacek Piskozub wrote:

> After updating to perl 5.8.6-1 I got an missing ntdll.dll export error. 

Which export is missing?


Gerrit
-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: bug in w32api?
  2005-01-10 20:28 ` bug in w32api? (was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Gerrit P. Haase
@ 2005-01-10 21:00   ` Jacek Piskozub
  2005-01-10 21:09     ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Gerrit P. Haase
  2005-01-11 22:10   ` Perl 5.8.6 Jacek Piskozub
  1 sibling, 1 reply; 21+ messages in thread
From: Jacek Piskozub @ 2005-01-10 21:00 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

When the atom clock displayed 10/01/2005 21:27,  Gerrit P. Haase emitted 
the following byte stream:

> Jacek Piskozub wrote:
>
>> After updating to perl 5.8.6-1 I got an missing ntdll.dll export 
>> error. Because I use Windows Me, I do not obviously have any 
>> ntdll.dll. It seems the new perl was compiled for WindowsNT/2k/Xp only.
>
>
> A bug in w32api?
>
> What says cygcheck for you? 

OK. I upgraded back to the bad new Perl, especially for you.

Here are the cygcheck results:

C:\WINDOWS>cygcheck perl
Found: C:\CYGWIN\BIN\perl.exe
C:/CYGWIN/BIN/perl.exe
  C:\CYGWIN\BIN\cygperl5_8.dll
    C:\CYGWIN\BIN\cygcrypt-0.dll
      C:\CYGWIN\BIN\cygwin1.dll
        C:\WINDOWS\SYSTEM\ADVAPI32.DLL
          C:\WINDOWS\SYSTEM\KERNEL32.dll
  C:\WINDOWS\SYSTEM\ntdll.dll

C:\WINDOWS>cygcheck cygperl5_8.dll
Found: C:\CYGWIN\BIN\cygperl5_8.dll
C:/CYGWIN/BIN/cygperl5_8.dll
  C:\CYGWIN\BIN\cygcrypt-0.dll
    C:\CYGWIN\BIN\cygwin1.dll
      C:\WINDOWS\SYSTEM\ADVAPI32.DLL
        C:\WINDOWS\SYSTEM\KERNEL32.dll

The offending export is directly from perl.exe, it seems.

The error pop-up says the same story:

The PERL.EXE file is linked to missing export NTDLL.DLL:atoi

All I needed to trigger it was "perl -V".

Jacek


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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?)
  2005-01-10 21:00   ` bug in w32api? Jacek Piskozub
@ 2005-01-10 21:09     ` Gerrit P. Haase
  2005-01-10 21:11       ` Christopher Faylor
                         ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Gerrit P. Haase @ 2005-01-10 21:09 UTC (permalink / raw)
  To: Jacek Piskozub; +Cc: cygwin, Yitzchak Scott-Thoennes

Jacek Piskozub wrote:

> When the atom clock displayed 10/01/2005 21:27,  Gerrit P. Haase emitted 
> the following byte stream:
> 
>> Jacek Piskozub wrote:
>>
>>> After updating to perl 5.8.6-1 I got an missing ntdll.dll export 
>>> error. Because I use Windows Me, I do not obviously have any 
>>> ntdll.dll. It seems the new perl was compiled for WindowsNT/2k/Xp only.
>>
>>
>>
>> A bug in w32api?

No.  It is the statically linked in Win32CORE extension.

> The offending export is directly from perl.exe, it seems.
> 
> The error pop-up says the same story:
> 
> The PERL.EXE file is linked to missing export NTDLL.DLL:atoi
> 
> All I needed to trigger it was "perl -V".

Hmmm, atoi() is not available on Win98/ME?  Strange.


Gerrit
-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?)
  2005-01-10 21:09     ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Gerrit P. Haase
@ 2005-01-10 21:11       ` Christopher Faylor
  2005-01-10 21:24         ` atoi() missing on Win98, perl extension breaks Gerrit P. Haase
  2005-01-10 21:18       ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Igor Pechtchanski
                         ` (3 subsequent siblings)
  4 siblings, 1 reply; 21+ messages in thread
From: Christopher Faylor @ 2005-01-10 21:11 UTC (permalink / raw)
  To: cygwin

On Mon, Jan 10, 2005 at 10:02:07PM +0100, Gerrit P. Haase wrote:
>Jacek Piskozub wrote:
>
>>When the atom clock displayed 10/01/2005 21:27,  Gerrit P. Haase emitted 
>>the following byte stream:
>>
>>>Jacek Piskozub wrote:
>>>
>>>>After updating to perl 5.8.6-1 I got an missing ntdll.dll export 
>>>>error. Because I use Windows Me, I do not obviously have any 
>>>>ntdll.dll. It seems the new perl was compiled for WindowsNT/2k/Xp only.
>>>
>>>
>>>
>>>A bug in w32api?
>
>No.  It is the statically linked in Win32CORE extension.
>
>>The offending export is directly from perl.exe, it seems.
>>
>>The error pop-up says the same story:
>>
>>The PERL.EXE file is linked to missing export NTDLL.DLL:atoi
>>
>>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?

cgf

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?)
  2005-01-10 21:09     ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Gerrit P. Haase
  2005-01-10 21:11       ` Christopher Faylor
@ 2005-01-10 21:18       ` Igor Pechtchanski
  2005-01-10 21:37       ` atoi() missing on Win98, perl extension breaks Jacek Piskozub
                         ` (2 subsequent siblings)
  4 siblings, 0 replies; 21+ messages in thread
From: Igor Pechtchanski @ 2005-01-10 21:18 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: Jacek Piskozub, cygwin, Yitzchak Scott-Thoennes

On Mon, 10 Jan 2005, Gerrit P. Haase wrote:

> Jacek Piskozub wrote:
>
> > When the atom clock displayed 10/01/2005 21:27,  Gerrit P. Haase emitted the
> > following byte stream:

Heh, I like this one... :-)

> [snip]
> > The offending export is directly from perl.exe, it seems.
> >
> > The error pop-up says the same story:
> >
> > The PERL.EXE file is linked to missing export NTDLL.DLL:atoi
> >
> > All I needed to trigger it was "perl -V".
>
> Hmmm, atoi() is not available on Win98/ME?  Strange.

Huh?  Isn't atoi part of newlib (libc.a)?  Why would it even go to
ntdll.dll?  Something's fishy here.
	Igor
-- 
				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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-10 21:11       ` Christopher Faylor
@ 2005-01-10 21:24         ` Gerrit P. Haase
  2005-01-10 23:29           ` Keith Moore
  2005-01-11  0:44           ` Yitzchak Scott-Thoennes
  0 siblings, 2 replies; 21+ messages in thread
From: Gerrit P. Haase @ 2005-01-10 21:24 UTC (permalink / raw)
  To: cygwin

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.


Gerrit
-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-10 21:09     ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Gerrit P. Haase
  2005-01-10 21:11       ` Christopher Faylor
  2005-01-10 21:18       ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Igor Pechtchanski
@ 2005-01-10 21:37       ` Jacek Piskozub
  2005-01-10 21:41       ` Jacek Piskozub
  2005-01-11  7:50       ` Jacek Piskozub
  4 siblings, 0 replies; 21+ messages in thread
From: Jacek Piskozub @ 2005-01-10 21:37 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

Gerritt,

>
> Hmmm, atoi() is not available on Win98/ME?  Strange.
>
I believe it is placed in MSVCRT.DLL. But we should use the cygwin 
version, anyway.

Jacek
**


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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-10 21:09     ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Gerrit P. Haase
                         ` (2 preceding siblings ...)
  2005-01-10 21:37       ` atoi() missing on Win98, perl extension breaks Jacek Piskozub
@ 2005-01-10 21:41       ` Jacek Piskozub
  2005-01-11  7:50       ` Jacek Piskozub
  4 siblings, 0 replies; 21+ messages in thread
From: Jacek Piskozub @ 2005-01-10 21:41 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

Gerritt,

>
> Hmmm, atoi() is not available on Win98/ME?  Strange.
>

I compiled a one-liner with atoi() function using Visual Studio 6.

The resulting atoi.exe links only to kernel32.dll on WindowsME.

E:\Download>cygcheck c:\atoi.exe
e:/atoi.exe
   C:\WINDOWS\SYSTEM\KERNEL32.dll

Jacek





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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* RE: atoi() missing on Win98, perl extension breaks
  2005-01-10 21:24         ` atoi() missing on Win98, perl extension breaks Gerrit P. Haase
@ 2005-01-10 23:29           ` Keith Moore
  2005-01-11  0:44           ` Yitzchak Scott-Thoennes
  1 sibling, 0 replies; 21+ messages in thread
From: Keith Moore @ 2005-01-10 23:29 UTC (permalink / raw)
  To: cygwin

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. 

Is it possible the order of link libraries got rearranged in the new
version? That could do it.

KM

P.S. I've been lurking on this list for a long time. Greetings, all,
and thanks for cygwin!



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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-10 21:24         ` atoi() missing on Win98, perl extension breaks Gerrit P. Haase
  2005-01-10 23:29           ` Keith Moore
@ 2005-01-11  0:44           ` Yitzchak Scott-Thoennes
  2005-01-11  0:46             ` Gerrit P. Haase
  1 sibling, 1 reply; 21+ messages in thread
From: Yitzchak Scott-Thoennes @ 2005-01-11  0:44 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

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?

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:

WideCharToMultiByte
CloseHandle
CopyFileA
CreateProcessA
FindClose
FindFirstFileA
FormatMessageA
FreeLibrary
GetComputerNameA
GetCurrentDirectoryA
GetDriveTypeA
GetFullPathNameA
GetLastError
GetProcAddress
GetShortPathNameA
GetTickCount
GetUserNameA
GetVersionExA
GetVolumeInformationA
LoadLibraryA
LookupAccountNameA
SetLastError
Sleep

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-11  0:44           ` Yitzchak Scott-Thoennes
@ 2005-01-11  0:46             ` Gerrit P. Haase
  2005-01-11  6:42               ` Yitzchak Scott-Thoennes
  0 siblings, 1 reply; 21+ messages in thread
From: Gerrit P. Haase @ 2005-01-11  0:46 UTC (permalink / raw)
  To: Yitzchak Scott-Thoennes; +Cc: cygwin

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]


Now the question is which of these libs can be removed and which needs
to stay?  I'll try to remove all of them at first since it seems that 
many of them are only used for specific extension modules.


Gerrit
-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-11  0:46             ` Gerrit P. Haase
@ 2005-01-11  6:42               ` Yitzchak Scott-Thoennes
  0 siblings, 0 replies; 21+ messages in thread
From: Yitzchak Scott-Thoennes @ 2005-01-11  6:42 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

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/

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-10 21:09     ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Gerrit P. Haase
                         ` (3 preceding siblings ...)
  2005-01-10 21:41       ` Jacek Piskozub
@ 2005-01-11  7:50       ` Jacek Piskozub
  2005-01-11 10:24         ` Gerrit P. Haase
  4 siblings, 1 reply; 21+ messages in thread
From: Jacek Piskozub @ 2005-01-11  7:50 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

Gerritt wrote,

> 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 }];
> [...]

> Now the question is which of these libs can be removed and which needs
> to stay?



I believe the real underlying cause is that /lib/w32api/libntdll.a 
contains a atoi function header (I see that in 
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/lib/ntdll.def?cvsroot=src 
together with a zillion other WinNT/2K/XP functions). This is wrong 
because Win9x have only a very limited set of functions in ntdll.dll.

Or, if you prefer, indiscriminate linking to ntdll.dll in all Windows 
versions is the actual culprit.

Jacek







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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-11  7:50       ` Jacek Piskozub
@ 2005-01-11 10:24         ` Gerrit P. Haase
  2005-01-11 12:20           ` Corinna Vinschen
  0 siblings, 1 reply; 21+ messages in thread
From: Gerrit P. Haase @ 2005-01-11 10:24 UTC (permalink / raw)
  To: Jacek Piskozub; +Cc: cygwin

Jacek Piskozub wrote:

> Gerritt wrote,
> 
>> 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 }];
>> [...]
> 
> 
>> Now the question is which of these libs can be removed and which needs
>> to stay?
> 
> 
> 
> 
> I believe the real underlying cause is that /lib/w32api/libntdll.a 
> contains a atoi function header (I see that in 
> http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/lib/ntdll.def?cvsroot=src 
> together with a zillion other WinNT/2K/XP functions). This is wrong 
> because Win9x have only a very limited set of functions in ntdll.dll.

Yes, I thought it is a w32api bug at first too.  Who is the maintainer
of w32api?


> Or, if you prefer, indiscriminate linking to ntdll.dll in all Windows 
> versions is the actual culprit.


Gerrit
-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-11 10:24         ` Gerrit P. Haase
@ 2005-01-11 12:20           ` Corinna Vinschen
  2005-01-11 16:15             ` Christopher Faylor
  0 siblings, 1 reply; 21+ messages in thread
From: Corinna Vinschen @ 2005-01-11 12:20 UTC (permalink / raw)
  To: cygwin

On Jan 11 08:59, Gerrit P. Haase wrote:
> Jacek Piskozub wrote:
> >Gerritt wrote,
> >>$self->{LIBS} = [q{ -L/lib/w32api -lnetapi32 -lwininet -lversion -lmpr 
> >>-lodbc32 -lodbccp32 -lwinmm -lstdc++ -lole32 -loleaut32 -luuid 
> >>-lcomctl32 -lgdi32 -lcomdlg32 -lntdll }];
> >
> >>Now the question is which of these libs can be removed and which needs
> >>to stay?
> >
> >I believe the real underlying cause is that /lib/w32api/libntdll.a 
> >contains a atoi function header (I see that in 
> >http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/lib/ntdll.def?cvsroot=src 
> >together with a zillion other WinNT/2K/XP functions). This is wrong 
> >because Win9x have only a very limited set of functions in ntdll.dll.
> 
> Yes, I thought it is a w32api bug at first too.  Who is the maintainer
> of w32api?

The MingW team.  However, the symbols in ntdll.def are there already for
a long time and they are apparently ok even though it rolls up my toe nails.
Also, the fact that 9x has only a limited set of functions in this DLL
doesn't mean that the NT symbols shouldn't be present.

Explicit linking against ntdll is the problem here.  I guess the "right
thing" would be to link against -lcygwin first.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: atoi() missing on Win98, perl extension breaks
  2005-01-11 12:20           ` Corinna Vinschen
@ 2005-01-11 16:15             ` Christopher Faylor
  0 siblings, 0 replies; 21+ messages in thread
From: Christopher Faylor @ 2005-01-11 16:15 UTC (permalink / raw)
  To: cygwin

On Tue, Jan 11, 2005 at 12:03:19PM +0100, Corinna Vinschen wrote:
>On Jan 11 08:59, Gerrit P. Haase wrote:
>>Jacek Piskozub wrote:
>>>Gerritt wrote,
>>>>$self->{LIBS} = [q{ -L/lib/w32api -lnetapi32 -lwininet -lversion -lmpr
>>>>-lodbc32 -lodbccp32 -lwinmm -lstdc++ -lole32 -loleaut32 -luuid
>>>>-lcomctl32 -lgdi32 -lcomdlg32 -lntdll }];
>>>
>>>>Now the question is which of these libs can be removed and which needs
>>>>to stay?
>>>
>>>I believe the real underlying cause is that /lib/w32api/libntdll.a
>>>contains a atoi function header (I see that in
>>>http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/lib/ntdll.def?cvsroot=src
>>>together with a zillion other WinNT/2K/XP functions).  This is wrong
>>>because Win9x have only a very limited set of functions in ntdll.dll.
>>
>>Yes, I thought it is a w32api bug at first too.  Who is the maintainer
>>of w32api?
>
>The MingW team.  However, the symbols in ntdll.def are there already
>for a long time and they are apparently ok even though it rolls up my
>toe nails.  Also, the fact that 9x has only a limited set of functions
>in this DLL doesn't mean that the NT symbols shouldn't be present.
>
>Explicit linking against ntdll is the problem here.  I guess the "right
>thing" would be to link against -lcygwin first.

Or not explicitly linking against ntdll.  It will obviously be called in
if it is needed.

cgf

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Perl 5.8.6
  2005-01-10 20:28 ` bug in w32api? (was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Gerrit P. Haase
  2005-01-10 21:00   ` bug in w32api? Jacek Piskozub
@ 2005-01-11 22:10   ` Jacek Piskozub
  1 sibling, 0 replies; 21+ messages in thread
From: Jacek Piskozub @ 2005-01-11 22:10 UTC (permalink / raw)
  To: cygwin; +Cc: rurban

Reini Urban wrote:

 > Gerrit P. Haase schrieb:
 >> Why was this not a problem with 5.8.5 before including Win32CORE
 >> statically?

 > Don't remember.
 > But sorry, I'm very busy right now. Maybe tommorrow.
 > Have to write a simple WOID - webshop-in-one-day.

The reason has been already been resolved, I believe. As Gerrit wrote:

> 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 }];
> [...]

Take notice of the final library (-lntdll) being linked. This code comes 
from Win32CORE, so of course was not present in 5.8.5.

Regards,

Jacek


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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* WFM (Was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x)
  2005-01-10 20:33 ` Missing ntdll.dll export with perl 5.8.6 om Win9x Gerrit P. Haase
@ 2005-01-14 23:00   ` Jacek Piskozub
  2005-01-15 11:15     ` Gerrit P. Haase
  0 siblings, 1 reply; 21+ messages in thread
From: Jacek Piskozub @ 2005-01-14 23:00 UTC (permalink / raw)
  To: cygwin; +Cc: Gerrit P. Haase

Hi,

Confirming that Perl 5.8.6-2 works for me on Windows Me.

Thanks  Gerrit!

Jacek

-- 
"Software will be protected not just by copyright, but by patents. 
This makes about as much sense as patenting jokes."
            Guardian, January 10, 2005


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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: WFM (Was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x)
  2005-01-14 23:00   ` WFM (Was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Jacek Piskozub
@ 2005-01-15 11:15     ` Gerrit P. Haase
  0 siblings, 0 replies; 21+ messages in thread
From: Gerrit P. Haase @ 2005-01-15 11:15 UTC (permalink / raw)
  To: Jacek Piskozub; +Cc: cygwin

Jacek Piskozub wrote:
> Hi,
> 
> Confirming that Perl 5.8.6-2 works for me on Windows Me.
> 
> Thanks  Gerrit!

Thank you for confirming that it works ok now!

Gerrit
-- 
=^..^=

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2005-01-15  1:31 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-10 20:12 Missing ntdll.dll export with perl 5.8.6 om Win9x Jacek Piskozub
2005-01-10 20:28 ` bug in w32api? (was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Gerrit P. Haase
2005-01-10 21:00   ` bug in w32api? Jacek Piskozub
2005-01-10 21:09     ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Gerrit P. Haase
2005-01-10 21:11       ` Christopher Faylor
2005-01-10 21:24         ` atoi() missing on Win98, perl extension breaks Gerrit P. Haase
2005-01-10 23:29           ` Keith Moore
2005-01-11  0:44           ` Yitzchak Scott-Thoennes
2005-01-11  0:46             ` Gerrit P. Haase
2005-01-11  6:42               ` Yitzchak Scott-Thoennes
2005-01-10 21:18       ` atoi() missing on Win98, perl extension breaks (was: Re: bug in w32api?) Igor Pechtchanski
2005-01-10 21:37       ` atoi() missing on Win98, perl extension breaks Jacek Piskozub
2005-01-10 21:41       ` Jacek Piskozub
2005-01-11  7:50       ` Jacek Piskozub
2005-01-11 10:24         ` Gerrit P. Haase
2005-01-11 12:20           ` Corinna Vinschen
2005-01-11 16:15             ` Christopher Faylor
2005-01-11 22:10   ` Perl 5.8.6 Jacek Piskozub
2005-01-10 20:33 ` Missing ntdll.dll export with perl 5.8.6 om Win9x Gerrit P. Haase
2005-01-14 23:00   ` WFM (Was: Re: Missing ntdll.dll export with perl 5.8.6 om Win9x) Jacek Piskozub
2005-01-15 11:15     ` Gerrit P. Haase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).