[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote on 29.09.2004 18:21:47:


NetBSD-2.0_RC1 + perl-5.8.5 + httpd-2.0.52 :

all the above builds and runs OK, but

when trying to configure source of modperl-1.99_17-dev I get the following:

$ perl Makefile.PL MP_AP_PREFIX=$HOME/mp-test/httpd-2.0
Reading Makefile.PL args from @ARGV
MP_AP_PREFIX = /home/mgorb/mp-test/httpd-2.0
[ error] invalid MP_AP_PREFIX: include/ directory not found in /home/mgorb/mp-test/httpd-2.0

That's a slightly misleading error message, can you try again with this smallish patch? (it will correctly report the include directory it didn't find)

And just to be clear, you configured & build httpd in /home/mgorb/mp-test/httpd-2.0
or did you do that elsewhere and just installed httpd there 
(--prefix=/home/mgorb/mp-test/httpd-2.0) ?

Index: lib/Apache/Build.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.186
diff -u -I$Id -r1.186 Build.pm
--- lib/Apache/Build.pm 26 Sep 2004 07:06:23 -0000      1.186
+++ lib/Apache/Build.pm 5 Oct 2004 17:48:16 -0000
@@ -82,7 +82,7 @@
     my $include_dir = $self->apxs(-q => 'INCLUDEDIR');

     unless (-d $include_dir) {
-        return "include/ directory not found in $prefix";
+        return "$include_dir directory not found in $prefix";
     }

     return '';


$ ls /home/mgorb/mp-test/httpd-2.0
bin     cgi-bin error   icons   lib     man     modules
build   conf    htdocs  include logs    manual

$ uname -a
NetBSD K133 2.0_RC1 NetBSD 2.0_RC1 (GENERIC) #0: Mon Sep 27 11:29:30 UTC


2004 [EMAIL PROTECTED]:


/autobuild/netbsd-2-0/i386/OBJ/autobuild/netbsd-2-0/src/sys/arch/i386/compile/GENERIC

i386

$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=netbsd, osvers=2.0_rc1, archname=i386-netbsd
uname='netbsd k133 2.0_rc1 netbsd 2.0_rc1 (generic) #0: mon sep 27 11:29:30 utc 2004 [EMAIL PROTECTED]:



autobuildnetbsd-2-0i386objautobuildnetbsd-2-0srcsysarchi386compilegeneric


i386 '
config_args='-Dprefix=/home/mgorb/mp-test/perl -Doptimize=-mcpu=pentium2 -march=pentium2 -O2 -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe',
optimize='-mcpu=pentium2 -march=pentium2 -O2',
cppflags='-fno-strict-aliasing -pipe'
ccversion='', gccversion='3.3.3 (NetBSD nb3 20040520)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -Wl,-rpath,/usr/pkg/lib

-Wl,-rpath,/usr/local/lib'

   libpth=/lib /usr/lib
   libs=-lm -lcrypt -lutil -lc -lposix
   perllibs=-lm -lcrypt -lutil -lc -lposix
   libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
   gnulibc_version=''
 Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E '
   cccdlflags='-DPIC -fPIC ', lddlflags='--whole-archive -shared '


Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under netbsd Compiled at Sep 29 2004 14:36:57 @INC: /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd /home/mgorb/mp-test/perl/lib/5.8.5 /home/mgorb/mp-test/perl/lib/site_perl/5.8.5/i386-netbsd /home/mgorb/mp-test/perl/lib/site_perl/5.8.5 /home/mgorb/mp-test/perl/lib/site_perl . $

httpd's configure string: --prefix=$HOME/mp-test/httpd-2.0

--


Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 06:08:34:


[EMAIL PROTECTED] wrote:

NetBSD-2.0_RC1 + perl-5.8.5 + httpd-2.0.52 :

all the above builds and runs OK, but

when trying to configure source of modperl-1.99_17-dev I get the following:

$ perl Makefile.PL MP_AP_PREFIX=$HOME/mp-test/httpd-2.0
Reading Makefile.PL args from @ARGV
MP_AP_PREFIX = /home/mgorb/mp-test/httpd-2.0
[ error] invalid MP_AP_PREFIX: include/ directory not found in /home/mgorb/mp-test/httpd-2.0


$ ls /home/mgorb/mp-test/httpd-2.0
bin     cgi-bin error   icons   lib     man     modules
build   conf    htdocs  include logs    manual

I can't reproduce that. Could you please try to debug that code? It's

just


perl in Makefile.PL.

Also I suspect that it might something to do with the fact that you have


httpd-2.0 as a sub-dir of modperl-2.0? But I can't tell where the modperl-2.0 source lives from your report. So it's just an idea.


