emarton

Member
Oct 4, 2006
12
0
151
On this Configuration:
WHM 11.2.0 cPanel 11.11.0-DNS16984
CENTOS Enterprise 4.5 i686 - WHM X v3.1.0

On perl Upgrade > 5.8.8

Expat.c:2857: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2857: error: syntax error before "parser"
Expat.xs:2167: error: `cbv' undeclared (first use in this function)
Expat.xs:2167: error: syntax error before ')' token
Expat.c: In function `XS_XML__Parser__Expat_SkipUntil':
Expat.c:2884: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2884: error: syntax error before "parser"
Expat.xs:2179: error: `cbv' undeclared (first use in this function)
Expat.xs:2179: error: syntax error before ')' token
Expat.c: In function `XS_XML__Parser__Expat_Do_External_Parse':
Expat.c:2912: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2912: error: syntax error before "parser"
Expat.xs:2194: error: `cbv' undeclared (first use in this function)
Expat.xs:2194: error: syntax error before ')' token
Expat.xs:2197: error: `parser' undeclared (first use in this function)
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/home/.cpan/build/XML-Parser-2.34-nhBv4L/Expat'
make: *** [subdirs] Error 2


MSERGEANT/XML-Parser-2.34.tar.gz
/usr/bin/make -- NOT OK
CPAN: YAML loaded ok (v0.65)
Running make install
Make had returned bad status, install seems impossible
perlmod--Install done
Tested 51, 50 ok, 1 failed.


What would this mean,

I also add: that .CGI-s not work in WHM [DNSOnly],
like: cmq, cmm, csf

" perl --version

This is perl, v5.8.8 built for i686-linux"


ON accessing CSF through WHM:
/usr/local/cpanel/logs/error.log shows:

Can't locate Whostmgr/AcctInfo.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /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/5.6.2 /usr/lib/perl5/site_perl . /usr/local/cpanel/whostmgr/docroot/cgi) at /usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm line 11.
Compilation failed in require at ./cgi/addon_csf.cgi line 14.
BEGIN failed--compilation aborted at ./cgi/addon_csf.cgi line 14.
Problem solved: copy the AcctInfo.pm from another server to /usr/loca/cpanel/Whostmgr
 

andren

Active Member
Oct 4, 2005
34
0
156
Same error here - did you find a way to solve this? Thx.

I believe the location is actually:

/home/cpapachebuild/buildapache/apache_1.3.37/src

I entered this, and got further. However I am now getting the following:

Code:
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/usr/bin/perl t/TEST 0
still waiting for server to warm up...............not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line 95.
make: *** [run_tests] Error 255
  GOZER/mod_perl-1.30.tar.gz
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Running make for T/TI/TIMB/GoferTransport-http-1.012.tar.gz
  Has already been unwrapped into directory /home/.cpan/build/GoferTransport-http-1.012-tzjkIR

  CPAN.pm: Going to build T/TI/TIMB/GoferTransport-http-1.012.tar.gz

Warning: Prerequisite 'Apache::Util => 0' for 'T/TI/TIMB/GoferTransport-http-1.012.tar.gz' failed when processing 'G/GO/GOZER/mod_perl-1.30.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
cp lib/DBD/Gofer/Transport/http.pm blib/lib/DBD/Gofer/Transport/http.pm
cp lib/DBI/Gofer/Transport/mod_perl.pm blib/lib/DBI/Gofer/Transport/mod_perl.pm
Manifying blib/man3/DBD::Gofer::Transport::http.3
Manifying blib/man3/DBI::Gofer::Transport::mod_perl.3
  TIMB/GoferTransport-http-1.012.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00.load.........ok 1/2
t/00.load.........NOK 2/2#   Failed test 'use DBI::Gofer::Transport::mod_perl;'
#   at t/00.load.t line 5.
#     Tried to use 'DBI::Gofer::Transport::mod_perl'.
#     Error:  Can't locate Apache/Constants.pm in @INC (@INC contains: /home/.cpan/build/GoferTransport-http-1.012-tzjkIR/blib/lib /home/.cpan/build/GoferTransport-http-1.012-tzjkIR/blib/arch /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl . /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /home/.cpan/build/GoferTransport-http-1.012-tzjkIR/blib/lib/DBI/Gofer/Transport/mod_perl.pm line 36.
# BEGIN failed--compilation aborted at t/00.load.t line 5.
# Compilation failed in require at (eval 15) line 2.
# BEGIN failed--compilation aborted at (eval 15) line 2.
# Testing DBD::Gofer::Transport::http 0.009533
Use of uninitialized value in concatenation (.) or string at t/00.load.t line 9.
# Testing DBI::Gofer::Transport::mod_perl
# Looks like you failed 1 test of 2.
t/00.load.........dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 2
        Failed 1/2 tests, 50.00% okay
t/perlcritic......skipped
        all skipped: developer-only tests
t/pod-coverage....skipped
        all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.............ok
Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/00.load.t    1   256     2    1  2
2 tests skipped.
Failed 1/4 test scripts. 1/4 subtests failed.
Files=4, Tests=4,  0 wallclock secs ( 0.26 cusr +  0.02 csys =  0.28 CPU)
Failed 1/4 test programs. 1/4 subtests failed.
make: *** [test_dynamic] Error 255
  TIMB/GoferTransport-http-1.012.tar.gz
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
[email protected] [~/perl588installer]#
Any one got any ideas ??

Thanks
Daniel