This is the mail archive of the cygwin@cygwin.com 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]

Perl - trying to install libwin32


Hello all,

I'm trying to install the perl libwin32 package under cygwin. I'm
following the steps given in this message:

http://sources.redhat.com/ml/cygwin/2003-01/msg00581.html

, downloaded the source and the patch applies without errors, but I hit
a bunch of what looks like linking errors when it tries to compile
Win32::APIFile.

I expect I'm either missing a cygwin module, or I haven't got the cywin
environment set up correctly - does anyone have any suggestions as to
where I can start looking?

Problem details
---------------
Windows NT 4.0, SP6a

$ uname -a
CYGWIN_NT-4.0 wm_marlin 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
unknown Cygwin


The attempt to compile goes like this (After running perl Makefile.PL):

$ make
cp Win32.pm blib/lib/Win32.pm
make[1]: Entering directory `/home/coldfusion/libwin32-0.191/APIFile'
cp cFile.pc ../blib/arch/Win32API/File/cFile.pc
cp File.pm ../blib/lib/Win32API/File.pm
/usr/bin/perl.exe /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  File.xs >
File.xsc && mv File.xsc File.c
gcc -c   -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB
-O3   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" 
"-I/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE"   File.c
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.0/cygwin-multi-64int/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.0/cygwin-multi-64int/CORE/libperl.dll.a
Creating library file: libFile.dll.a
File.o(.text+0x50a):File.c: undefined reference to `_CloseHandle'
File.o(.text+0x651):File.c: undefined reference to `_GetLastError'
File.o(.text+0xab2):File.c: undefined reference to `_CopyFileA'

... Lots more link errors ...

File.o(.text+0x18b31):File.c: undefined reference to `_GetLastError'
File.o(.text+0x18d6a):File.c: undefined reference to `_SetErrorMode'
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.0/cygwin-multi-64int/CORE/libperl.dll.a
 
make[1]: *** [../blib/arch/auto/Win32API/File/File.dll] Error 1
make[1]: Leaving directory `/home/coldfusion/libwin32-0.191/APIFile'
make: *** [subdirs] Error 2
-- 
Paul W

  Hofstadters law:
    "Everything takes longer than you expect, even when you take 
     into account Hofstadters law."

This e-mail and any accompanying attachments may contain confidential and proprietary information.  This information is private and
protected by law and accordingly, if you are not the intended recipient,
you are requested to delete this entire communication immediately and
are notified that any disclosure, copying or distribution, or taking any
action based on this information is prohibited.

E-mails cannot be guaranteed to be secure or free of errors or viruses. 
The sender does not accept any liability or responsibility for any
interception, corruption, destruction, loss, late arrival or
incompleteness of or tampering or interference with any of the
information contained in this e-mail or for its incorrect delivery or
non delivery for whatsoever reason or its effect upon any electronic
device of the recipient.

If verification of this e-mail or any attachment is required, please
request a hardcopy version.


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