Perfect! Cleaning up the path worked wonders. on 4/07/2004 1:02 PM, Stas Bekman at [EMAIL PROTECTED] wrote:
> TGS wrote: >> I am having problems compiling mod_perl as the following errors report. >> >> ... >> make[1]: Entering directory >> `/usr/local/perl-cpan/build/mod_perl-1.29/Symbol' >> Running Mkbootstrap for Apache::Symbol () >> chmod 644 Symbol.bs >> rm -f ../blib/arch/auto/Apache/Symbol/Symbol.so >> LD_RUN_PATH="" gcc -shared -L/usr/local/lib Symbol.o -o >> ../blib/arch/auto/Apache/Symbol/Symbol.so >> chmod 755 ../blib/arch/auto/Apache/Symbol/Symbol.so >> cp Symbol.bs ../blib/arch/auto/Apache/Symbol/Symbol.bs >> chmod 644 ../blib/arch/auto/Apache/Symbol/Symbol.bs >> Bareword "gensym" not allowed while "strict subs" in use at >> /usr/lib/perl5/5.8.3/Pod/Parser.pm line 1158. >> Bareword "gensym" not allowed while "strict subs" in use at >> /usr/lib/perl5/5.8.3/Pod/Parser.pm line 1158. >> Compilation failed in require at /usr/lib/perl5/5.8.3/Pod/Man.pm line 30. >> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.3/Pod/Man.pm >> line 30. >> Compilation failed in require at >> /usr/lib/perl5/5.8.3/ExtUtils/Command/MM.pm line 86. >> make[1]: *** [manifypods] Error 255 >> make[1]: Leaving directory >> `/usr/local/perl-cpan/build/mod_perl-1.29/Symbol' >> make: *** [subdirs] Error 2 >> >> The offending /usr/lib/perl5/5.8.3/Pod/Parser.pm line 1158 is >> >> my ($in_fh, $out_fh) = (gensym, gensym) if ($] < 5.6); > > Your problem is that you've modified @INC to push "." before all other > directories. And it should be last. When "." is first in the path it picks > Symbol.pm when it's inside mod_perl-1.29/Symbol and it shouldn't. > >> %ENV: >> PERLLIB="/usr/local/perl5.005_02/lib/perl5:." > ^^^ > >> @INC: >> /usr/local/perl5.005_02/lib/perl5 >> . > ^^^ >> /usr/lib/perl5/5.8.3/i386-linux-thread-multi >> /usr/lib/perl5/5.8.3 >> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi >> /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi >> /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi >> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi >> /usr/lib/perl5/site_perl/5.8.3 >> /usr/lib/perl5/site_perl/5.8.2 >> /usr/lib/perl5/site_perl/5.8.1 >> /usr/lib/perl5/site_perl/5.8.0 >> /usr/lib/perl5/site_perl >> /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi >> /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi >> /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi >> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi >> /usr/lib/perl5/vendor_perl/5.8.3 >> /usr/lib/perl5/vendor_perl/5.8.2 >> /usr/lib/perl5/vendor_perl/5.8.1 >> /usr/lib/perl5/vendor_perl/5.8.0 >> /usr/lib/perl5/vendor_perl > > So run the build after unsetting PERLLIB and you will be fine. > > __________________________________________________________________ > Stas Bekman JAm_pH ------> Just Another mod_perl Hacker > http://stason.org/ mod_perl Guide ---> http://perl.apache.org > mailto:[EMAIL PROTECTED] 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