From marc.battyani at fractalconcept.com Thu May 18 07:47:43 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Thu, 18 May 2006 09:47:43 +0200 Subject: [mod-lisp-devel] Re: mod_lisp installation problems References: <1147935444.1666.4.camel@localhost.localdomain> Message-ID: <0bb101c67a4f$58eeae00$1402a8c0@marcx2> Hi John, [copied to the mod-lisp-devel mailing list] > Alright, fair warning: I may be a bit of a newbie when it comes to this > stuff, but I don't think I'm missing anything obvious. > > I recently wanted to try out the combination of running a local > apache2.2 + mod_lisp + TBNL server on my Ubuntu box. I downloaded the > apache source from their homepage, and compiled apache, starting > with ./configure --enable-so to enable DSO support(that was my only > configure option, perhaps more are needed?). I then checked that it > work, and everything was going fine. I then downloaded the newest > mod_lisp from your subversion repository, and tried to install it via > your instructions, with the command 'axps -i -c mod_lisp2.c'. > > This however, gives me this output: > > j1p at ubuntu:~/hacking/lisp/web/mod_lisp$ sudo /usr/local/apache2/bin/apxs > -c -i -a mod_lisp2.c > > /usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 > -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include > -I/usr/local/apache2/include -c -o mod_lisp2.lo mod_lisp2.c && touch > mod_lisp2.slo > mod_lisp2.c: In function 'open_lisp_socket': > mod_lisp2.c:379: warning: passing argument 4 of 'apr_socket_create' > makes integer from pointer without a cast > mod_lisp2.c:379: error: too few arguments to function > 'apr_socket_create' > apxs:Error: Command failed with rc=65536 > > Any ideas, it seems like its a problem in the mod_lisp2.c file itself, > but I'm not experienced enough to fix it. Are you using the latest mod_lisp2 version from the repository? http://www.fractalconcept.com:8000/public/open-source/mod_lisp/mod_lisp2.c There have been some changes in the Apache2 libraries recently (with Apache 2.20 IIRC) Marc From marc.battyani at fractalconcept.com Fri May 19 06:34:30 2006 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Fri, 19 May 2006 08:34:30 +0200 Subject: [mod-lisp-devel] Re: mod_lisp installation problems References: <1147935444.1666.4.camel@localhost.localdomain> <1148000552.14586.9.camel@localhost.localdomain> Message-ID: <0f7201c67b0e$489b3e50$1402a8c0@marcx2> "John Peirce" wrote: > Found out the problems, I'm using APR version 1.2.7, which came with the > newest version of apache(2.2.2) but it seems like only 1.2.2 was > "officially supported" by mod_lisp, but with a few minor edits in some > code, I got it worked out. > > Line 152-3 of mod_lisp2.c: > #if (APR_MAJOR_VERSION==1 && APR_MINOR_VERSION==2 && > APR_PATCH_VERSION==2) > #define HAVE_APR_1_2_2 1 > > > If we change that to: > #if (APR_MAJOR_VERSION==1 && APR_MINOR_VERSION==2 && > APR_PATCH_VERSION>=2) > #define HAVE_APR_1_2_2 1 > > > the tests on lines 377,383,etc. in mod_lisp2.c of: > #if (HAVE_APR_1_2_2) > > pass the test, and since the apr_socket_create function hasn't changed, > it calls the right code. > > I've got mod_lisp installed now, thanks! Great. Thanks for the patch :). Those APR changes are rather annoying. Marc