ocamlnet 2.2.7 does not build properly against apache 2.2

Stefano Zacchiroli <[email protected]> Wed, 11 Apr 2007 18:05:46 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
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?

Many thanks in advance,
Cheers.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48)  Zack: e la demo dema ?    /\    All one has to do is hit the
(15:57:15)  Bac: no, la demo scema    \/    right keys at the right time

-------------------------------------------------------------------------
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