./customapache.sh error

psk

New member
Joined
Mar 7, 2004
Messages
3
Hi,

The server is FreeBSD 4.9-RELEASE-p3

When I run

./customapache.sh

I get the error
----------<snip>----------
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DMOD_SSL=208116 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` os.c
In file included from os.c:6:
../../include/ap_config.h:459: features.h: No such file or directory
*** Error code 1

Stop in /usr/local/directadmin/customapache/apache_1.3.29/src/os/unix.
*** Error code 1

Stop in /usr/local/directadmin/customapache/apache_1.3.29/src.
*** Error code 1

Stop in /usr/local/directadmin/customapache/apache_1.3.29.
*** Error code 1

Stop in /usr/local/directadmin/customapache/apache_1.3.29.

*** The make has failed, do you want to try to make again? (y,n):
----------<\snip>----------

:( How can I solve the issue ?
 
What are you trying to do? To rebuild apache do it from:

/usr/local/directadmin/customapache/

./build all
 
Hey,

In directadmin the customapache script does nothing but the buildall. So I think that's not a solution :(

Additionally any administrator who does the apache recompilation in directadmin is supposed to do it via the customapache script since it also downloads the latest build scipt from directadmin website. :)

If you want to check the customapache script and verify what it's doing please go through it..


#!/bin/sh

DIR=/usr/local/directadmin/customapache
mkdir -p $DIR;
cd $DIR;

/usr/bin/fetch -o build http://files.directadmin.com/services/customapache/build
if [ ! -e ${DIR}/build ]
then
/usr/bin/fetch -o build http://www.directadmin.com/services/customapache/build
if [ ! -e ${DIR}/build ]
then
echo "*** There was an error downloading the customapaches build script. ***";
exit 1;
fi
fi

chmod 755 build

./build update

./build all

exit 0;


I expect some solution for the issue of missing "features.h" included in "os.c"

Is it OK to delete the old apache source and run the script again so that the new copy of the apache source is downloaded.

I would prefer some other solution if something like that exists.
 
Hello,

yes, you can completely delete the whole customapache directory if you want, then just run:

cd /usr/local/directadmin/scripts
./customapache

It should start the whole thing over again.. but if you're still missing /usr/include/features.h, it probably wont' change anything.

I just did a quick search over our 4.8 and 5.1 systems and there is no features.h file anywhere on either of them, yet apache compiles fine. (does exist on redhat)... so, I'm wondering if the ./configure making some wrong assumptions about your OS..

I had a look in ap_config.h and the include off features.h at 459 is:
Code:
#if LINUX > 1
#include <features.h>
so I think something is defining LINUX, when the system is FreeBSD (right?).. not too sure why the heck it would do that.

John
 
Back
Top