Loading ...
Sorry, an error occurred while loading the content.

51568Re: compile error

Expand Messages
  • Stas Bekman
    May 1, 2003
    • 0 Attachment
      J S wrote:
      >
      >
      >
      >> J S wrote:
      >>
      >>> I need to keep the mod_perl dynamic so that I can upgrade it later if
      >>> need be, and also I don't want to have to rebuild Apache as well. I
      >>> did get the libperl.so to build today by adding -DUSE_HSREGEX to
      >>> EXTRA_CFLAGS in the Makefile. Not sure if that was right but it at
      >>> least got the compile to work.
      >>
      >>
      >> Great
      >>
      >>> The problem now is I can't get apache to start:
      >>>
      >>> smpd9$ /opt/apache_1.3.27/bin/apachectl configtest
      >>> Syntax error on line 208 of /opt/apache_1.3.27/conf/httpd.conf:
      >>> Cannot load /opt/apache_1.3.27/libexec/libperl.so into server:
      >>> ld.so.1: /opt/apache_1.3.27/bin/httpd: fatal: relocation error: file
      >>> /opt/apache_1.3.27/libexec/libperl.so: symbol Perl_vmess: referenced
      >>> symbol not found
      >>
      >>
      >> [...]
      >>
      >>> I have a bit more debug for you but I'm not sure how meaningful this is:
      >>
      >>
      >> All, but one bit is missing from the puzzle
      >>
      >>> # ldd ../libexec/libperl.so
      >>> libperl.so =>
      >>> /opt/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE/libperl.so

      are you sure that ../libexec/libperl.so is
      /opt/apache_1.3.27/libexec/libperl.so? Since you show below that
      /opt/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE/libperl.so has the symbol
      Perl_vmess defined and it's the one ldd sees in
      /opt/apache_1.3.27/libexec/libperl.so it should work just fine. Usually when
      this problem happens when you get the wrong .so loaded.

      >>> # nm -r ../libexec/libperl.so
      >>
      >>
      >>> [1356] | 0| 0|FUNC |GLOB |0 |UNDEF
      >>> |libperl.so:Perl_vmess
      >>
      >>
      >> What's the output of
      >>
      >> nm /opt/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE/libperl.so | grep
      >> Perl_vmess
      >>
      >
      > smpd9$ nm /opt/perl-5.8.0/lib/5.8.0/sun4-solaris/CORE/libperl.so | grep
      > Perl_vmess
      > [368] | 995152| 716|FUNC |GLOB |0 |8 |Perl_vmess
      >
      >
      > _________________________________________________________________
      > Stay in touch with absent friends - get MSN Messenger
      > http://www.msn.co.uk/messenger


      --


      __________________________________________________________________
      Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
      http://stason.org/ mod_perl Guide ---> http://perl.apache.org
      mailto:stas@... http://use.perl.org http://apacheweek.com
      http://modperlbook.org http://apache.org http://ticketmaster.com
    • Show all 30 messages in this topic