Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I compiled the mod rewrite for apache (version 1.3.0) however, when I try to run the server I have this error about mod_rewrite:

Syntax error on line 27 of /home/myuser/apache/etc/httpd.conf:
Cannot load /home/myuser/apache/libexec/mod_rewrite.so into server: 
/home/myuser/apache/libexec/mod_rewrite.so: undefined symbol: lstat
./sbin/apachectl start: httpd could not be started

A similar problem is here https://bugzilla.redhat.com/show_bug.cgi?id=101837 but the solution provided does not help me...I get an error after __THROW, the classic "missing , ; before {" and, removing the THROW clause leads me to an "lstat already defined here" (pointing at sys/stat.h header).

Can you help me?

share|improve this question
    
Should we infer that you're using a Redhat-based OS? –  schaiba Mar 5 '13 at 10:52
    
If this is for the apache 1.3 you built yesterday (unix.stackexchange.com/questions/66841/ubuntu-cant-find-ndbm-h), you should probably make that clear. If not giving the version number generally doesn't hurt anyway ;) –  TAFKA 'goldilocks' Mar 5 '13 at 13:16
    
Yes it is but I though it was a version indipendent problem, anyway I edited! –  Phate Mar 5 '13 at 15:19
    
Any chance on pasting a snip-it of line 27 and the surrounding lines (if relevant)? –  cinelli Mar 13 '13 at 19:57
    
Hi, it's just the Load directive –  Phate Mar 26 '13 at 10:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.