in reply to ExtUtils::MakeMaker, APR::UUID or Perl problem?

This is an attempt to use a mod_perl module outside of mod_perl. APR::UUID is actually just XS code and shouldn't be used directly. You should first use APR and then you can use APR::UUID. See the mod_perl docs for more info.

Cheers,
Ovid

New address of my CGI Course.

  • Comment on Re: ExtUtils::MakeMaker, APR::UUID or Perl problem?

Replies are listed 'Best First'.
Re^2: ExtUtils::MakeMaker, APR::UUID or Perl problem?
by randyk (Parson) on Dec 03, 2005 at 21:27 UTC

    I think that doc needs updating; with mod_perl 2.0.2, at least, the write_pm method of ModPerl::WrapXS generates a use APR (); line for every APR::* module.

    Is it just APR::UUID, or do any of the APR::* modules (that can be used outside of mod_perl) lead to such a problem? You might try running the apr-ext tests to see if these expose any problem; this can be done with an installed mod_perl by going into the mod_perl_src/t/ subdirectory and doing, for example,

    perl -T -Ilib apr-ext/uuid.t

Re^2: ExtUtils::MakeMaker, APR::UUID or Perl problem?
by jk2addict (Chaplain) on Dec 04, 2005 at 02:15 UTC

    Negative. Using or requiring APR first (use APR; use APR::UUID;) does not fix the problem. Not using APR at all isn't a problem here, since the command line version at the end of my post works.

    Second, it works as-is on every platform except for OpenBSD. I think that's the marker of something strange going on here.

    In fact, just 'use APR;' in the Makefile.PL above causes the same problem.

    Update: I just got a copy of the mp2.0.2 source on the server in question. the uuid tests pass fine:

    test:~/mod_perl-2.0.2/t$ perl -T -Ilib apr-ext/uuid.t 1..3 # Running under perl version 5.008006 for openbsd # Current time local: Sat Dec 3 19:12:38 2005 # Current time GMT: Sat Dec 3 19:12:38 2005 # Using Test.pm version 1.25 # Using Apache/Test.pm version 1.27 ok 1 ok 2 ok 3 test:~/mod_perl-2.0.2/t$