Re: ocamlnet 2.2.7 does not build properly against apache 2.2

Gerd Stolpmann <[email protected]> Wed, 11 Apr 2007 18:18:13 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Am Mittwoch, den 11.04.2007, 18:05 +0200 schrieb Stefano Zacchiroli:
> Hi, I'm working on packaging ocamlnet 2.2.7 for Debian. When built
> against apache 2.2 the compilation of the apache connector fails with
> the following error:
> 
>   zack@aquarium:~/ocamlnet-2.2.7/src/netcgi2-apache$ make
>   /usr/bin/apxs2 -c -I/usr/lib/ocaml/3.09.2 -o ignore.so apache.c
>   /usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DLINUX=2 -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/lib/ocaml/3.09.2  -c -o apache.lo apache.c && touch apache.slo
>   apache.c: In function 'netcgi2_apache_connection_ap_auth_type':
>   apache.c:223: error: 'conn_rec' has no member named 'ap_auth_type'
>   apache.c:223: error: 'conn_rec' has no member named 'ap_auth_type'
>   apache.c: In function 'netcgi2_apache_connection_user':
>   apache.c:225: error: 'conn_rec' has no member named 'user'
>   apache.c:225: error: 'conn_rec' has no member named 'user'
>   apxs:Error: Command failed with rc=65536
>   .
>   make: *** [apache.o] Error 1
> 
> And indeed the "conn_rec" struct I found in /usr/include/apache2/httpd.h
> does not have the "ap_auth_type" and "user" field. They are both
> available in the "request_rec" struct though.
> 
> I'm invoking configure as follows:
> 
>         ./configure \
>                 -enable-gtk2 -enable-ssl -enable-apache \
>                 -with-nethttpd -prefer-netcgi2 -with-rpc-auth-dh \
>                 -apache /usr/sbin/apache2 -apxs /usr/bin/apxs2 \
>                 -bindir /usr/bin -datadir /usr/share/ocamlnet
> 
> and it seems ok to me.
> 
> Am I missing something or ocamlnet is not supposed to build against
> apache 2.2?

I think it does not work for apache 2. The contributor of
netcgi2-apache, Christophe Troestler, might explain it in more detail.
I've cc'ed him.

netcgi2-apache is considered as experimental.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
[email protected]          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714
------------------------------------------------------------


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV