public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Perl - trying to install libwin32
@ 2003-10-01  4:00 Charles Owens
  2003-10-01  7:13 ` Paul W
  2003-10-01 10:02 ` Gerrit P. Haase
  0 siblings, 2 replies; 14+ messages in thread
From: Charles Owens @ 2003-10-01  4:00 UTC (permalink / raw)
  To: cygwin; +Cc: gerrit

Howdy,

I'm also seeing the same problem as Paul when trying to compile 
libwin32-0.191 (patched) on cygwin.  This is with both gcc 3.3.1 and gcc 
3.2 20020927 (prerelease) .

Any suggestions?  Here's what "make" is giving me (with gcc 3.2):

make[1]: Entering directory `/home/owensc/dev/libwin32-0.191/APIFile'
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/Fi
le/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'

 ---- many more like lines ----
 
File.o(.text+0x18b51):File.c: undefined reference to `_GetLastError'
File.o(.text+0x18d8a):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/owensc/dev/libwin32-0.191/APIFile'
make: *** [subdirs] Error 2



Thanks much,

-- 
-------------------------------------------------------------------------
  Charles N. Owens                                Email: owensc@enc.edu
                                             http://www.enc.edu/~owensc
  Senior Technology Officer
  Information Technology Services              Eastern Nazarene College
-------------------------------------------------------------------------



--
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] 14+ messages in thread
* Re: Perl - trying to install libwin32
@ 2003-10-22  9:55 Gerrit P. Haase
  0 siblings, 0 replies; 14+ messages in thread
From: Gerrit P. Haase @ 2003-10-22  9:55 UTC (permalink / raw)
  To: cygwin

Hallo Charles,

Am Mittwoch, 22. Oktober 2003 um 04:01 schriebst du:

> Igor,

> Here's what's getting produced by make:

> gcc -shared -o File.dll -Wl,--out-implib=libFile.dll.a 
> -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 
> -L/usr/local/lib -L/usr/local/lib -L/usr/lib/w32api 
> -I/usr/include/w32api -s File.o 
> /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -lkernel32

> I've also tried (by hand):

> gcc -shared -o File.dll -Wl,--out-implib=libFile.dll.a 
> -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 -s 
> File.o /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a 
> -L/usr/local/lib -L/usr/local/lib -L/usr/lib/w32api -lkernel32 
> -I/usr/include/w32api

> Any thoughts?

Hmm, which version of libwin  (download URL) and can you send a patch
of your current tree against the source?  I'll try if it works for me
(though with perl-5.8.1, but this should make no difference).


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] 14+ messages in thread
* Perl - trying to install libwin32
@ 2003-09-22 14:35 Paul W
  2003-09-22 15:06 ` Gerrit P. Haase
  0 siblings, 1 reply; 14+ messages in thread
From: Paul W @ 2003-09-22 14:35 UTC (permalink / raw)
  To: cygwin

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/

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

end of thread, other threads:[~2003-10-30 20:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01  4:00 Perl - trying to install libwin32 Charles Owens
2003-10-01  7:13 ` Paul W
2003-10-01  9:20   ` Paul W
2003-10-01 10:02 ` Gerrit P. Haase
2003-10-18  6:06   ` Charles Owens
2003-10-18  7:03     ` Igor Pechtchanski
2003-10-22  1:59       ` Charles Owens
     [not found]         ` <25318427845.20031022085800@familiehaase.de>
2003-10-30 21:13           ` Charles Owens
2003-10-30 21:51             ` Gerrit P. Haase
  -- strict thread matches above, loose matches on Subject: below --
2003-10-22  9:55 Gerrit P. Haase
2003-09-22 14:35 Paul W
2003-09-22 15:06 ` Gerrit P. Haase
2003-09-22 15:12   ` Paul W
2003-09-22 18:21     ` 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).