Re: cpan generate wrong Makefile ??

"Gerrit P. Haase" <[email protected]> Mon, 17 May 2004 10:54:34 +0200
Newsgroups gmane.os.cygwin.perl
Organization Esse keine toten Tiere
Message-ID <[email protected]>
DominiX schrieb:

> when I build module for cygwin I often have strange problem
> like Makefile that do not contain the right informations for linking

> for example with the latest Gtk2-1.042 the building process hang at link
> stage with a lot of symbols undefined. all these symbols belong to libGlib2
> but nothing reference the file
> /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/Glib/libGlib.d
> ll.a

> if I just append this ligne on the gcc command line everything build
> correctly.
> so I usualy modify Makefile to append this line right after
> PERL_ARCHIVE       = $(PERL_INC)/libperl.dll.a
> like
> PERL_ARCHIVE       = $(PERL_INC)/libperl.dll.a \
> /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/Glib/libGlib.d
> ll.a

> *or* append
> PERL_ARCHIVE_AFTER =
> /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/Glib/libGlib.d
> ll.a

> and it compile and test with no trouble, but this look like weird to me.
> is there a setting for any MakeMaker or Extutils that I'm missing ?
> Am I the only one to have this problem ?


Take a look in Makefile.PL, there all dependencies should be listed.
If the dependency to libGlib is not included, how should MakeMaker know
about it?  Anyway, I wonder, why one Perl module depends on another
module, it should depend on cygglib2.dll and cyggtk.dll but not on
another Perl module DLL.  Reason: Perl modules should be loaded during
runtime, but not needed to link against.


Gerrit
-- 
=^..^=



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/ndFolB/TM