Re: cc: Error: modperl_exports.c under Tru64 Unix

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

From: Stas Bekman
Subject: Re: cc: Error: modperl_exports.c under Tru64 Unix
Date: 00:43 on 14 Dec 2004
sdfgsd sergserg wrote:
> Tried to compile RC1 under HP Tru64 Unix 4.0g(JAVA) AS1200 2@533MHz (ev56)
> 
> (Static build, because I think Tru64 doesn't support dynamic loading)
> First I ran:
> 
> perl Makefile.PL MP_USE_STATIC=1 \
>     MP_AP_PREFIX=/house/doink123/httpd-2.0.52 \
>     MP_AP_CONFIGURE="--with-mpm=prefork --prefix=/house/doink123/ap_tru64_4g"
> 
> 
> But I got this error:
> 
> 
> 
> 
> then I ran:
> perl Makefile.PL MP_USE_STATIC=1 \
>     MP_AP_PREFIX=/house/doink123/httpd-2.0.52 \
>     MP_AP_CONFIGURE="--with-mpm=prefork"
> 
> and this phase completed successfully. The error came when I ran make.
> 
> cc -I/house/doink123/mod_perl-2.0.0-RC1/src/modules/perl -I/house/doink123/mod_perl-2.0.0-RC1/xs -I/house/doink123/httpd-2.0.52/include -I/house/doink123/httpd-2.0.52/srclib/apr/include -I/house/doink123/httpd-2.0.52/srclib/apr-util/include -I/house/doink123/httpd-2.0.52/os/unix -std -fprm d -ieee -D_INTRINSICS -I/usr/local/include -DLANGUAGE_C -I/usr/local/lib/perl5/5.6.1/alpha-dec_osf/CORE -DMOD_PERL -DMP_COMPAT_1X -O4 -c modperl_xsinit.c
> cc -I/house/doink123/mod_perl-2.0.0-RC1/src/modules/perl -I/house/doink123/mod_perl-2.0.0-RC1/xs -I/house/doink123/httpd-2.0.52/include -I/house/doink123/httpd-2.0.52/srclib/apr/include -I/house/doink123/httpd-2.0.52/srclib/apr-util/include -I/house/doink123/httpd-2.0.52/os/unix -std -fprm d -ieee -D_INTRINSICS -I/usr/local/include -DLANGUAGE_C -I/usr/local/lib/perl5/5.6.1/alpha-dec_osf/CORE -DMOD_PERL -DMP_COMPAT_1X -O4 -c modperl_exports.c
> cc: Warning: /usr/local/lib/perl5/5.6.1/alpha-dec_osf/CORE/config.h, line 41: The redefinition of the macro "__attribute__" conflicts with a current definition because the spelling of one or more parameters is different.  The redefinition is now in effect. (macroredef)
> #define __attribute__(_arg_)
> ----------------------^
> cc: Warning: /usr/local/lib/perl5/5.6.1/alpha-dec_osf/CORE/perl.h, line 23: The redefinition of the macro "VOIDUSED" conflicts with a current definition because the replacement lists differ.  The redefinition is now in effect. (macroredef)
> #define VOIDUSED 1
> -----------------^

those are 5.6.1 issues, fixed in 5.8.x, but they are just warnings.

> cc: Error: modperl_exports.c, line 195: In the initializer for modperl_hack_io_apache_init, "modperl_io_apache_init" is not declared. (undeclared)
> const void *modperl_hack_io_apache_init = (const void *)modperl_io_apache_init;

modperl_exports.c starts with:
#include "mod_perl.h"

which includes

#include "modperl_io_apache.h"

which declares:

MP_INLINE void modperl_io_apache_init(pTHX);

though it's #ifdef'ed with:

#ifdef PERLIO_LAYERS

so that means that modperl_exports.c shouldn't include those symbols.

I suppose that we simply didn't test static builds with 5.6.x perls, and 
hence have missed this problem. let me try that first to see if I can 
reproduce that.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

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

(message missing)

cc: Error: modperl_exports.c under Tru64 Unix
sdfgsd sergserg 17:16 on 13 Dec 2004

Re: cc: Error: modperl_exports.c under Tru64 Unix
Stas Bekman 00:43 on 14 Dec 2004

Re: cc: Error: modperl_exports.c under Tru64 Unix
Philippe M. Chiasson 21:51 on 14 Dec 2004

Re: cc: Error: modperl_exports.c under Tru64 Unix
Philippe M. Chiasson 00:35 on 15 Dec 2004

Re: cc: Error: modperl_exports.c under Tru64 Unix
Philippe M. Chiasson 01:33 on 15 Dec 2004

Re: cc: Error: modperl_exports.c under Tru64 Unix
sdfgsd sergserg 07:56 on 14 Dec 2004

Re: cc: Error: modperl_exports.c under Tru64 Unix
sdfgsd sergserg 14:34 on 15 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52