I'm having trouble compiling libapreq in userspace.
[EMAIL PROTECTED] mod_perl-1.29 $ cat .makepl_args.mod_perl NO_HTTPD=1 EVERYTHING=1
[EMAIL PROTECTED] mod_perl-1.29 $ /home/ag/apps/perl-5.8.4/bin/perl Makefile.PL && make && make install [EMAIL PROTECTED] mod_perl-1.29 $ cd ../apache_1.3.29 [EMAIL PROTECTED] apache_1.3.29 $ cat ./myconfig.sh make distclean OPTIM=-O2 ./configure --prefix=/home/ag/apps/httpd-perl \ --enable-module=proxy \ --enable-suexec \ --suexec-logfile=/home/ag/apps/httpd-perl/logs/suexec.log \ --disable-module=env \ --disable-module=negotiation \ --disable-module=status \ --disable-module=include \ --disable-module=autoindex \ --disable-module=cgi \ --disable-module=asis \ --disable-module=imap \ --disable-module=actions \ --disable-module=userdir \ --disable-module=alias \ --disable-module=setenvif \ --disable-module=auth \ --disable-module=example \ --disable-module=access \ --enable-module=mime \ --enable-module=dir \ --activate-module=src/modules/perl/libperl.a [EMAIL PROTECTED] apache_1.3.29 $ ./myconf.sh && make && make install [EMAIL PROTECTED] apache_1.3.29 $ cd ../libapreq-1.3/ [EMAIL PROTECTED] libapreq-1.3 $ /home/ag/apps/perl-5.8.4/bin/perl Makefile.PL [EMAIL PROTECTED] libapreq-1.3 $ make ake[1]: Entering directory `/home/ag/build/libapreq-1.3/c' gcc -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/home/ag/apps/perl-5.8.4/lib/5.8.4/i686-linux/CORE" apache_request.c In file included from apache_request.c:61: apache_request.h:5:19: httpd.h: No such file or directory [ skipped tons of output ] make[1]: *** [apache_request.o] Error 1 make[1]: Leaving directory `/home/ag/build/libapreq-1.3/c' make: *** [subdirs] Error 2
If I go and edit Makefiles in ./, ./Request, ./Cookie, ./c and add -I/home/ag/apps/httpd-perl/include to CCFLAGS, so it looks like this CCFLAGS = -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/ag/apps/httpd-perl/include then run make I get :
[EMAIL PROTECTED] libapreq-1.3 $ make make[1]: Entering directory `/home/ag/build/libapreq-1.3/c' gcc -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/ag/apps/httpd-perl/include -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/home/ag/apps/perl-5.8.4/lib/5.8.4/i686-linux/CORE" apache_request.c gcc -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/ag/apps/httpd-perl/include -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/home/ag/apps/perl-5.8.4/lib/5.8.4/i686-linux/CORE" apache_cookie.c gcc -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/ag/apps/httpd-perl/include -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fpic "-I/home/ag/apps/perl-5.8.4/lib/5.8.4/i686-linux/CORE" apache_multipart_buffer.c rm -rf ../blib/arch/auto/libapreq/libapreq.a /usr/bin/ar cr ../blib/arch/auto/libapreq/libapreq.a apache_request.o apache_cookie.o apache_multipart_buffer.o && : ../blib/arch/auto/libapreq/libapreq.a chmod 755 ../blib/arch/auto/libapreq/libapreq.a make[1]: Leaving directory `/home/ag/build/libapreq-1.3/c' make[1]: Entering directory `/home/ag/build/libapreq-1.3/Request' /home/ag/apps/perl-5.8.4/bin/perl /home/ag/apps/perl-5.8.4/lib/5.8.4/ExtUtils/xsubpp -typemap /home/ag/apps/perl-5.8.4/lib/5.8.4/ExtUtils/typemap Request.xs > Request.xsc && mv Request.xsc Request.c Error: 'Apache::Table' not in typemap in Request.xs, line 373 make[1]: *** [Request.c] Error 1 make[1]: Leaving directory `/home/ag/build/libapreq-1.3/Request' make: *** [subdirs] Error 2
However, I've set EVERYTHING=1 while configuring mod_perl as you can see.
The following works ok (note the --prefix, I don't wanted to clutter /usr/local/lib) ./configure --with-apache-includes=/home/ag/apps/httpd-perl/include --prefix=/home/ag/apps && make && make install then added /home/ag/apps/lib to /etcld.conf and run /sbin/ldconfig
That doesn't help either. What's the problem ? How can I install libapreq in my situation ? I was unable to find similar troubles, looks like nobody is installing mod_perl in userspace. I'm not a C/Linux guru so I'm stuck :((
Scincerely, Alex
P.S. May be that's irrelevant part:
[EMAIL PROTECTED] ag $ /home/ag/apps/perl-5.8.4/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 4) configuration: Platform: osname=linux, osvers=2.6.5-gentoo-r1, archname=i686-linux uname='linux joggy 2.6.5-gentoo-r1 #6 tue may 11 02:48:59 eest 2004 i686 amd athlon(tm) processor authenticamd gnulinux ' config_args='-ds -e -Dprefix=/home/ag/apps/perl-5.8.4 -Dcc=gcc' 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=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing' ccversion='', gccversion='3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)', 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='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.2' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at May 12 2004 16:51:15 @INC: /home/ag/apps/perl-5.8.4/lib/5.8.4/i686-linux /home/ag/apps/perl-5.8.4/lib/5.8.4 /home/ag/apps/perl-5.8.4/lib/site_perl/5.8.4/i686-linux /home/ag/apps/perl-5.8.4/lib/site_perl/5.8.4 /home/ag/apps/perl-5.8.4/lib/site_perl
-- 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