Ad Widget

Collapse

Problem building on Fedora Core 4 64bit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 0x00coffee
    Junior Member
    • Nov 2005
    • 4

    #1

    Problem building on Fedora Core 4 64bit

    Kere is a problem when trying to build on 64Bit Fedora Core 4


    if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/include/mysql -I/usr/include -O3 -MT server.o -MD -MP -MF ".deps/server.Tpo" -c -o server.o server.c; \
    then mv -f ".deps/server.Tpo" ".deps/server.Po"; else rm -f ".deps/server.Tpo"; exit 1; fi
    gcc -O3 -o zabbix_server -L/usr/lib/mysql -lmysqlclient -lm -lz -L/usr/lib -lnetsnmp -lcrypto evalfunc.o expression.o actions.o zlog.o functions.o server.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a escalator/libzbxescalator.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a -lresolv -lnsl
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/logs/zabbix-1.1beta2/src/zabbix_server'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/logs/zabbix-1.1beta2/src/zabbix_server'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/logs/zabbix-1.1beta2/src'
    make: *** [all-recursive] Error 1

    Here is contents of /usr/lib/msql
    lrwxrwxrwx 1 root root 26 Oct 14 11:33 libmysqlclient_r.so.14 -> libmysqlclient_r.so.14.0.0
    -rwxr-xr-x 1 root root 1181304 Oct 5 17:52 libmysqlclient_r.so.14.0.0
    lrwxrwxrwx 1 root root 24 Oct 14 11:33 libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
    -rwxr-xr-x 1 root root 1175092 Oct 5 17:52 libmysqlclient.so.14.0.0
    -rwxr-xr-x 1 root root 11390 Oct 5 17:52 mysqlbug
    -rwxr-xr-x 1 root root 4664 Oct 5 17:52 mysql_config

    Here is /usr/lib64/mysql

    -rw-r--r-- 1 root root 18240 Oct 5 17:57 libdbug.a
    -rw-r--r-- 1 root root 65908 Oct 5 17:57 libheap.a
    -rw-r--r-- 1 root root 22102 Oct 5 17:57 libmerge.a
    -rw-r--r-- 1 root root 432002 Oct 5 17:57 libmyisam.a
    -rw-r--r-- 1 root root 41010 Oct 5 17:57 libmyisammrg.a
    -rw-r--r-- 1 root root 1506592 Oct 5 17:57 libmysqlclient.a
    -rw-r--r-- 1 root root 1518458 Oct 5 17:57 libmysqlclient_r.a
    lrwxrwxrwx 1 root root 26 Oct 14 11:36 libmysqlclient_r.so -> libmysqlclient_r.so.14.0.0
    lrwxrwxrwx 1 root root 26 Aug 25 17:47 libmysqlclient_r.so.10 -> libmysqlclient_r.so.10.0.0
    -rwxr-xr-x 1 root root 238552 Apr 8 2005 libmysqlclient_r.so.10.0.0
    lrwxrwxrwx 1 root root 26 Oct 14 11:32 libmysqlclient_r.so.14 -> libmysqlclient_r.so.14.0.0
    -rwxr-xr-x 1 root root 1222376 Oct 5 17:57 libmysqlclient_r.so.14.0.0
    lrwxrwxrwx 1 root root 24 Oct 14 11:36 libmysqlclient.so -> libmysqlclient.so.14.0.0
    lrwxrwxrwx 1 root root 24 Aug 25 17:47 libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
    -rwxr-xr-x 1 root root 233856 Apr 8 2005 libmysqlclient.so.10.0.0
    lrwxrwxrwx 1 root root 24 Oct 14 11:32 libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
    -rwxr-xr-x 1 root root 1214336 Oct 5 17:57 libmysqlclient.so.14.0.0
    -rw-r--r-- 1 root root 1145362 Oct 5 17:57 libmystrings.a
    -rw-r--r-- 1 root root 374810 Oct 5 17:57 libmysys.a
    -rw-r--r-- 1 root root 147676 Oct 5 17:57 libnisam.a
    -rw-r--r-- 1 root root 22150 Oct 5 17:57 libvio.a
    -rwxr-xr-x 1 root root 11197 Oct 5 17:57 mysqlbug
    -rwxr-xr-x 1 root root 4627 Oct 5 17:57 mysql_config
  • Mak
    Junior Member
    • Nov 2005
    • 1

    #2
    Check you /etc/ld.so.conf file.
    If need add /usr/lib64/mysql

    Comment

    • azilber
      Member
      • Apr 2005
      • 33

      #3
      Dunno if this helps on x64...

      But one of the things I needed to do to get it to compile on the regular FC4 is to install the mysql compat rpm and make sure you specify those directories for configure.

      -Alex

      Comment

      Working...