Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not OK, perl 5.005_63 on Win32 4.0 (GCC 2.95.2 MSVCRT) #937

Closed
p5pRT opened this issue Dec 13, 1999 · 3 comments
Closed

Not OK, perl 5.005_63 on Win32 4.0 (GCC 2.95.2 MSVCRT) #937

p5pRT opened this issue Dec 13, 1999 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Dec 13, 1999

Migrated from rt.perl.org#1882 (status was 'resolved')

Searchable as RT1882$

@p5pRT
Copy link
Author

p5pRT commented Dec 13, 1999

From js@ddre.dk

This failure is actually for perl 5.005_63 build on WinNT 4.0 SP 4, using
gcc 2.95.2 (incl. fixes from Dec 8, 1999)

Using standard makefile (makefile.mk) and dmake

Only CCTYPE and CCHOME variables are changed in standard makefile

This result in​:

gcc -c -I..\lib\CORE -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE
-g -O2
-D__MSVCRT__ -DPERL_EXTERNAL_GLOB -o.\mini\perlio.o ..\perlio.c
gcc -c -I..\lib\CORE -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE
-g -O2
-D__MSVCRT__ -o.\mini\win32.o win32.c
In file included from ..\perl.h​:1543,
  from win32.c​:28​:
win32.h​:12​: warning​: `_WIN32_WINNT' redefined
c​:\gcc-2.95.2\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i386-mingw3
2msvc\include\windef.h​:11​: warning​: this is the location of the previous
definit
ion
win32.c​: In function `win32_stat'​:
win32.c​:1088​: warning​: passing arg 2 of `_wstat' from incompatible pointer
type
win32.c​: In function `win32_fopen'​:
win32.c​:2065​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_fdopen'​:
win32.c​:2082​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_freopen'​:
win32.c​:2098​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_fsetpos'​:
win32.c​:2173​: warning​: passing arg 2 of `fsetpos' discards qualifiers from
point
er target type
win32.c​: In function `Nt4CreateHardLinkW'​:
win32.c​:2376​: union has no member named `HighPart'
win32.c​:2377​: union has no member named `LowPart'
win32.c​: In function `w32_DomainName'​:
win32.c​:3317​: warning​: passing arg 2 of `WideCharToMultiByte' makes
integer from
pointer without a cast
win32.c​:3321​: warning​: passing arg 2 of `WideCharToMultiByte' makes
integer from
pointer without a cast
dmake.exe​: Error code 1, while making '.\mini\win32.o'

Perl Info


Site configuration information for perl 5.00503:

Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86
    uname=''
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-g -O2 ', gccversion=
    cppflags='-DWIN32'
    ccflags ='-g -O2  -DWIN32   '
    stdchar='char', d_stdstdio=undef, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L"c:\egcs-1.1.2\lib"'
    libpth=c:\egcs-1.1.2\lib
    libs= -ladvapi32 -luser32 -lnetapi32 -lwsock32 -lmingw32 -lgcc
-lmoldname -lcrtdll -lkernel32
    libc=-lcrtdll, so=dll, useshrplib=yes, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-mdll  -L"c:\egcs-1.1.2\lib"'

Locally applied patches:
    


@INC for perl 5.00503:
    C:\perl\5.00503\lib/MSWin32-x86
    C:\perl\5.00503\lib
    C:\perl\site\5.00503\lib/MSWin32-x86
    C:\perl\site\5.00503\lib
    .


Environment for perl 5.00503:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)

PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\WBEM;c:\perl\bin;c:\texmf\miktex\bin;c:\util
    PERL_BADLANG (unset)
    SHELL (unset)

@p5pRT
Copy link
Author

p5pRT commented Dec 13, 1999

From [Unknown Contact. See original ticket]

From​: Jens Stavnstrup <js@​ddre.dk>
This failure is actually for perl 5.005_63 build on WinNT 4.0 SP 4, using
gcc 2.95.2 (incl. fixes from Dec 8, 1999)

Using standard makefile (makefile.mk) and dmake

Only CCTYPE and CCHOME variables are changed in standard makefile

This result in​:

gcc -c -I..\lib\CORE -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE
-g -O2
-D__MSVCRT__ -DPERL_EXTERNAL_GLOB -o.\mini\perlio.o ..\perlio.c
gcc -c -I..\lib\CORE -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE
-g -O2
-D__MSVCRT__ -o.\mini\win32.o win32.c
In file included from ..\perl.h​:1543,
from win32.c​:28​:
win32.h​:12​: warning​: `_WIN32_WINNT' redefined
c​:\gcc-2.95.2\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i386-mingw3
2msvc\include\windef.h​:11​: warning​: this is the location of the previous
definit
ion
win32.c​: In function `win32_stat'​:
win32.c​:1088​: warning​: passing arg 2 of `_wstat' from incompatible pointer
type
win32.c​: In function `win32_fopen'​:
win32.c​:2065​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_fdopen'​:
win32.c​:2082​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_freopen'​:
win32.c​:2098​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_fsetpos'​:
win32.c​:2173​: warning​: passing arg 2 of `fsetpos' discards qualifiers from
point
er target type
win32.c​: In function `Nt4CreateHardLinkW'​:
win32.c​:2376​: union has no member named `HighPart'
win32.c​:2377​: union has no member named `LowPart'

This is the only real problem, I think. I have gotten Perl to build
(Win95/GCC-2.95.2-Minw32) after just fixing this line. Right above it is a
"#ifdef __BORLANDC__", Change that to "#if defined(__BORLANDC__) || defined
(__MINGW32__)" and everything should build.

win32.c​: In function `w32_DomainName'​:
win32.c​:3317​: warning​: passing arg 2 of `WideCharToMultiByte' makes
integer from
pointer without a cast
win32.c​:3321​: warning​: passing arg 2 of `WideCharToMultiByte' makes
integer from
pointer without a cast
dmake.exe​: Error code 1, while making '.\mini\win32.o'

