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

Old question: 'my_perl undeclared'

Expand Messages
  • Joseph E. Sacco, Ph. D.
    System: * PowerMac silver with dual G4 533MHz CPUs * YDL-3.0.1 * perl-5.8.3 * httpd-2.0.40-21.3b * mod_perl-1.99_xx
    Message 1 of 6 , Apr 5 8:21 AM
    • 0 Attachment
      System:
      * PowerMac silver with dual G4 533MHz CPUs'
      * YDL-3.0.1
      * perl-5.8.3
      * httpd-2.0.40-21.3b
      * mod_perl-1.99_xx
      ===============================================

      I am having problems building mod_perl-1.99_xx. Specifically there is an
      unsatisfied reference to 'my_perl'.

      For example [using the source that came with YDL-3.0.1]:

      gcc -I/usr/src/rpm/BUILD/mod_perl-1.99_05/src/modules/perl
      -I/usr/src/rpm/BUILD/mod_perl-1.99_05/xs -I/usr/include/httpd -D_REENTRANT
      -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
      -I/usr/local/include -I/usr/include/gdbm
      -I/usr/lib/perl5/5.8.3/ppc-linux-thread-multi/CORE -DMOD_PERL -O2 -g
      -fsigned-char -fpic \
      -c modperl_env.c && mv modperl_env.o modperl_env.lo
      modperl_env.c: In function `modperl_env_hash_keys':
      modperl_env.c:48: `my_perl' undeclared (first use in this function)
      modperl_env.c:48: (Each undeclared identifier is reported only once
      modperl_env.c:48: for each function it appears in.)
      make[1]: *** [modperl_env.lo] Error 1
      make[1]: Leaving directory
      `/usr/src/rpm/BUILD/mod_perl-1.99_05/src/modules/perl'
      make: *** [modperl_lib] Error 2


      I am using perl-5.8.3. Running 'perl -V' shows:

      ....
      usethreads=define use5005threads=undef useithreads=define
      usemultiplicity=define

      ....
      Characteristics of this binary (from libperl):
      Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
      PERL_IMPLICIT_CONTEXT
      Built under linux


      I have browsed the archives for a solution to this problem and have found some
      discussion about this problem, but nothing enlightening. There were some
      cases reported where MULTIPLICITY was set but threading was not enabled.
      That's not the case here.

      Thoughts???


      -Joseph

      --
      Joseph E. Sacco, Ph.D. <jsacco[at]earthlink[dot]net>
      J.E. Sacco & Associates, Inc.

      --
      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
    • Geoffrey Young
      ... 1.99_05 is simply way too old to be suitable for anything. please try at least the latest release (1.99_13).
      Message 2 of 6 , Apr 5 8:25 AM
      • 0 Attachment
        > I am having problems building mod_perl-1.99_xx. Specifically there is an
        > unsatisfied reference to 'my_perl'.
        >
        > For example [using the source that came with YDL-3.0.1]:
        >
        > gcc -I/usr/src/rpm/BUILD/mod_perl-1.99_05/src/modules/perl
        > -I/usr/src/rpm/BUILD/mod_perl-1.99_05/xs -I/usr/include/httpd -D_REENTRANT

        1.99_05 is simply way too old to be suitable for anything. please try at
        least the latest release (1.99_13).

        http://perl.apache.org/dist/mod_perl-1.99_13.tar.gz

        --Geoff

        --
        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
      • Joseph E. Sacco, Ph. D.
        Geoff, Thanks for taking the time to respond. mod_perl_08 is about as new a version of mod_perl I can use given the version of httpd, 2.0.40-21.3b, that I am
        Message 3 of 6 , Apr 5 8:35 AM
        • 0 Attachment
          Geoff,

          Thanks for taking the time to respond.

          mod_perl_08 is about as new a version of mod_perl I can use given the
          version of httpd, 2.0.40-21.3b, that I am running. I will update httpd in the
          near future, but I suspect that I will encounter the same problem.

          I have looked at the source code for mod_perl-100_13 as well as earlier
          versions. The 'my_perl' problem appears to be related to:

          (1) How perl-5.8.3 was built

          (2) the definitions in
          ./xs/tables/current/ModPerl/FunctionTable.pm

          -Joseph
          ==========================================================

          On Monday 05 April 2004 11:25 am, you wrote:
          > > I am having problems building mod_perl-1.99_xx. Specifically there is an
          > > unsatisfied reference to 'my_perl'.
          > >
          > > For example [using the source that came with YDL-3.0.1]:
          > >
          > > gcc -I/usr/src/rpm/BUILD/mod_perl-1.99_05/src/modules/perl
          > > -I/usr/src/rpm/BUILD/mod_perl-1.99_05/xs -I/usr/include/httpd
          > > -D_REENTRANT
          >
          > 1.99_05 is simply way too old to be suitable for anything. please try at
          > least the latest release (1.99_13).
          >
          > http://perl.apache.org/dist/mod_perl-1.99_13.tar.gz
          >
          > --Geoff

          --
          Joseph E. Sacco, Ph.D. <jsacco[at]earthlink[dot]net>
          J.E. Sacco & Associates, Inc.

          --
          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
        • Geoffrey Young
          ... sure :) ... well, 1.99_08 is much more recent than 1.99_05, so please give it a try - your problem may have something to do with this change
          Message 4 of 6 , Apr 5 8:55 AM
          • 0 Attachment
            Joseph E. Sacco, Ph. D. wrote:
            > Geoff,
            >
            > Thanks for taking the time to respond.

            sure :)

            >
            > mod_perl_08 is about as new a version of mod_perl I can use given the
            > version of httpd, 2.0.40-21.3b, that I am running. I will update httpd in the
            > near future, but I suspect that I will encounter the same problem.

            well, 1.99_08 is much more recent than 1.99_05, so please give it a try -
            your problem may have something to do with this change

            http://cvs.apache.org/viewcvs.cgi/modperl-2.0/src/modules/perl/modperl_env.c?r1=1.26&r2=1.27

            from the looks of it this patch made it into 1.99_08 so it may help with the
            newer perl (post 5.8.0) you're using.

            other than that, once you upgrade your httpd and can try a more recent
            version of mod_perl, please report back if you are having problems. a good
            place to start your report is with here:

            http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

            HTH

            --Geoff


            --
            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
          • Joseph E. Sacco, Ph. D.
            Geoff, Good News... Following the philosophy of let sleeping dogs lie I have replaced YDL s httpd-2.0.40 using SRPM s from the Fedora project [RedHat has
            Message 5 of 6 , Apr 5 2:55 PM
            • 0 Attachment
              Geoff,

              Good News...

              Following the philosophy of "let sleeping dogs lie" I have replaced YDL's
              httpd-2.0.40 using SRPM's from the Fedora project [RedHat has developed a PPC
              branch. The new YDL maybe???].

              With an installed version of httpd [2.0.49] that is acceptable to
              mod_perl-1.99_13, mod_perl builds and tests without incident using a
              threaded version of perl-5.8.3.

              The 'my_perl' undeclared problem seen when compiling versions of mod_perl up
              through mod_perl-1.99_09 "went away". Hmmm....

              There was quite a bit of collateral damage from updating the httpd arising
              from new requirements and interdependencies with other packages.
              Specifically:
              * httpd-2.0.49-2.src.rpm
              * apr-util-0.9.4-14.src.rpm
              * apr-util-0.9.4-14.src.rpm
              * mod_auth_mysql-20030510-4.1.src.rpm
              * mod_auth_pgsql-2.0.1-4.1.src.rpm
              * php-4.3.4-10.1.src.rpm
              [still working on this one. A required package, elfutils, failed some of its
              tests.]
              * and others I probably have not yet discovered... [:-)]

              I used the source tarball from perl.apache.org to build mod_perl-1.99_13

              For icing on the cake... Request Tracker-3.0.9,

              http://bestpractical.com/rt/

              now works using either fastcgi-2.4.2 or mod_perl-1.99_13.

              The current recommendation for building RT with mod_perl is to use httpd-1.3.X
              and mod_perl1. Getting RT to work [meaning it comes up... I need to do
              further testing] with mod_perl2 is a score. Life is good.


              Be well,


              -Joseph
              =========================================================
              On Monday 05 April 2004 11:55 am, you wrote:
              > Joseph E. Sacco, Ph. D. wrote:
              > > Geoff,
              > >
              > > Thanks for taking the time to respond.
              >
              > sure :)
              >
              > > mod_perl_08 is about as new a version of mod_perl I can use given the
              > > version of httpd, 2.0.40-21.3b, that I am running. I will update httpd in
              > > the near future, but I suspect that I will encounter the same problem.
              >
              > well, 1.99_08 is much more recent than 1.99_05, so please give it a try -
              > your problem may have something to do with this change
              >
              > http://cvs.apache.org/viewcvs.cgi/modperl-2.0/src/modules/perl/modperl_env.
              >c?r1=1.26&r2=1.27
              >
              > from the looks of it this patch made it into 1.99_08 so it may help with
              > the newer perl (post 5.8.0) you're using.
              >
              > other than that, once you upgrade your httpd and can try a more recent
              > version of mod_perl, please report back if you are having problems. a good
              > place to start your report is with here:
              >
              > http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
              >
              > HTH
              >
              > --Geoff

              --
              Joseph E. Sacco, Ph.D. <jsacco[at]earthlink[dot]net>
              J.E. Sacco & Associates, Inc.

              --
              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
            • Geoffrey Young
              ... excellent! thanks for taking the time to report back. --Geoff -- Report problems: http://perl.apache.org/bugs/ Mail list info:
              Message 6 of 6 , Apr 5 3:45 PM
              • 0 Attachment
                Joseph E. Sacco, Ph. D. wrote:
                > Geoff,
                >
                > Good News...
                >
                > Following the philosophy of "let sleeping dogs lie" I have replaced YDL's
                > httpd-2.0.40 using SRPM's from the Fedora project [RedHat has developed a PPC
                > branch. The new YDL maybe???].
                >
                > With an installed version of httpd [2.0.49] that is acceptable to
                > mod_perl-1.99_13, mod_perl builds and tests without incident using a
                > threaded version of perl-5.8.3.

                > The current recommendation for building RT with mod_perl is to use httpd-1.3.X
                > and mod_perl1. Getting RT to work [meaning it comes up... I need to do
                > further testing] with mod_perl2 is a score. Life is good.

                excellent! thanks for taking the time to report back.

                --Geoff

                --
                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
              Your message has been successfully submitted and would be delivered to recipients shortly.