PERL PERL5 PORTERS 30 PERL 34181 BUILD PROBLEM WITH WIN32API FILE PROBLEM
Date: 19 Feb 2005 09:42:23 -0000

Subject: [perl #34181] Build problem with Win32API::File problem
From: perlbug-followup@no-spam (Arunkumar)

# New Ticket Created by "Arunkumar" # Please include the string: [perl #34181]
# in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34181 >

Hi,

I am getting the following error while installing Win32API::File module
in Cygwin platform.


Regards,

Arun

==========================================================================

Error log:

===========================================================================

$make
gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include
-DUSEIMPORTLIB -O3 -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\"
"-I/usr/lib/perl5

/5.8/cygwin/CORE" File.c
File.c: In function `XS_Win32API__File_CloseHandle':

File.c:122: warning: cast to pointer from integer of different size
File.c: In function `XS_Win32API__File_CreateFileA':

File.c:254: warning: cast to pointer from integer of different size
File.xs:133: warning: cast from pointer to integer of different size
File.xs:134: warning: cast from pointer to integer of different size
File.xs:136: warning: cast from pointer to integer of different size
File.c: In function `XS_Win32API__File_CreateFileW':

File.c:307: warning: cast to pointer from integer of different size
File.xs:157: warning: cast from pointer to integer of different size
File.xs:158: warning: cast from pointer to integer of different size
File.xs:160: warning: cast from pointer to integer of different size
File.c: In function `XS_Win32API__File_DeviceIoControl':

File.c:485: warning: cast to pointer from integer of different size
File.c: In function `XS_Win32API__File_FdGetOsFHandle':

File.c:548: warning: cast from pointer to integer of different size
File.c: In function `XS_Win32API__File_GetFileType':

File.c:615: warning: cast to pointer from integer of different size
File.c: In function `XS_Win32API__File_GetHandleInformation':

File.c:639: warning: cast to pointer from integer of different size
File.c: In function `XS_Win32API__File_ReadFile':

File.c:1171: warning: cast to pointer from integer of different size
File.c: In function `XS_Win32API__File_SetFilePointer':

File.c:1239: warning: cast to pointer from integer of different size
File.c: In function `XS_Win32API__File_SetHandleInformation':

File.c:1279: warning: cast to pointer from integer of different size
File.c: In function `XS_Win32API__File_WriteFile':

File.c:1315: warning: cast to pointer from integer of different size
Running Mkbootstrap for Win32API::File ()

chmod 644 File.bs
rm -f blib/arch/auto/Win32API/File/File.dll
LD_RUN_PATH="" ld2 -s -L/usr/local/lib File.o -o blib/arch/auto/Win32API/File/

File.dll /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
gcc -shared -o File.dll -Wl,--out-implib=libFile.dll.a -Wl,--export-all-symbols
-Wl,--enable-auto-import -Wl,--stack,8388608 \

-s -L/usr/local/lib File.o /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
Creating library file: libFile.dll.a
File.o(.text+0x7490):File.c: undefined reference to `_win32_get_osfhandle'

File.o(.text+0x13da9):File.c: undefined reference to `_win32_open_osfhandle'

collect2: ld returned 1 exit status
perlld: *** system() failed to execute
gcc -shared -o File.dll -Wl,--out-implib=libFile.dll.a -Wl,--export-all-symbols
-Wl,--enable-auto-import -Wl,--stack,8388608 \

-s -L/usr/local/lib File.o /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a
make: *** [blib/arch/auto/Win32API/File/File.dll] Error 1


============================================================================
=



[Please do not change anything below this line]

-----------------------------------------------------------------

---

Flags:

category=install
severity=high
---

Site configuration information for perl v5.8.6:

Configured by gerrit at Thu Jan 27 11:04:16 EST 2005.

Summary of my perl5 (revision 5 version 8 subversion 6) configuration:

Platform:

osname=cygwin, osvers=1.5.12(0.11642), archname=cygwin-thread-multi-64int
uname='cygwin_nt-4.0 loreley 1.5.12(0.11642) 2004-11-10 08:34 i686 unknown unknown cygwin '

config_args='-de -Dmksymlinks -Duse64bitint -Dusethreads -Doptimize=-O3
-Dman3ext=3pm'

hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:

cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include',

optimize='-O3',

cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include'

ccversion='', gccversion='3.4.1 (cygming special)', gccosandvers=''

intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678

d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12

ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8

alignbytes=8, prototype=define
Linker and Libraries:

ld='ld2', ldflags =' -s -L/usr/local/lib'

libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -ldb -lcrypt -lgdbm_compat
perllibs=-lcrypt -lgdbm_compat
libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
gnulibc_version=''

Dynamic Linking:

dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'

cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'

Locally applied patches:

---

@no-spam for perl v5.8.6:

/usr/lib/perl5/5.8/cygwin
/usr/lib/perl5/5.8

/usr/lib/perl5/site_perl/5.8/cygwin
/usr/lib/perl5/site_perl/5.8

/usr/lib/perl5/site_perl/5.8

/usr/lib/perl5/vendor_perl/5.8/cygwin
/usr/lib/perl5/vendor_perl/5.8

/usr/lib/perl5/vendor_perl/5.8

.

---

Environment for perl v5.8.6:

HOME=/home/arunkuh
LANG (unset)

LANGUAGE (unset)

LD_LIBRARY_PATH (unset)

LOGDIR (unset)

PATH=/usr/lib/subversion/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cy gdrive/c/Perl/bin/:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/
WINNT/System32/Wbem:/cygdrive/c/Program Files/Rational/ClearCase/bin:/cygdrive/c/Cygwin/bin:/cygdrive/c/perl/5.005/b in:/cygdrive/c/perl/5.005/bin/MSWin32-x86:/cygdrive/d/Extended_C Drive_for_Installation/vc/Tools/WinNT:/cygdrive/d/Extended_C Drive_for_Installation/vc/MSDev98/Bin:/cygdrive/d/Extended_C Drive_for_Installation/vc/Tools:/cygdrive/d/Extended_C Drive_for_Installation/VC98/bin:/cygdrive/c/Program Files/Microsoft Visual Studio/Common/Tools/WinNT:/cygdrive/c/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin:/cygdrive/c/Program Files/Microsoft Visual Studio/Common/Tools:/cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin
PERL_BADLANG (unset)

SHELL (unset)

Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information.
If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@no-spam immediately and destroy all copies of this message and any attachments.