______________________________________________________
Get Your Private, Free Email at http​://www.hotmail.com

@p5pRT
Copy link
Author

p5pRT commented Dec 13, 1999

From [Unknown Contact. See original ticket]

Benjamin,

You fix solved this problem, but did you compile perl afterwards. I made
the patch, and that module compiled all right, but win32sck.c failed
immediately with the following bug​:

  .\mini\win32sck.o​: In function `win32_inet_addr'​:
//D/Packages/perl5.005_63/win32/win32sck.c​:543​: undefined reference to
`inet_add
r'
dmake.exe​: Error code 1, while making '..\miniperl.exe'

And there might be others. I don't have a comprehensive understanding of
the Perl source code, so poked around a little, but didn't find the
problem. But good luck to you and others !!

Jens

On Mon, 13 Dec 1999, Benjamin Stuhl wrote​:

From​: Jens Stavnstrup <js@​ddre.dk>
This failure is actually for perl 5.005_63 build on WinNT 4.0 SP 4, using
gcc 2.95.2 (incl. fixes from Dec 8, 1999)

Using standard makefile (makefile.mk) and dmake

Only CCTYPE and CCHOME variables are changed in standard makefile

This result in​:

gcc -c -I..\lib\CORE -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE
-g -O2
-D__MSVCRT__ -DPERL_EXTERNAL_GLOB -o.\mini\perlio.o ..\perlio.c
gcc -c -I..\lib\CORE -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE
-g -O2
-D__MSVCRT__ -o.\mini\win32.o win32.c
In file included from ..\perl.h​:1543,
from win32.c​:28​:
win32.h​:12​: warning​: `_WIN32_WINNT' redefined
c​:\gcc-2.95.2\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i386-mingw3
2msvc\include\windef.h​:11​: warning​: this is the location of the previous
definit
ion
win32.c​: In function `win32_stat'​:
win32.c​:1088​: warning​: passing arg 2 of `_wstat' from incompatible pointer
type
win32.c​: In function `win32_fopen'​:
win32.c​:2065​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_fdopen'​:
win32.c​:2082​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_freopen'​:
win32.c​:2098​: warning​: return makes pointer from integer without a cast
win32.c​: In function `win32_fsetpos'​:
win32.c​:2173​: warning​: passing arg 2 of `fsetpos' discards qualifiers from
point
er target type
win32.c​: In function `Nt4CreateHardLinkW'​:
win32.c​:2376​: union has no member named `HighPart'
win32.c​:2377​: union has no member named `LowPart'

This is the only real problem, I think. I have gotten Perl to build
(Win95/GCC-2.95.2-Minw32) after just fixing this line. Right above it is a
"#ifdef __BORLANDC__", Change that to "#if defined(__BORLANDC__) || defined
(__MINGW32__)" and everything should build.

win32.c​: In function `w32_DomainName'​:
win32.c​:3317​: warning​: passing arg 2 of `WideCharToMultiByte' makes
integer from
pointer without a cast
win32.c​:3321​: warning​: passing arg 2 of `WideCharToMultiByte' makes
integer from
pointer without a cast
dmake.exe​: Error code 1, while making '.\mini\win32.o'

______________________________________________________
Get Your Private, Free Email at http​://www.hotmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant