apache mod_geoip

openvox

Verified User
Joined
Aug 29, 2007
Messages
8
Here's a related thread but the situation didn't get resolved there: http://www.directadmin.com/forum/showthread.php?t=19391

http://help.directadmin.com/item.php?id=50

cd /usr/local/directadmin/customapache
vi configure.apache_ssl

Copy mod_geoip.c file to:
/usr/local/directadmin/customapache/apache_1.3.37/src/modules/extra/mod_geoip.c

./build clean
./build apache_mod_ssl

This time an error occurred
<=== src/modules/standard
===> src/modules/extra
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DMOD_SSL=208130 -DUSE_HSREGEX -DEAPI `../../apaci` mod_frontpage.c
rm -f libextra.a
ar cr libextra.a mod_frontpage.o mod_geoip.o
ar: mod_geoip.o: No such file or directory
make[4]: *** [libextra.a] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.39/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.39'
make: *** [build] Error 2


this is my configure.apache_ssl

#!/bin/sh
./configure \
--with-apache=../apache_1.3.39 \
--with-ssl=/usr \
--prefix=/etc/httpd \
--exec-prefix=/etc/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc/httpd/conf \
--enable-module=all \
--enable-module=ssl \
--enable-shared=max \
--enable-suexec \
--suexec-docroot=/ \
--suexec-caller=apache \
--suexec-userdir=public_html \
--includedir=/usr/include/apache \
--libexecdir=/usr/lib/apache \
--datadir=/var/www \
--iconsdir=/var/www/icons \
--htdocsdir=/var/www/html \
--manualdir=/var/www/html/manual \
--cgidir=/var/www/cgi-bin \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--proxycachedir=/var/cache/httpd \
--with-perl=/usr/bin/perl \
--add-module=mod_frontpage.c \
--disable-module=auth_db --disable-module=auth_dbm \
--activate-module=src/modules/extra/mod_geoip.c \
 

Attachments

Last edited:
The error is specific:
ar: mod_geoip.o: No such file or directory
Is there a copy of mod_geoip.o on your system (was it created from mod_geoip.c during the compile stage)? if so, then it's in the wrong directory.

Jeff
 
Back
Top