Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 28th, 2001, 02:55 PM
eelgueta eelgueta is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Santiago. Chile
Posts: 3 eelgueta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to eelgueta
Unhappy Problems Compiling Apache

Hi All,

I've been trying to compile Apache in a P3 700Mhz, 128 MB RAM, running RedHat 7.0.

I started by uninstalling mod_ssl, mod_perl and Apache. Then I configured make with:

env CC=gcc CFLAGS="-O2 -Wall" EXTRA_LIBS=-lgdbm ./configure --enable-module=most --enable-shared=max --with-layout=Apache --prefix=/usr/local/apache --with-port=80

It worked pretty well. Then I tried make, and got an error (after the usual compile messages):

gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I.
./../lib/expat-lite -O2 -Wall `../../apaci` -fpic -DSHARED_MODULE mod_auth_dbm.c & & mv mod_auth_dbm.o mod_auth_dbm.lo
mod_auth_dbm.c:84:18: ndbm.h: No such file or directory
make[4]: *** [mod_auth_dbm.so] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/root/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/root/apache_1.3.20'
make: *** [build] Error 2


The file ndbm.h file is in /usr/include/gdbm.

I'm new to Linux and even newer to compiling in Linux. Any direction is VERY welcome!

Thanks,

Ed.

Reply With Quote
  #2  
Old October 28th, 2001, 08:02 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> The file ndbm.h file is in /usr/include/gdbm

You don't need to compile Apache that way. The Configure script is smart enough to detect and locate gdbm automatically, if you choose to enable whatever non-default modules that rely on gdbm.

To enable mod_auth_dbm (non-default module), you just need to append enable-module=auth_dbm and additionally append --disable-module=auth_db. (Don't enable auth_db and auth_dbm together).

Reply With Quote
  #3  
Old October 29th, 2001, 06:01 AM
eelgueta eelgueta is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Santiago. Chile
Posts: 3 eelgueta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to eelgueta
Smile Now: Problems at startup

Thanks FreeBSD.

I configured with this command:

env CC=gcc CFLAGS="-O2 -Wall" ./configure --enable-module=most --disable-module=auth_dbm --enable-shared=max --with-layout=Apache --prefix=/usr/local/apache --with-port=80

It worked fine. Then make and make install worked fine, too.

Now, the problem is the server doesn't start:

[root@spongebob apache_1.3.20]# /usr/local/apache/bin/apachectl start
Syntax error on line 221 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_userdir.so into server: undefined symbol: ap_os_is_path_absolute
/usr/local/apache/bin/apachectl start: httpd could not be started
[root@spongebob apache_1.3.20]#


Any ideas?

Thanks again.

Ed.

Reply With Quote
  #4  
Old October 29th, 2001, 06:23 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Do not set this env CC=gcc CFLAGS="-O2 -Wall" .

Reply With Quote
  #5  
Old October 29th, 2001, 06:59 AM
eelgueta eelgueta is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Santiago. Chile
Posts: 3 eelgueta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to eelgueta
Talking It works!

Thanks FreeBSD. It works great!

Ed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Problems Compiling Apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway