public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 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

* Re: Perl - trying to install libwin32
  2003-09-22 14:35 Perl - trying to install libwin32 Paul W
@ 2003-09-22 15:06 ` Gerrit P. Haase
  2003-09-22 15:12   ` Paul W
  0 siblings, 1 reply; 14+ messages in thread
From: Gerrit P. Haase @ 2003-09-22 15:06 UTC (permalink / raw)
  To: Paul W; +Cc: cygwin

Paul schrieb:

> 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

[...]

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

Strange error, the functions are in the Windows DLL: kernel32.dll
Have you installed the w32api package ( ls /usr/lib/w32api )?

Which compiler are you using?  I used 3.2.x to build perl.

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

* Re: Perl - trying to install libwin32
  2003-09-22 15:06 ` Gerrit P. Haase
@ 2003-09-22 15:12   ` Paul W
  2003-09-22 18:21     ` Gerrit P. Haase
  0 siblings, 1 reply; 14+ messages in thread
From: Paul W @ 2003-09-22 15:12 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

On Mon, 2003-09-22 at 16:49, Gerrit P. Haase wrote:
> Paul schrieb:
> 
> > Hello all,
> 
> > I'm trying to install the perl libwin32 package under cygwin. I'm
> > following the steps given in this message:
> 
> Strange error, the functions are in the Windows DLL: kernel32.dll
> Have you installed the w32api package ( ls /usr/lib/w32api )?

Yep, that's there and /usr/lib/w32api/libkernel32.a exists.

> Which compiler are you using?  I used 3.2.x to build perl.
> 

$ gcc --version
gcc (GCC) 3.3.1 (cygming special)



> Gerrit
-- 
Paul W

"It was half way to Rivendell when the drugs began to take hold" 
   -- Hunter S Tolkien "Fear and Loathing in Barad Dur"

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

* Re: Perl - trying to install libwin32
  2003-09-22 15:12   ` Paul W
@ 2003-09-22 18:21     ` Gerrit P. Haase
  0 siblings, 0 replies; 14+ messages in thread
From: Gerrit P. Haase @ 2003-09-22 18:21 UTC (permalink / raw)
  To: Paul W; +Cc: cygwin

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

>>Strange error, the functions are in the Windows DLL: kernel32.dll
>>Have you installed the w32api package ( ls /usr/lib/w32api )?

> Yep, that's there and /usr/lib/w32api/libkernel32.a exists.

>>Which compiler are you using?  I used 3.2.x to build perl.

> $ gcc --version
> gcc (GCC) 3.3.1 (cygming special)

Can you please try if it works with gcc 3.2 20020927 (prerelease),
since the perl-5.8.0 release was built under cygwin-1.3.22 with
this compiler.  There may be incompatibilities when using different 
compilers.

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

* Re: Perl - trying to install libwin32
  2003-10-30 21:13           ` Charles Owens
@ 2003-10-30 21:51             ` Gerrit P. Haase
  0 siblings, 0 replies; 14+ messages in thread
From: Gerrit P. Haase @ 2003-10-30 21:51 UTC (permalink / raw)
  To: cygwin

Charles wrote:

> Gerrit (and others),

> Thanks for the help thus far.

> Needing to get some real work done for now I've downgraded to perl 
> 5.6.1... libwin32 builds okay except for Win32::Job.  I hacked in a 
> dummy Makefile to just skip over it.

> In all cases I've been using Rafael Kitover's patch... announced this 
> patch January.  Here's the URL.

> http://www.io.com/~rkitover/libwin32-0.191-port.diff


> Has anyone actually built it successfully with perl-5.8.1?   Where's the
> recipe?

Not that I'm aware of, but it should be independent of the perl version.
I'll try to use some time at the weekend to take a look.


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


--
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
       [not found]         ` <25318427845.20031022085800@familiehaase.de>
@ 2003-10-30 21:13           ` Charles Owens
  2003-10-30 21:51             ` Gerrit P. Haase
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Owens @ 2003-10-30 21:13 UTC (permalink / raw)
  To: Gerrit @ cygwin