-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] 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




[EMAIL PROTECTED] wrote on 01.10.2004 15:28:45:


Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 06:08:34:

I can't reproduce that. Could you please try to debug that code? It's

just


perl in Makefile.PL.

tried that with perl -d Makefile.PL MP_AP_PREFIX=$HOME/mp-test/httpd-2.0

looks like it stops here:

171: unless ($val) {
DB<129> s
Apache::Build::apxs(lib/Apache/Build.pm:173):
173: my $error = qx($apxs @_ 2>&1);
DB<131> s
Can't exec "/home/mgorb/mp-test/httpd-2.0/bin/apxs": No such file or directory at lib/Apache/Build.pm line 173.
at lib/Apache/Build.pm line 173
Apache::Build::apxs('Apache::Build=HASH(0x8d7fcb8)', '-q', 'INCLUDEDIR') called at lib/Apache/Build.pm line 82
Apache::Build::ap_prefix_invalid('Apache::Build=HASH(0x8d7fcb8)') called at Makefile.PL line 206
main::configure() called at Makefile.PL line 52


...

looking into /home/mgorb/mp-test/httpd-2.0/bin/apxs ( which appeared to

be


a perl script :) ) showed "#!/replace/with/path/to/perl/interpreter -w"

at


the first line. Replaced it with "/usr/local/bin/perl". After that "perl


Makefile.PL" worked and mp2 was built OK, but some tests failed:

Failed Test             Stat Wstat Total Fail  Failed  List of Failed


-------------------------------------------------------------------------------

t/apr-ext/base64.t       255 65280    ??   ??       %  ??
t/apr-ext/bucket.t       255 65280    ??   ??       %  ??
t/apr-ext/date.t         255 65280    ??   ??       %  ??
t/apr-ext/finfo.t        255 65280    ??   ??       %  ??
t/apr-ext/perlio.t       255 65280    ??   ??       %  ??
t/apr-ext/pool.t         255 65280    ??   ??       %  ??
t/apr-ext/string.t       255 65280    ??   ??       %  ??
t/apr-ext/table.t        255 65280    ??   ??       %  ??
t/apr-ext/threadmutex.t  255 65280    ??   ??       %  ??
t/apr-ext/uri.t          255 65280    ??   ??       %  ??
t/apr-ext/util.t         255 65280    ??   ??       %  ??
t/apr-ext/uuid.t         255 65280    ??   ??       %  ??
t/apr/constants.t        255 65280    ??   ??       %  ??

% make test TEST_VERBOSE=1 TEST_FILES="t/apr-ext/base64.t t/apr-ext/bucket.t t/apr-ext/date.t t/apr-ext/finfo.t t/apr-ext/perlio.t


t/apr-ext/pool.t t/apr-ext/string.t t/apr-ext/table.t t/apr-ext/threadmutex.t t/apr-ext/uri.t t/apr-ext/util.t

t/apr-ext/uuid.t


t/apr/constants.t"
cd "src/modules/perl" && make
/usr/local/bin/perl -Iblib/arch -Iblib/lib t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT=

APACHE_TEST_USER=


APACHE_TEST_APXS= /usr/local/bin/perl -Iblib/arch -Iblib/lib t/TEST -bugreport -verbose=1 t/apr-ext/base64.t t/apr-ext/bucket.t t/apr-ext/date.t t/apr-ext/finfo.t t/apr-ext/perlio.t t/apr-ext/pool.t t/apr-ext/string.t t/apr-ext/table.t t/apr-ext/threadmutex.t t/apr-ext/uri.t t/apr-ext/util.t t/apr-ext/uuid.t t/apr/constants.t
/home/mgorb/mp-test/httpd-2.0/bin/httpd -d /usr/home/mgorb/mp-test/src/modperl-2.0/t -f /usr/home/mgorb/mp-test/src/modperl-2.0/t/conf/httpd.conf -D APACHE2 using Apache/2.0.52 (prefork MPM)


...

t/apr-ext/base64.........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Base64.pm line

23

Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Base64.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Base64.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/base64.pm line 11.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/base64.pm line 11.
Compilation failed in require at t/apr-ext/base64.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/base64.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/bucket.........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Bucket.pm line

23

Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Bucket.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Bucket.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/bucket.pm line 11.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/bucket.pm line 11.
Compilation failed in require at t/apr-ext/bucket.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/bucket.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/date...........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Date.pm line 23
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Date.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Date.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/date.pm line

11.

BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/date.pm line

11.

Compilation failed in require at t/apr-ext/date.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/date.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/finfo..........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Finfo.pm line

23

Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Finfo.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Finfo.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/finfo.pm line

14.

BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/finfo.pm line

14.

