Problems installing apache2 [for subversion] via ports

Geffy geffy at geffychan.co.uk
Wed Jun 23 13:26:00 BST 2004


john_oshea at wordbank.com wrote:
> [List moderator, please ignore my other message pending approval - I 
> forgot I wasn't subscribed using this address. Doh]
> 
> 
> De-lurking in a rather crap way - hi all  :)
> 
> I'm attempting to get subversion installed on a fairly new machine and 
> am stumbling at the 'get apache2 installed' stage. I'm wondering if 
> anyone can point out where I'm going wrong.
> 
> In brief:
> 
>> cd /usr/ports/www/apache2
>> make  -DWITH_BERKLEYDB=db42
>> make  -DWITH_BERKLEYDB=db42 install
> 
> 
> installs ok, or so it seems at first glance (httpd running and listening 
> on port 80). Further checking shows a bunch of:
> 
>> /libexec/ld-elf.so.1: /usr/local/sbin/httpd: Undefined symbol 
>> "apr_bucket_alloc_create"
> 
> 
> in /var/log/httpd-error.log and browsing to the server in question 
> brings up an empty page rather than the standard 'default apache' page.
> 
> Googling for "apr_bucket_alloc_create" doesn't get me back anything I 
> can understand, tbh.
> 
> What am I missing? (apart from any idea on what to do now...)
> 
> Ta,
> 
> John
> 
> 
> Some other (hopefully relevant) details:
> 
> root pigsy#> ldd /usr/local/sbin/httpd
> /usr/local/sbin/httpd:
>         libz.so.2 => /lib/libz.so.2 (0x280bd000)
>         libssl.so.3 => /usr/local/lib/libssl.so.3 (0x280cb000)
>         libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0x280fc000)
>         libaprutil-0.so.9 => /usr/local/lib/apache2/libaprutil-0.so.9 
> (0x28200000)
>         libexpat.so.5 => /usr/local/lib/libexpat.so.5 (0x28213000)
>         libapr-0.so.9 => /usr/local/lib/apache2/libapr-0.so.9 (0x28233000)
>         libm.so.2 => /lib/libm.so.2 (0x28250000)
>         libcrypt.so.2 => /lib/libcrypt.so.2 (0x28269000)
>         libc.so.5 => /lib/libc.so.5 (0x28282000)
> 
> 
>> root pigsy#> uname -a
>> FreeBSD pigsy.wordbank.com 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 
>> #0: Thu Jun  3 18:30:25 BST 2004 
>> root at pigsy.wordbank.com:/usr/obj/usr/src/sys/PIGSY  i386

you need to compile with
cd /usr/ports/www/apache2/
make install clean WITH_BERKELEYDB=db42

not the -DWITH.... as thats for something without a value associated 
with it like the mod_php is -DWITH_APACHE2 as that is saying directly to 
use apache2 if you get my meaning

  Geoff




More information about the Ukfreebsd mailing list