Menu

Trouble building & running on SuSE ES9

Help
Pete Neu
2006-07-13
2013-04-23
  • Pete Neu

    Pete Neu - 2006-07-13

    Hello,

    I'm trying to configure mod_auth_mysql for this system.

    OS: SuSE ES 9
    httpd: 2.0.49 (pre-build by SuSE)
    mysql: 5.0.15 (installed from rpms)

    I tried to run the pre build mod_auth_mysql but like you suggested I ran into some troubles. Httpd wouldn't start. With no error message.

    Then I tried to build mod_auth_mysql new. By using this command as described in the build explenations.

    apxs2 -c -L/usr/lib/mysql -I/usr/include/php/ext/mysql/libmysql/ -lmysqlclient -lm -lz mod_auth_mysql.c

    The error message say that it can't find -lmysqlclient although it is in dir:
    /usr/lib/mysql/libmysqlclient.so.12

    Can anyone please give me a hint to what I'm doing wrong?

    cheers,
    Pete

    Error message:

    apxs2 -c -L/usr/lib/mysql -I/usr/include/php/ext/mysql/libmysql/ -lmysqlclient -lm -lz mod_auth_mysql.c
    /usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2  -I/usr/include/php/ext/mysql/libmysql/  -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
    mod_auth_mysql.c:395: warning: function declaration isn't a prototype
    mod_auth_mysql.c: In function `hex2chr':
    mod_auth_mysql.c:797: warning: passing arg 1 of `ap_strchr' discards qualifiers from pointer target type
    mod_auth_mysql.c: In function `format_cookie':
    mod_auth_mysql.c:991: warning: passing arg 1 of `ap_strchr' discards qualifiers from pointer target type
    mod_auth_mysql.c:1006: warning: passing arg 1 of `ap_strchr' discards qualifiers from pointer target type
    /usr/share/apache2/build/libtool --silent --mode=link gcc -o mod_auth_mysql.la -I/usr/include/php/ext/mysql/libmysql/  -L/usr/lib/mysql -lmysqlclient -lm -lz -rpath /usr/lib/apache2 -module -avoid-version    mod_auth_mysql.lo
    /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    apxs:Error: Command failed with rc=65536

     
    • Pete Neu

      Pete Neu - 2006-07-13

      OK. I solved the problem with the missing lib. Now another problem is: apxs does not want to include the -lz option. "cannot find -lz" Is this option necessary at all?

       
    • Jerry Stuckle

      Jerry Stuckle - 2006-10-17

      Yes, mysql requires the -lz option.  Which version of gcc are you using?

       

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.