From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20262 invoked by alias); 22 Sep 2003 14:23:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20254 invoked from network); 22 Sep 2003 14:23:56 -0000 Received: from unknown (HELO lnx-mailroute.internal.boebank.co.za) (196.34.11.20) by sources.redhat.com with SMTP; 22 Sep 2003 14:23:56 -0000 Received: from mime.boe.co.za ([10.9.163.14]) by lnx-mailroute.internal.boebank.co.za (8.11.6/8.11.6) with ESMTP id h8MENsD22903 for ; Mon, 22 Sep 2003 16:23:54 +0200 Received: from seal.boe.co.za (unverified) by mime.boe.co.za (Content Technologies SMTPRS 4.3.6) with ESMTP id for ; Mon, 22 Sep 2003 16:18:55 +0200 Received: from gkipper (10.9.20.83 [10.9.20.83]) by seal.boe.co.za with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id S55M1JW6; Mon, 22 Sep 2003 16:23:48 +0200 Subject: Perl - trying to install libwin32 From: Paul W To: cygwin@cygwin.com Content-Type: text/plain Message-Id: <1064240595.3667.20.camel@shark> Mime-Version: 1.0 Date: Mon, 22 Sep 2003 14:35:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg01407.txt.bz2 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/