apache start-up issue?

Michael Butler imb at protected-networks.net
Sun Sep 16 17:56:11 PDT 2007


pluknet wrote:
> On 13/09/2007, Michael Butler <imb at protected-networks.net> wrote:
>> This is weird .. any ideas?
>>
>> imb at mail:/home/imb> sudo /usr/local/etc/rc.d/apache.sh restart
>> apache not running? (check /var/run/httpd.pid).
>> Starting apache.
>> Syntax error on line 205 of /usr/local/etc/apache/httpd.conf:
>> Cannot load /usr/local/libexec/apache/mod_mmap_static.so into server:
>> /usr/local/libexec/apache/mod_mmap_static.so: Undefined symbol
>> "ap_null_cleanup"
>>
>>   .. yet ..
>>
>> imb at mail:/home/imb> nm /usr/local/sbin/httpd | grep ap_null_cleanup
>> 0804b290 T ap_null_cleanup
>>
> 
> Hello.
> 
> An --export-dynamic flag passed to the linker helped me to avoid this issue.

The fix is even more simple than this .. create small shell script and
place it in /usr/bin/objformat. It should read something like this ..

#!/bin/sh
echo elf

Which tells the src/Configure script to apply the appropriate linker
flags ;-)

	Michael




More information about the freebsd-current mailing list