Gerrit (and others),

Thanks for the help thus far.

Needing to get some real work done for now I've downgraded to perl 
5.6.1... libwin32 builds okay except for Win32::Job.  I hacked in a 
dummy Makefile to just skip over it.

In all cases I've been using Rafael Kitover's patch... announced this 
patch January.  Here's the URL.

http://www.io.com/~rkitover/libwin32-0.191-port.diff


Has anyone actually built it successfully with perl-5.8.1?   Where's the 
recipe?

Thanks,

Charles

Gerrit P. Haase wrote:

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

-- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  Charles N. Owens                              charles.n.owens@enc.edu
                                    http://www.enc.edu/~charles.n.owens
  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

* Re: Perl - trying to install libwin32
  2003-10-18  7:03     ` Igor Pechtchanski
@ 2003-10-22  1:59       ` Charles Owens
       [not found]         ` <25318427845.20031022085800@familiehaase.de>
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Owens @ 2003-10-22  1:59 UTC (permalink / raw)
  To: cygwin

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?

Thanks,
Charles

Igor Pechtchanski wrote:

>Charles,
>
>Linkers like forward references, and don't understand back references.
>The libraries should go to the very end of the line, after the object
>files (and I believe the *FLAGS vars usually get put right after the
>executable).  You might need to use some other variable for this.
>
>If the libraries are at the end of the gcc invocation, please post the
>exact gcc command you get when compiling.
>	Igor
>
>On Fri, 17 Oct 2003, Charles Owens wrote:
>
>  
>
>>Okay... (just now getting back to this).
>>
>>Thanks for the pointer... but it must be something else.
>>
>>Since the build is failing in APIFile I've added this to APIFile/Makefile
>>
>>   LDDLFLAGS = -L/usr/lib/w32api -lkernel32 -I/usr/include/w32api
>>
>>When I run 'make' I do see that the gcc line in question now has these
>>options... but the link fails in the same way as before. (lots of
>>unresolved reverences, eg. "...File.c: undefined reference to
>>'_CloseHandle'")
>>
>>Any thoughts on what my next step should be?
>>
>>Thanks much,
>>
>>Charles
>>
>>
>>Gerrit P. Haase wrote:
>>
>>    
>>
>>>>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):
>>>>        
>>>>
>>>Try adding libkernel32.a (-L/usr/lib/w32api -lkernel32) to the linkline?
>>>
>>>Gerrit
>>>      
>>>
>
>  
>

-- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  Charles N. Owens                              charles.n.owens@enc.edu
                                    http://www.enc.edu/~charles.n.owens
  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-18  6:06   ` Charles Owens
@ 2003-10-18  7:03     ` Igor Pechtchanski
  2003-10-22  1:59       ` Charles Owens
  0 siblings, 1 reply; 14+ messages in thread
From: Igor Pechtchanski @ 2003-10-18  7:03 UTC (permalink / raw)
  To: Charles Owens; +Cc: cygwin

Charles,

Linkers like forward references, and don't understand back references.
The libraries should go to the very end of the line, after the object
files (and I believe the *FLAGS vars usually get put right after the
executable).  You might need to use some other variable for this.

If the libraries are at the end of the gcc invocation, please post the
exact gcc command you get when compiling.
	Igor

On Fri, 17 Oct 2003, Charles Owens wrote:

