Hello,

I experienced an error when compiling flood-0.4. For instance, I'm using 
Red Hat 9. First, I've used your recomendations: 

% ./buildconf -> output in build.txt
% ./configure --disable-shared -> output in configure.txt
% make all

And I received the following error:

[EMAIL PROTECTED] flood-0.4]# make all
build/rules.mk:57: /build/config_vars.mk: No such file or directory
make: *** No rule to make target `/build/config_vars.mk'.  Stop.

So, I edited the build/rules.mk file, putting the correct path in the 
include of the line 57. Then, when I run make all again, he finds the 
config_vars.mk file, but:

/bin/sh /usr/share/build/libtool --silent --mode=compile gcc    -g -O2   
-pthread    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-D_SVID_SOURCE -D_GNU_SOURCE -I/usr/include   -I/usr/include  -I.   -c 
flood.c && touch flood.lo
/usr/share/build/libtool: /usr/share/build/libtool: No such file or 
directory
make: *** [flood.lo] Error 127

So, I thought that he was unable to find the libtool binary, and I made a 
soft link pointing to the correct file, in my /usr/bin directory. When I 
run make all:

[EMAIL PROTECTED] flood-0.4]# make all
/bin/sh /usr/share/build/libtool --silent --mode=compile gcc    -g -O2   
-pthread    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-D_SVID_SOURCE -D_GNU_SOURCE -I/usr/include   -I/usr/include  -I.   -c 
flood.c && touch flood.lo
flood.c:60:25: apr.h: No such file or directory
flood.c:61:50: apr_general.h: No such file or directory
flood.c:62:25: apr_strings.h: No such file or directory
flood.c:63:25: apr_file_io.h: No such file or directory
flood.c:64:23: apr_pools.h: No such file or directory
In file included from flood.c:67:
flood_profile.h:60:60: apr_network_io.h: No such file or directory
flood_profile.h:61:23: apr_pools.h: No such file or directory
flood_profile.h:62:21: apr_uri.h: No such file or directory
In file included from flood_profile.h:64,
                 from flood.c:67:
flood_config.h:60:25: apr_file_io.h: No such file or directory
flood_config.h:61:23: apr_pools.h: No such file or directory
flood_config.h:62:21: apr_xml.h: No such file or directory
In file included from flood_profile.h:64,
                 from flood.c:67:

(...)

flood.c:148: `APR_OS_DEFAULT' undeclared (first use in this function)
flood.c:158: `stat' undeclared (first use in this function)
flood.c:158: `APR_SUCCESS' undeclared (first use in this function)
make: *** [flood.lo] Error 1

Then, I gave up. Can you help? Do you have binaries (rpm) of this tool? 
I'm really interested on it ..

Regards,
Fernando
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for APR... yes
checking for APR-util... yes
checking for strtoll... yes
checking for strtoq... yes
checking for rand... yes
checking for lrand48... yes
checking for random... yes
checking random number generator to use... random
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: creating build/rules.mk
config.status: creating build/config_vars.mk
buildconf: checking installation...
buildconf: autoconf version 2.57 (ok)
buildconf: libtool version 1.4.3 (ok)
Copying libtool helper files ...
Creating include/arch/unix/apr_private.h.in ...
Creating configure ...
Creating include/private/apu_config.h ...
Creating configure ...
Invoking xml/expat/buildconf.sh ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Copying libtool helper files ...
Putting files in AC_CONFIG_AUX_DIR, `conftools'.
Creating config.h.in ...
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
Creating configure ...

Reply via email to