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

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

From: sdfgsd sergserg
Subject: Re: mod_perl.c:61: `my_perl' undeclared under Cygwin
Date: 17:32 on 14 Dec 2004
>Last time I had to do a similar workaround for AIX. Please see this 
section in lib/Apache/Build.pm and see if you can adjust the build to do 
something similar on cygwin. I'm not familiar with the linker/loader on 
that platform to tell you exactly what needs to be done.


I'll be experimenting on the linker flags.
My linker is GNU ld version 2.13.90 20030308.


Meanwhile I tryed to make static build.
The httpd executable is created without problem (there are some infos):
 
/usr/src/httpd/srclib/apr/libtool --silent --mode=link gcc      -DCYGWIN -DAP_HA
VE_DESIGNATED_INITIALIZER   -I/usr/src/httpd/srclib/apr/include -I/usr/src/httpd
/srclib/apr-util/include -I. -I/usr/src/httpd/os/unix -I/usr/src/httpd/server/mp
m/prefork -I/usr/src/httpd/modules/http -I/usr/src/httpd/modules/filters -I/usr/
src/httpd/modules/proxy -I/usr/src/httpd/include -I/usr/src/httpd/modules/genera
tors -I/usr/src/httpd/modules/dav/main -export-dynamic    -o httpd  modules.lo
/usr/src/mp2/src/modules/perl/mod_perl.a modules/aaa/mod_access.la modules/aaa/m
od_auth.la modules/filters/mod_include.la modules/loggers/mod_log_config.la modu
les/metadata/mod_env.la modules/metadata/mod_setenvif.la modules/http/mod_http.l
a modules/http/mod_mime.la modules/generators/mod_status.la modules/generators/m
od_autoindex.la modules/generators/mod_asis.la modules/generators/mod_cgi.la mod
ules/mappers/mod_negotiation.la modules/mappers/mod_dir.la modules/mappers/mod_i
map.la modules/mappers/mod_actions.la modules/mappers/mod_userdir.la modules/map
pers/mod_alias.la modules/mappers/mod_so.la server/mpm/prefork/libprefork.la ser
ver/libmain.la os/unix/libos.la  /usr/src/httpd/srclib/pcre/libpcre.la -L/usr/lo
cal/lib /usr/local/lib/perl5/5.8.5/cygwin/auto/DynaLoader/DynaLoader.a -L/usr/lo
cal/lib/perl5/5.8.5/cygwin/CORE -lperl -lcrypt -lgdbm_compat /usr/src/httpd/srcl
ib/apr-util/libaprutil-0.la -lgdbm -lexpat -liconv /usr/src/httpd/srclib/apr/lib
apr-0.la -lcrypt
Info: resolving _PL_defstash by linking to __imp__PL_defstash (auto-import)
Info: resolving _PL_stderrgv by linking to __imp__PL_stderrgv (auto-import)
Info: resolving _PL_tainting by linking to __imp__PL_tainting (auto-import)
Info: resolving _PL_perl_destruct_level by linking to __imp__PL_perl_destruct_le
vel (auto-import)
Info: resolving _PL_endav by linking to __imp__PL_endav (auto-import)
...


and everything seems fine until it's time to build APR/Base64:
cp Base64.pm ../../../blib/lib/APR/Base64.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap /usr/lo
cal/lib/perl5/5.8.5/ExtUtils/typemap -typemap /usr/src/mp2/xs/typemap  Base64.xs
 > Base64.xsc && mv Base64.xsc Base64.c
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 -DMOD
_PERL -DMP_COMPAT_1X  -DUSEIMPORTLIB -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.0
1\"  "-I/usr/local/lib/perl5/5.8.5/cygwin/CORE"  -DMP_HAVE_APR_LIBS Base64.c
In file included from Base64.xs:26:
/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
In file included from Base64.xs:26:
/usr/src/mp2/xs/APR/Base64/APR__Base64.h: In function `MPXS_apr_base64_decode':
/usr/src/mp2/xs/APR/Base64/APR__Base64.h:46: static symbol `MPXS_apr_base64_deco
de' is marked dllexport
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
Philippe M. Chiasson 04:31 on 31 Jan 2005

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