Re: mod_perl.c:61: `my_perl' undeclared under Cygwin

[prev] [thread] [next] [Date index for 2004/12/16]

From: Randy Kobes
Subject: Re: mod_perl.c:61: `my_perl' undeclared under Cygwin
Date: 04:36 on 16 Dec 2004
On Wed, 15 Dec 2004, Stas Bekman wrote:

> sdfgsd sergserg wrote:
> [...]
> > /usr/src/mp2/xs/APR/Base64/APR__Base64.h: In function
> > `MPXS_apr_base64_encode':
> > /usr/src/mp2/xs/APR/Base64/APR__Base64.h:37: static
> > symbol `MPXS_apr_base64_enco de' is marked dllexport

> Sorry, but I've never seen this kind of errors before. Any
> chance you can find someone who groks cygwin
> compiler/linker so they can help to resolve those?

I'm not that familiar with cygwin, but if it means the
same as with VC++, I think the problem is that the
symbol is supposed to be static, but is marked with
dllexport, meaning it will appear in a dll (shared
library). Does the following patch change anything?

=======================================================
Index: lib/Apache/Build.pm
===================================================================
--- lib/Apache/Build.pm	(revision 111688)
+++ lib/Apache/Build.pm	(working copy)
@@ -31,13 +31,14 @@
 use constant HPUX   => $^O eq 'hpux';
 use constant OPENBSD => $^O eq 'openbsd';
 use constant WIN32  => $^O eq 'MSWin32';
+use constant CYGWIN => $^O eq 'cygwin';

 use constant MSVC => WIN32() && ($Config{cc} eq 'cl');

 use constant REQUIRE_ITHREADS => grep { $^O eq $_ } qw(MSWin32);
 use constant PERL_HAS_ITHREADS =>
     $Config{useithreads} && ($Config{useithreads} eq 'define');
-use constant BUILD_APREXT => WIN32();
+use constant BUILD_APREXT => WIN32() || CYGWIN();

 use ModPerl::Code ();
 use ModPerl::BuildOptions ();

=============================================================
It will build the aprext lib as a static lib, like Win32.

        -- 
        best regards,
randy

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

mod_perl.c:61: `my_perl' undeclared under Cygwin
sdfgsd sergserg 11:44 on 13 Dec 2004

Re: mod_perl.c:61: `my_perl' undeclared under Cygwin
sdfgsd sergserg 15:00 on 13 Dec 2004

Re: mod_perl.c:61: `my_perl' undeclared under Cygwin
sdfgsd sergserg 17:32 on 14 Dec 2004

Re: mod_perl.c:61: `my_perl' undeclared under Cygwin
Randy Kobes 04:36 on 16 Dec 2004

Re: mod_perl.c:61: `my_perl' undeclared under Cygwin
Philippe M. Chiasson 04:31 on 31 Jan 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52