Hi,

I have Perl 5.34.0, and mod_perl2 does not build anymore. After a ton of warnings like :

/usr/local/lib/perl5/5.34/mach/CORE/thread.h:393:7: note: expanded from macro 'PERL_SET_CONTEXT'
} STMT_END
  ^~~~~~~~
/usr/local/lib/perl5/5.34/mach/CORE/perl.h:738:21: note: expanded from macro 'STMT_END'
#   define STMT_END     )
                        ^
I finally got an error :

[root@numenor mod_perl2]# MAKE_JOBS_UNSAFE=yes make -j 1
[...]
modperl_perl.c:271:16: error: cannot take the address of an rvalue of type 'U8 *' (aka 'unsigned char *')
    memcpy(&PL_hash_seed, &MP_init_hash_seed,
            ^~~~~~~~~~~~~
100 warnings and 1 error generated.
gmake[2]: *** [Makefile:114: modperl_perl.lo] Error 1
gmake[2]: Leaving directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.11/src/modules/perl'
gmake[1]: *** [Makefile:450: modperl_lib] Error 2
gmake[1]: Leaving directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.11'
*** [do-build] Error code 1
What is the problem and how to fix it ?

Cheers,

Xavier

--
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Senior Engineer
https://www.amdh.fr

Reply via email to