> Okay... (just now getting back to this).
>
> Thanks for the pointer... but it must be something else.
>
> Since the build is failing in APIFile I've added this to APIFile/Makefile
>
>    LDDLFLAGS = -L/usr/lib/w32api -lkernel32 -I/usr/include/w32api
>
> When I run 'make' I do see that the gcc line in question now has these
> options... but the link fails in the same way as before. (lots of
> unresolved reverences, eg. "...File.c: undefined reference to
> '_CloseHandle'")
>
> Any thoughts on what my next step should be?
>
> Thanks much,
>
> Charles
>
>
> Gerrit P. Haase wrote:
>
> >>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):
> >
> >Try adding libkernel32.a (-L/usr/lib/w32api -lkernel32) to the linkline?
> >
> >Gerrit

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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-01 10:02 ` Gerrit P. Haase
@ 2003-10-18  6:06   ` Charles Owens
  2003-10-18  7:03     ` Igor Pechtchanski
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Owens @ 2003-10-18  6:06 UTC (permalink / raw)
  To: Gerrit P. Haase; +Cc: cygwin

Okay... (just now getting back to this).

Thanks for the pointer... but it must be something else.

Since the build is failing in APIFile I've added this to APIFile/Makefile

   LDDLFLAGS = -L/usr/lib/w32api -lkernel32 -I/usr/include/w32api

When I run 'make' I do see that the gcc line in question now has these 
options... but the link fails in the same way as before. (lots of 
unresolved reverences, eg. "...File.c: undefined reference to 
'_CloseHandle'")

Any thoughts on what my next step should be?

Thanks much,

Charles


Gerrit P. Haase wrote:

>>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):
>>    
>>
>
>Try adding libkernel32.a (-L/usr/lib/w32api -lkernel32) to the linkline?
>
>
>Gerrit
>  
>

-- 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  Charles N. Owens                              charles.n.owens@enc.edu
                                    http://www.enc.edu/~charles.n.owens
  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-01  4:00 Charles Owens
  2003-10-01  7:13 ` Paul W
@ 2003-10-01 10:02 ` Gerrit P. Haase
  2003-10-18  6:06   ` Charles Owens
  1 sibling, 1 reply; 14+ messages in thread
From: Gerrit P. Haase @ 2003-10-01 10:02 UTC (permalink / raw)
  To: Charles Owens; +Cc: cygwin

Charles schrieb:

> 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):

Try adding libkernel32.a (-L/usr/lib/w32api -lkernel32) to the linkline?


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

* Re: Perl - trying to install libwin32
  2003-10-01  7:13 ` Paul W
@ 2003-10-01  9:20   ` Paul W
  0 siblings, 0 replies; 14+ messages in thread
From: Paul W @ 2003-10-01  9:20 UTC (permalink / raw)
  To: cygwin

On Wed, 2003-10-01 at 04:57, Charles Owens wrote:
> 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) .

As a followup to my last message,

The reason that I wanted libwin32 was to drive Word and Excel via COM. I
discovered that COM was somehow borked (didn't work properly under VB
either). I assumed that the perl compile problem was due to bitrot on
that box and I've switched to another machine, which has ActivePerl
installed on it. I'd prefer to use Cygwin's perl for CPAN and
consistency with Linux, but it's all working so I don't want to rock the
boat at the moment...
-- 
Paul W

   "How long the road is. But, for all the time the journey has already 
    taken, how you have needed every second of it in order to learn what 
    the road passes by."




--
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-01  4:00 Charles Owens
@ 2003-10-01  7:13 ` Paul W
  2003-10-01  9:20   ` Paul W
  2003-10-01 10:02 ` Gerrit P. Haase
  1 sibling, 1 reply; 14+ messages in thread
From: Paul W @ 2003-10-01  7:13 UTC (permalink / raw)
  To: cygwin

On Wed, 2003-10-01 at 04:57, Charles Owens wrote:
> 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) .

As a followup to my last message,

The reason that I wanted libwin32 was to drive Word and Excel via COM. I
discovered that COM was somehow borked (didn't work properly under VB
either). I assumed that the perl compile problem was due to bitrot on
that box and I've switched to another machine, which has ActivePerl
installed on it. I'd prefer to use Cygwin's perl for CPAN and
consistency with Linux, but it's all working so I don't want to rock the
boat at the moment...
-- 
Paul W

   "How long the road is. But, for all the time the journey has already 
    taken, how you have needed every second of it in order to learn what 
    the road passes by."




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

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-09-22 14:35 Perl - trying to install libwin32 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
2003-10-01  4:00 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
2003-10-22  9:55 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).