Compilation failed in require at t/apr-ext/finfo.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/finfo.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/perlio.........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at t/apr-ext/perlio.t line 35
Compilation failed in require at t/apr-ext/perlio.t line 35.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/pool...........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Pool.pm line 23
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Pool.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Pool.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/pool.pm line

10.

BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/pool.pm line

10.

Compilation failed in require at t/apr-ext/pool.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/pool.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/string.........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/String.pm line

23

Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/String.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/String.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/string.pm line

9.

BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/string.pm line

9.

Compilation failed in require at t/apr-ext/string.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/string.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/table..........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Table.pm line

23

Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Table.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Table.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/table.pm line

11.

BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/table.pm line

11.

Compilation failed in require at t/apr-ext/table.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/table.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/threadmutex....Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Const.pm line

18

Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Const.pm line 18.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Const.pm line 18.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/threadmutex.pm line 9.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/threadmutex.pm line 9.
Compilation failed in require at t/apr-ext/threadmutex.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/threadmutex.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/uri............Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/URI.pm line 23
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/URI.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/URI.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/uri.pm line 11.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/uri.pm line 11.
Compilation failed in require at t/apr-ext/uri.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/uri.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/util...........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Util.pm line 23
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Util.pm line 23.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Util.pm line 23.
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/util.pm line

11.

BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/util.pm line

11.

Compilation failed in require at t/apr-ext/util.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/util.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/uuid...........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/uuid.pm

line


10
Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/uuid.pm line

10.

Compilation failed in require at t/apr-ext/uuid.t line 27.
BEGIN failed--compilation aborted at t/apr-ext/uuid.t line 27.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr/constants..........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for module APR: Shared object "libapr-0.so.9" not found at /home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Const.pm line

18

Compilation failed in require at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Const.pm line 18.
BEGIN failed--compilation aborted at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Const.pm line 18.
Compilation failed in require at t/apr/constants.t line 10.
BEGIN failed--compilation aborted at t/apr/constants.t line 10.
dubious
Test returned status 255 (wstat 65280, 0xff00)
FAILED--13 test scripts could be run, alas--no output ever seen


...

$ find $HOME -name APR.so
/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so

$ find $HOME -name libapr-0.so.9
/home/mgorb/mp-test/src/httpd-2.0.52/srclib/apr/.libs/libapr-0.so.9
/home/mgorb/mp-test/httpd-2.0/lib/libapr-0.so.9


Also I suspect that it might something to do with the fact that you

have


httpd-2.0 as a sub-dir of modperl-2.0? But I can't tell where the modperl-2.0 source lives from your report. So it's just an idea.


my directory structure for this test is :

$HOME/mp-test
$HOME/mp-test/perl <- perl is installed here $HOME/mp-test/httpd-2.0 <- httpd is installed here
$HOME/mp-test/src/perl-5.8.5 <- perl source
$HOME/mp-test/src/httpd-2.0.52 <- httpd source
$HOME/mp-test/src/modperl-2.0 <- modperl source


--



Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 18:20:50:


[EMAIL PROTECTED] wrote:

Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 06:08:34:


I can't reproduce that. Could you please try to debug that code? It's

just



perl in Makefile.PL.


tried that with perl -d Makefile.PL

MP_AP_PREFIX=$HOME/mp-test/httpd-2.0

looks like it stops here:

171: unless ($val) {
DB<129> s
Apache::Build::apxs(lib/Apache/Build.pm:173):
173: my $error = qx($apxs @_ 2>&1);
DB<131> s
Can't exec "/home/mgorb/mp-test/httpd-2.0/bin/apxs": No such file or directory at lib/Apache/Build.pm line 173.
at lib/Apache/Build.pm line 173
Apache::Build::apxs('Apache::Build=HASH(0x8d7fcb8)', '-q', 'INCLUDEDIR') called at lib/Apache/Build.pm line 82
Apache::Build::ap_prefix_invalid('Apache::Build=HASH(0x8d7fcb8)') called at Makefile.PL line 206
main::configure() called at Makefile.PL line 52

Why doesn't it print out the error then?

    unless ($val) {
        # do we have an error or is it just an empty value?
        my $error = qx($apxs @_ 2>&1);
        chomp $error if defined $error;
        if ($error) {
            error "'$apxs @_' failed:";
            error $error;
        }
        else {
            $val = '';
        }
    }

does anything go into $error? Please try to fix that code so that it clearly point out what the problem is, as soon as it happens.

I think that I have an idea why does it try to use apxs (it should not, since there should be no bin/apxs in the fresh source tree). Try running


'make clean' in the /home/mgorb/mp-test/httpd-2.0 tree and try again.


...

looking into /home/mgorb/mp-test/httpd-2.0/bin/apxs ( which appeared

to be


a perl script :) ) showed "#!/replace/with/path/to/perl/interpreter

