$Revision: 1.99 $ ($Date: 2010/12/10 10:13:45 $)
Please note that this document refers to a version of the product which has been deprecated, and declared "end of life", in favor of the more recent version of the server. Information obtained here is likely to be outdated and inaccurate.
The latest version of this FAQ is available on the HTTP Server Wiki, at <http://httpd.apache.org/docs/1.3/misc/FAQ.html>. This version is no longer maintained, and contains inaccurate and grossly outdated information.
struct iovec
" when
compiling under Linux?crypt
function when I
attempt to build Apache 1.2.If you have installed BIND-8 then this is
normally due to a conflict between your include files and
your libraries. BIND-8 installs its include files and
libraries /usr/local/include/
and
/usr/local/lib/
, while the resolver that comes
with your system is probably installed in
/usr/include/
and /usr/lib/
. If
your system uses the header files in
/usr/local/include/
before those in
/usr/include/
but you do not use the new
resolver library, then the two versions will conflict.
To resolve this, you can either make sure you use the
include files and libraries that came with your system or
make sure to use the new include files and libraries.
Adding -lbind
to the
EXTRA_LDFLAGS
line in your
Configuration file, then re-running
Configure, should resolve the problem. (Apache
versions 1.2.* and earlier use EXTRA_LFLAGS
instead.)
Note:As of BIND 8.1.1, the bind libraries and files are installed under /usr/local/bind by default, so you should not run into this problem. Should you want to use the bind resolvers you'll have to add the following to the respective lines:
EXTRA_CFLAGS=-I/usr/local/bind/include
EXTRA_LDFLAGS=-L/usr/local/bind/lib
EXTRA_LIBS=-lbind
If the server won't compile on your system, it is probably due to one of the following causes:
The Apache Group tests the ability to build the server on many different platforms. Unfortunately, we can't test all of the OS platforms there are. If you have verified that none of the above issues is the cause of your problem, and it hasn't been reported before, please submit a problem report. Be sure to include complete details, such as the compiler & OS versions and exact error messages.
struct
iovec
" when compiling under Linux?
This is a conflict between your C library includes and your kernel includes. You need to make sure that the versions of both are matched properly. There are two workarounds, either one will solve the problem:
struct iovec
from your C library includes. It is located in
/usr/include/sys/uio.h
.
Or,-DNO_WRITEV
to the
EXTRA_CFLAGS
line in your
Configuration and reconfigure/rebuild. This
hurts performance and should only be used as a last
resort.GCC parses your system header files and produces a modified subset which it uses for compiling. This behavior ties GCC tightly to the version of your operating system. So, for example, if you were running IRIX 5.3 when you built GCC and then upgrade to IRIX 6.2 later, you will have to rebuild GCC. Similarly for Solaris 2.4, 2.5, or 2.5.1 when you upgrade to 2.6. Sometimes you can type "gcc -v" and it will tell you the version of the operating system it was built against.
If you fail to do this, then it is very likely that
Apache will fail to build. One of the most common errors is
with readv
, writev
, or
uio.h
. This is not a bug with
Apache. You will need to re-install GCC.
crypt
function when I attempt to build Apache 1.2.
glibc puts the crypt
function
into a separate library. Edit your
src/Configuration
file and set this:
EXTRA_LIBS=-lcrypt
Then re-run src/Configure and re-execute the make.