Menu

apache wont start - ap_escape_logitem

Help
2005-04-08
2013-04-23
  • jonharrisuk

    jonharrisuk - 2005-04-08

    Hi
    I am using a RAQ4 (with raq550 o/s)

    Got this error when trying to start apache

    Cannot load /etc/httpd/modules/mod_auth_mysql.so into server: /etc/httpd/modules/mod_auth_mysql.so:
    undefined symbol: ap_escape_logitem

    ran:
    ---
    apxs -c -L/usr/include/mysql -I/usr/include/mysql  -lmysqlclient -lm -lz mod_auth_mysql.c

    got:
    ---
    gcc -O2 -m486 -fno-strength-reduce -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/include -DEAPI -fno-strict-aliasing -I/usr/local/include -fpic -DSHARED_MODULE -I/usr/include/apache -I/usr/include/mysql  -c mod_auth_mysql.c
    mod_auth_mysql.c: In function `format_remote_host':
    mod_auth_mysql.c:777: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_filename':
    mod_auth_mysql.c:786: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_server_name':
    mod_auth_mysql.c:790: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_server_hostname':
    mod_auth_mysql.c:794: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_protocol':
    mod_auth_mysql.c:798: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_method':
    mod_auth_mysql.c:802: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_args':
    mod_auth_mysql.c:807: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_request':
    mod_auth_mysql.c:821: warning: return makes pointer from integer without a cast
    mod_auth_mysql.c: In function `format_uri':
    mod_auth_mysql.c:825: warning: return makes pointer from integer without a cast
    gcc -shared -o mod_auth_mysql.so mod_auth_mysql.o -L/usr/include/mysql -lmysqlclient -lm -lz

    ran:
    ---
    apxs -i mod_auth_mysql.so

    got:
    ---
    cp mod_auth_mysql.so /usr/lib/apache/mod_auth_mysql.so
    chmod 755 /usr/lib/apache/mod_auth_mysql.so

    Then put the line at the end of my loadmodules
    ----------------------------------------------

    LoadModule mysql_auth_module modules/mod_auth_mysql.so

    Did an httpd stop and start (not a restart!) and got the error above.

    Needless to say Apache loads ok without the above.

    Anyone have an ideas?

     
    • jonharrisuk

      jonharrisuk - 2005-04-08

      Forgot to say which Apache

      Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6 PHP/4.0.6 FrontPage/5.0.2.2510 mod_perl/1.26

       
    • Jerry Stuckle

      Jerry Stuckle - 2005-04-08

      Hi, Jon,

      It looks like you have a problem in that ap_escape_logitem is not defined on your system (therefore the warnings at compile time).

      This should be defined in httpd.h.  Please check this file to ensure it is defined.  I looked through the documentation and didn't find any changes in this area, but 1.3.20 is quite old (1.3.33 is current), and no longer available for me to download.

      The only other problems I've seen are related to not completely stopping and restarting the server.  But if that were the case, I would still expect it to compile.

      So - please check on the definition of ap_escape_logitem and we'll go from there.

      Jerry

       
    • Jerry Stuckle

      Jerry Stuckle - 2005-04-08

      Jon,

      I just found it.  ap_escape_logitem was added in Apache 1.3.25.

      Can you upgrade to the current release (1.3.33)?  1.3.20 is pretty old, and there are a number of fixes (especially for security) between the two.

      Jerry

       
      • jonharrisuk

        jonharrisuk - 2005-04-08

        Jerry

        Many thanks for your response.

        I'll try and update the apache. I have a bit worried as the last time I tried something similar,on a RAQ it all worked fine but I broke the GUI!

        Regards

        Jon

         
    • jonharrisuk

      jonharrisuk - 2005-04-08

      jerry

      It worked!!

      Thanks very much.

      jon

       
    • Jerry Stuckle

      Jerry Stuckle - 2005-04-08

      Glad to hear it worked OK for you.

      I understand about upgrading.  I've had problems doing in the past, also :-).

      Jerry

       
    • Paul Smith

      Paul Smith - 2005-04-09

      I just "resolved" the same issue by installing mod_auth_mysql-2.7.0 on a box running httpd 2.0.40 and fedora 1.

      I'll probably get around to a major upgrade on the box, soon but for now I have a working webdav repositiry and cms authenticating a mysql database with md5 encrypted passwords... Cool.

       
    • Jerry Stuckle

      Jerry Stuckle - 2005-04-09

      Paul,

      Yes, in Apache2 it looks like this was added in Version 2.0.46 - over two and a half years ago.

      As I suggested to Jon, you really need to upgrade.  There are some important security fixes. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.