-w" at


the first line. Replaced it with "/usr/local/bin/perl". After that

"perl


Makefile.PL" worked and mp2 was built OK, but some tests failed:

% make test TEST_VERBOSE=1 TEST_FILES="t/apr-ext/base64.t

[...]

t/apr-ext/base64.........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so'

for


module APR: Shared object "libapr-0.so.9" not found at

Philippe, APR.so needs the same treatment as mod_perl.so wrt to finding the not-yet installed library when doing the static build. I suppose we didn't see the problem since we had libapr installed system-wide (svn, etc). I think we may need to add to release procedures a step where the

RM


(re)moves any global libs that may affect the build.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--


[EMAIL PROTECTED] wrote on 04.10.2004 15:22:59:


Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 18:20:50:


[EMAIL PROTECTED] wrote:

Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 06:08:34:


I can't reproduce that. Could you please try to debug that code?

It's


just


perl in Makefile.PL.


tried that with perl -d Makefile.PL

MP_AP_PREFIX=$HOME/mp-test/httpd-2.0

looks like it stops here:

171: unless ($val) {
DB<129> s
Apache::Build::apxs(lib/Apache/Build.pm:173):
173: my $error = qx($apxs @_ 2>&1);
DB<131> s
Can't exec "/home/mgorb/mp-test/httpd-2.0/bin/apxs": No such file or


directory at lib/Apache/Build.pm line 173.
at lib/Apache/Build.pm line 173
Apache::Build::apxs('Apache::Build=HASH(0x8d7fcb8)', '-q', 'INCLUDEDIR') called at lib/Apache/Build.pm line 82
Apache::Build::ap_prefix_invalid('Apache::Build=HASH(0x8d7fcb8)') called at Makefile.PL line 206
main::configure() called at Makefile.PL line 52

Why doesn't it print out the error then?

    unless ($val) {
        # do we have an error or is it just an empty value?
        my $error = qx($apxs @_ 2>&1);
        chomp $error if defined $error;
        if ($error) {
            error "'$apxs @_' failed:";
            error $error;
        }
        else {
            $val = '';
        }
    }

does anything go into $error? Please try to fix that code so that it clearly point out what the problem is, as soon as it happens.

changed the code above like that:

unless ($val) {
       # do we have an error or is it just an empty value?
       #my $error = qx($apxs @_ 2>&1);
       my $error = qx($apxs @_);
       chomp $error if defined $error;
       if ($error) {
           error "'$apxs @_' failed:";
           error $error;

now it prints the error out:

$ perl Makefile.PL MP_AP_PREFIX=$HOME/mp-test/httpd-2.0
Reading Makefile.PL args from @ARGV
MP_AP_PREFIX = /home/mgorb/mp-test/httpd-2.0
Can't exec "/home/mgorb/mp-test/httpd-2.0/bin/apxs": No such file or directory at lib/Apache/Build.pm line 174.
[ error] invalid MP_AP_PREFIX: include/ directory not found in /home/mgorb/mp-test/httpd-2.0




I think that I have an idea why does it try to use apxs (it should

not,


since there should be no bin/apxs in the fresh source tree). Try

running


'make clean' in the /home/mgorb/mp-test/httpd-2.0 tree and try again.

This does not help...

...

looking into /home/mgorb/mp-test/httpd-2.0/bin/apxs ( which appeared

to be


a perl script :) ) showed "#!/replace/with/path/to/perl/interpreter

-w" at


the first line. Replaced it with "/usr/local/bin/perl". After that

"perl


Makefile.PL" worked and mp2 was built OK, but some tests failed:

% make test TEST_VERBOSE=1 TEST_FILES="t/apr-ext/base64.t

[...]

t/apr-ext/base64.........Can't load '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so'

for


module APR: Shared object "libapr-0.so.9" not found at

Philippe, APR.so needs the same treatment as mod_perl.so wrt to

finding


the not-yet installed library when doing the static build. I suppose

we


didn't see the problem since we had libapr installed system-wide (svn,


etc). I think we may need to add to release procedures a step where

the RM


(re)moves any global libs that may affect the build.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--


Stas Bekman <[EMAIL PROTECTED]> wrote on 05.10.2004 06:48:43:


[EMAIL PROTECTED] wrote:

could you please report the initial report, including your latest
tweaks to lib/Apache/Build.pm to the dev list [1]? I guess Philippe

still


didn't catch up with this list's email, but he should pick it up quickly


at the dev list. Thanks.

[1] http://perl.apache.org/maillist/dev.html#Subscription_Information

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] 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




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



-- -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to