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

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

From: Nick ***
Subject: Re: mod_perl.c:61: `my_perl' undeclared under Cygwin
Date: 15:01 on 19 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.
>>

>No, I get the same error :(

I have upgraded my version of cygwin from 1.3.xx to 1.5.12.
Now when I run make I get a liitle bit different error:

gcc -c  -I/usr/src/mp2/src/modules/perl -I/usr/src/mp2/xs -I/usr/src/httpd/inclu
de -I/usr/src/httpd/srclib/apr/include -I/usr/src/httpd/srclib/apr-util/include
-I/usr/src/httpd/os/unix -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/us
r/local/include -DMOD_PERL -DMP_COMPAT_1X  -DUSEIMPORTLIB -O2   -DVERSION=\"0.01
\" -DXS_VERSION=\"0.01\"  "-I/usr/lib/perl5/5.8.5/cygwin-thread-multi-64int/CORE
"  -DMP_HAVE_APR_LIBS Base64.c
In file included from Base64.xs:26:
/usr/src/mp2/xs/APR/Base64/APR__Base64.h:37: error: external linkage required fo
r symbol 'MPXS_apr_base64_encode' because of 'dllexport' attribute.
/usr/src/mp2/xs/APR/Base64/APR__Base64.h:46: error: external linkage required fo
r symbol 'MPXS_apr_base64_decode' because of 'dllexport' attribute.
make[3]: *** [Base64.o] Error 1
make[3]: Leaving directory `/usr/src/mp2/WrapXS/APR/Base64'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/usr/src/mp2/WrapXS/APR'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/usr/src/mp2/WrapXS'
make: *** [subdirs] Error 2

-----------------------------------------------------------------
Известяване за получено писмо в АБВ.бг - http://promo.abv.bg/

        -- 
        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
Nick *** 15:01 on 19 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