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

Re: [MP2 Bug] test case t/apr-ext/uuid.t failuer

Expand Messages
  • Joe Schaefer
    Stas Bekman writes: [...] ... Stas, mp2 may need apr-config --link-ld --ldflags --libs on some platforms. I ve seen this on FreeBSD, for
    Message 1 of 4 , Jul 1, 2004
      Stas Bekman <stas@...> writes:

      [...]

      > That's your problem, it fails to find those libs. Please show us the
      > output of:
      >
      > apr-config --link-ld --libs
      > apu-config --link-ld --libs

      Stas, mp2 may need

      apr-config --link-ld --ldflags --libs

      on some platforms. I've seen this on FreeBSD, for
      example.

      --
      Joe Schaefer


      --
      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
    • Stas Bekman
      ... But --ldflags are for loading, this is the linking stage, isn t it? Robert s problem is that MakeMaker failed to find those libraries, since probably
      Message 2 of 4 , Jul 1, 2004
        Joe Schaefer wrote:
        > Stas Bekman <stas@...> writes:
        >
        > [...]
        >
        >
        >>That's your problem, it fails to find those libs. Please show us the
        >>output of:
        >>
        >>apr-config --link-ld --libs
        >>apu-config --link-ld --libs
        >
        >
        > Stas, mp2 may need
        >
        > apr-config --link-ld --ldflags --libs
        >
        > on some platforms. I've seen this on FreeBSD, for
        > example.

        But --ldflags are for loading, this is the linking stage, isn't it?

        Robert's problem is that MakeMaker failed to find those libraries, since
        probably apr-config didn't give the right -L path. e.g. on my machine it's:

        -L/home/stas/httpd/prefork/lib -lapr-0 -lrt -lm -lcrypt -lnsl -lpthread -ldl
        -L/home/stas/httpd/prefork/lib -laprutil-0 -lgdbm -ldb-4.0 -lexpat

        My guess is that Robert's -L part was wrong.

        (BTW, I've just added this info the the bug report script)

        Robert, does this work if you add --ldflags with this patch? You will need to
        rebuild from scratch after applying it.

        Index: xs/APR/APR/Makefile.PL
        ===================================================================
        RCS file: /home/cvs/modperl-2.0/xs/APR/APR/Makefile.PL,v
        retrieving revision 1.24
        diff -u -r1.24 Makefile.PL
        --- xs/APR/APR/Makefile.PL 1 Jul 2004 01:42:52 -0000 1.24
        +++ xs/APR/APR/Makefile.PL 2 Jul 2004 04:38:01 -0000
        @@ -23,7 +23,7 @@

        # XXX: this works only with libapr 0.9.2+
        my $ext = WIN32 ? '.bat' : '';
        - my @libs = grep $_, map { -x $_ && qx{$_ --link-ld --libs} }
        + my @libs = grep $_, map { -x $_ && qx{$_ --link-ld --ldflags --libs} }
        map { qq{$apr_bindir/$_-config$ext} } qw(apr apu);
        chomp @libs;
        $libs = join ' ', @libs;


        --
        __________________________________________________________________
        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

        --
        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.