public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problems compiling Compress::Zlib under Perl.
@ 2001-04-25  1:16 RUMBLE, PHIL (A-Scotland, ex1)
  2001-04-25  2:55 ` AW: " Ralf Habacker
  0 siblings, 1 reply; 3+ messages in thread
From: RUMBLE, PHIL (A-Scotland, ex1) @ 2001-04-25  1:16 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

People,

I keep getting this error. Any clues?



$ make
gcc -c -I/usr/include -DPERL_USE_SAFE_PUTENV -DHAS_SBRK_PROTO
-fno-strict-aliasing -DUSEIMPORTLIB -O2   -DVERSION=\"1.11\"
-DXS_VERSION=\"1.11\"  -I/usr/lib/perl5/5.6.1/cygwin/CORE  Zlib.c
Running Mkbootstrap for Compress::Zlib ()
chmod 644 Zlib.bs
rm -f blib/arch/auto/Compress/Zlib/Zlib.dll
LD_RUN_PATH="/usr/local/lib" ld2 -o blib/arch/auto/Compress/Zlib/Zlib.dll
-s -L/usr/local/lib Zlib.o   /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a
-L/lib -lz
dllwrap --dllname Zlib.dll --driver-name gcc --dlltool dlltool
--export-all-symbols --as as --output-def libZlib.def --output-lib libZlib.a
\
 -s -L/usr/local/lib Zlib.o /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a
-L/lib -lz
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-3/../../../../i686-pc-cygwin/bin/ld:
cannot find -luser32
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
perlld: *** system() failed to execute
dllwrap --dllname Zlib.dll --driver-name gcc --dlltool dlltool
--export-all-symbols --as as --output-def libZlib.def --output-lib libZlib.a
\
 -s -L/usr/local/lib Zlib.o /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a
-L/lib -lz

make: *** [blib/arch/auto/Compress/Zlib/Zlib.dll] Error 1

Thanks in Advance

Rumble

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* AW: Problems compiling Compress::Zlib under Perl.
  2001-04-25  1:16 Problems compiling Compress::Zlib under Perl RUMBLE, PHIL (A-Scotland, ex1)
@ 2001-04-25  2:55 ` Ralf Habacker
  0 siblings, 0 replies; 3+ messages in thread
From: Ralf Habacker @ 2001-04-25  2:55 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2164 bytes --]

Add --driver-flags -Wl,--verbose or --driver-flags -v to the dllwrap command
line to see which libs are explicit added

Regards

Ralf Habacker
EMail: Ralf.Habacker@freenet.de
       Ralf.Habacker@saght.tessag.com

> -----Ursprüngliche Nachricht-----
> Von: cygwin-owner@sources.redhat.com
> [ mailto:cygwin-owner@sources.redhat.com]Im Auftrag von RUMBLE,PHIL
> (A-Scotland,ex1)
> Gesendet am: Mittwoch, 25. April 2001 10:16
> An: 'cygwin@sourceware.cygnus.com'
> Betreff: Problems compiling Compress::Zlib under Perl.
>
> People,
>
> I keep getting this error. Any clues?
>
>
>
> $ make
> gcc -c -I/usr/include -DPERL_USE_SAFE_PUTENV -DHAS_SBRK_PROTO
> -fno-strict-aliasing -DUSEIMPORTLIB -O2   -DVERSION=\"1.11\"
> -DXS_VERSION=\"1.11\"  -I/usr/lib/perl5/5.6.1/cygwin/CORE  Zlib.c
> Running Mkbootstrap for Compress::Zlib ()
> chmod 644 Zlib.bs
> rm -f blib/arch/auto/Compress/Zlib/Zlib.dll
> LD_RUN_PATH="/usr/local/lib" ld2 -o blib/arch/auto/Compress/Zlib/Zlib.dll
> -s -L/usr/local/lib Zlib.o
> /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a
> -L/lib -lz
> dllwrap --dllname Zlib.dll --driver-name gcc --dlltool dlltool
> --export-all-symbols --as as --output-def libZlib.def
> --output-lib libZlib.a
> \
>  -s -L/usr/local/lib Zlib.o
> /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a
> -L/lib -lz
> dllwrap: no export definition file provided
> dllwrap: creating one, but that may not be what you want
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-3/../../../../i686-pc-cygwi
> n/bin/ld:
> cannot find -luser32
> collect2: ld returned 1 exit status
> dllwrap: gcc exited with status 1
> perlld: *** system() failed to execute
> dllwrap --dllname Zlib.dll --driver-name gcc --dlltool dlltool
> --export-all-symbols --as as --output-def libZlib.def
> --output-lib libZlib.a
> \
>  -s -L/usr/local/lib Zlib.o
> /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a
> -L/lib -lz
>
> make: *** [blib/arch/auto/Compress/Zlib/Zlib.dll] Error 1
>
> Thanks in Advance
>
> Rumble
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* AW: Problems compiling Compress::Zlib under Perl.
  2001-04-25  2:24 RUMBLE, PHIL (A-Scotland, ex1)
@ 2001-04-25  2:55 ` Ralf Habacker
  0 siblings, 0 replies; 3+ messages in thread
From: Ralf Habacker @ 2001-04-25  2:55 UTC (permalink / raw)
  To: cygwin

> People,
>
> Here is the vebose output.
>
> Thanks
>
> Rumble
>
> $ make
> Running Dynamic Lib Section
> rm -f blib/arch/auto/Compress/Zlib/Zlib.dll
> LD_RUN_PATH="/usr/local/lib" ld2 -o blib/arch/auto/Compress/Zlib/Zlib.dll
> -s -L/usr/local/lib Zlib.o --driver-flags -Wl,--verbose
> /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a -L/lib -lz
> dllwrap --dllname Zlib.dll --driver-name gcc --dlltool dlltool
> --export-all-symbols --as as --output-def libZlib.def
> --output-lib libZlib.a
> \
>  -s -L/usr/local/lib Zlib.o --driver-flags -Wl,--verbose
> /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.a -L/lib -lz
> dllwrap: no export definition file provided
> attempt to open /usr/lib/w32api/libuser32.a succeeded

 you wrote "cannot find -luser32": The line above say that it was found

>/usr/local/lib/libcygwin.a(libcmain.o)(.text+0x6a):libcmain.c: undefined
>reference to `WinMain@16'

try this
--driver-flags --enable-stdcall-fixup         Link _sym to _sym@nn without
warnings

Additional look for older messages in the mailing list. May be you found
something.



Regards

Ralf Habacker
EMail: Ralf.Habacker@freenet.de
       Ralf.Habacker@saght.tessag.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2001-04-25  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-25  1:16 Problems compiling Compress::Zlib under Perl RUMBLE, PHIL (A-Scotland, ex1)
2001-04-25  2:55 ` AW: " Ralf Habacker
2001-04-25  2:24 RUMBLE, PHIL (A-Scotland, ex1)
2001-04-25  2:55 ` AW: " Ralf Habacker

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