Apparently, Flood development cannot keep up with the APR development.
This is a problem because many of the Flood features working properly is
dependent on the APR working properly (and continuing to work). It is
essential for those working with Flood to be able to download the latest
APR and other Apache dependencies it has in order to benefit from the many
bug fixes, etc., which are continuing to become available. Perhaps the
Apache folks ought to continue to support the previous interfaces while
making new methods available so that projects which have dependencies on
the APR and its other subprojects can continue to compile.

With that said, the replacement for
apr_socket_opt_set(fs->socket, APR_SO_TIMEOUT, LOCAL_SOCKET_TIMEOUT);
in flood_net.c should be
apr_socket_timeout_set(fs->socket, LOCAL_SOCKET_TIMEOUT);

Your compile will probably also fail, however, when it encounters
apr_poll(), which they apparently have also taken out of the APR.
I'm not sure what the replacement for that is; maybe somebody on this list
or on the APR list can enlighten us on what changes are happening there.

-Norman Tuttle, developer, OpenDemand Systems, [EMAIL PROTECTED]

On Fri, 21 Nov 2003, Jennifer Wong wrote:

> Hi, 
> I'm using Red Hat Linux 7.2, and I consistently get this error when
> trying to compile flood:
> flood_net.c:118: `APR_SO_TIMEOUT' undeclared (first use in this
> function)
> 
> I am using a freshly checked out and built apr and apr-util.
> 
> 
> full build messages:
> [EMAIL PROTECTED] flood]$ ./configure
> --with-apr=/local0/spider/managed_apps/httpd-
> 2.0/srclib/apr
> --with-apr-util=/local0/spider/managed_apps/httpd-2.0/srclib/apr
> -util
> loading cache ./config.cache
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether ln -s works... (cached) yes
> checking whether make sets ${MAKE}... (cached) yes
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking build system type... i686-pc-linux-gnu
> checking for APR... yes
> checking for APR-util... yes
> checking for strtoll... (cached) yes
> checking for strtoq... (cached) yes
> checking for rand... (cached) yes
> checking for lrand48... (cached) yes
> checking for random... (cached) yes
> checking random number generator to use... random
> creating ./config.status
> creating Makefile
> creating config.h
> creating build/rules.mk
> creating build/config_vars.mk
> [EMAIL PROTECTED] flood]$ make
> /local0/spider/managed_apps/httpd-2.0/srclib/apr/libtool --silent
> --mode=compile
>  gcc    -g -O2  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT
> -D_XOPEN_SOURCE=500 -D
> _BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
> -I/local0/spider/managed_apps/httpd-2.0
> /srclib/apr/include
> -I/local0/spider/managed_apps/httpd-2.0/srclib/apr-util/in
> clude  -I.   -c flood.c && touch flood.lo
> /local0/spider/managed_apps/httpd-2.0/srclib/apr/libtool --silent
> --mode=compile
>  gcc    -g -O2  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT
> -D_XOPEN_SOURCE=500 -D
> _BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
> -I/local0/spider/managed_apps/httpd-2.0
> /srclib/apr/include
> -I/local0/spider/managed_apps/httpd-2.0/srclib/apr-util/in
> clude  -I.   -c flood_round_robin.c && touch flood_round_robin.lo
> /local0/spider/managed_apps/httpd-2.0/srclib/apr/libtool --silent
> --mode=compile
>  gcc    -g -O2  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT
> -D_XOPEN_SOURCE=500 -D
> _BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
> -I/local0/spider/managed_apps/httpd-2.0
> /srclib/apr/include
> -I/local0/spider/managed_apps/httpd-2.0/srclib/apr-util/in
> clude  -I.   -c flood_profile.c && touch flood_profile.lo
> /local0/spider/managed_apps/httpd-2.0/srclib/apr/libtool --silent
> --mode=compile
>  gcc    -g -O2  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT
> -D_XOPEN_SOURCE=500 -D
> _BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
> -I/local0/spider/managed_apps/httpd-2.0
> /srclib/apr/include
> -I/local0/spider/managed_apps/httpd-2.0/srclib/apr-util/in
> clude  -I.   -c flood_config.c && touch flood_config.lo
> /local0/spider/managed_apps/httpd-2.0/srclib/apr/libtool --silent
> --mode=compile
>  gcc    -g -O2  -g -O2 -pthread    -DLINUX=2 -D_REENTRANT
> -D_XOPEN_SOURCE=500 -D
> _BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
> -I/local0/spider/managed_apps/httpd-2.0
> /srclib/apr/include
> -I/local0/spider/managed_apps/httpd-2.0/srclib/apr-util/in
> clude  -I.   -c flood_net.c && touch flood_net.lo
> flood_net.c: In function `open_socket':
> flood_net.c:118: `APR_SO_TIMEOUT' undeclared (first use in this
> function)
> flood_net.c:118: (Each undeclared identifier is reported only once
> flood_net.c:118: for each function it appears in.)
> make: *** [flood_net.lo] Error 1
> ------------------
> Jennifer Wong
> 415.856.4278
> [EMAIL PROTECTED]
> AIM: jenniferlwong
>  
> 
> 

Reply via email to