Ad Widget

Collapse

1.1alpha12 compilation errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adminfrd
    Junior Member
    • Aug 2005
    • 4

    #1

    1.1alpha12 compilation errors

    Hello Everybody,

    I am trying to compile 1.1alpha12 version and these errors appear:

    -----------------------------------------------------------------------
    pinger/libzbxpinger.a(pinger.o)(.text+0x397):/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:201: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x4c7): In function `create_host_file':
    /data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:256: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x563):/data/installs/zabbix-1.1alpha12/src/zabbix_server/pinger/pinger.c:270: undefined reference to `mysql_free_result'
    poller/libzbxpoller.a(poller.o)(.text+0x1ae): In function `get_minnextcheck':
    /data/installs/zabbix-1.1alpha12/src/zabbix_server/poller/poller.c:132: undefined reference to `mysql_free_result'
    poller/libzbxpoller.a(poller.o)(.text+0x26d):/data/installs/zabbix-1.1alpha12/src/zabbix_server/poller/poller.c:169: more undefined references to `mysql_free_result' follow
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/data/installs/zabbix-1.1alpha12/src/zabbix_server'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/data/installs/zabbix-1.1alpha12/src/zabbix_server'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/data/installs/zabbix-1.1alpha12/src'
    make: *** [all-recursive] Error 1
    -----------------------------------------------------------------------

    Try with these variants:

    ./configure --with-mysql --with-net-snmp --enable-server --enable-agent

    Later:

    LIBS="-L/usr/lib/mysql -lmysqlclient" \
    ./configure --with-mysql --with-net-snmp --enable-server --enable-agent --enable-static

    And Later:

    LDLIBS=-lenlibs LDFLAGS=-L/usr/lib/mysql -lmysqlclient \
    ./configure --with-mysql --with-net-snmp --enable-server --enable-agent --enable-static

    My SO:

    Centos 3.4

    GCC:
    [root@server02 installs]# gcc -v
    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
    Thread model: posix
    gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)

    MySQL:
    [root@server02 installs]# mysql -V
    mysql Ver 14.7 Distrib 4.1.13, for pc-linux-gnu (i686) using readline 4.3

    MySQL RPMS:
    MySQL-client-standard-4.1.13-0.rhel3.i386.rpm
    MySQL-devel-standard-4.1.13-0.rhel3.i386.rpm
    MySQL-server-standard-4.1.13-0.rhel3.i386.rpm
    MySQL-shared-standard-4.1.13-0.rhel3.i386.rpm


    Yours Can help me a little....

    Thanks, Cristian
    Campana, Bs. As. Argentina.
  • primos
    Member
    • Jul 2005
    • 61

    #2
    SuSE SLES 9 SP 2

    I got them too, but the thing is that this happens only when I upgrade mysql from 4.0x, which is default for my system (comes with the distro). To make it happen I compile on a system, mirror system to my production server, only that that one has original mysql (4.0x), then I copy bins and run them against newer db. I happened to me because I wanted Innodb and I couldn't reconfigure mysql 4.0x to Innodb (beyond me why), after upgrade I was able to do so, but than ... well you know the rest !
    I checked the log and all works well.

    I am planning on getting to the bottom of this so please if you know some answers before I do please post them!
    Last edited by primos; 21-08-2005, 11:00.

    Comment

    • primos
      Member
      • Jul 2005
      • 61

      #3
      I've won. T he answer is sym link in /usr/lib/mysql. Looking in my answer and at what you were doing I tried combination. I traced what suse ships with the distro (especially mysqlclient stuff, the idea came out of your flags because I was thinking in the past that I have problems with the devel packet ) and found something missing after the upgrade "/usr/lib/mysql/libmysqlclient.so" , only /usr/lib/libmysqlclient.so existed which is symlink like /usr/lib/mysql/libmysqlclient.so to /usr/lib/libmysqlclient.so.14.0.0 so do :

      ln -s /usr/lib/libmysqlclient.so.14.0.0 /usr/lib/mysql/libmysqlclient.so

      (this is the case in my distro, in yours maybe /usr/lib/libmysqlclient.so is missing, since you've tried adding those FLAGS manually and didn't get an error-missing ... )


      chmod .... (just in case)


      ... and enjoy zabbix!

      ps I've added src for server from cvs because triggers in alpha 12 are broken!Thanks to you too, I just didn't saw my self!
      Last edited by primos; 22-08-2005, 01:35.

      Comment

      • adminfrd
        Junior Member
        • Aug 2005
        • 4

        #4
        Thanks Friends, I am going to prove these options and then I comment on them.

        Thank you very much!!

        Comment

        • primos
          Member
          • Jul 2005
          • 61

          #5
          Please do, I want to know If this is the case on other distors as well, if so and you got your packets from mysql webpage I'm going to write them an email explaining them the missing link!

          ps: happy to be of some help, if any!
          Last edited by primos; 22-08-2005, 01:50.

          Comment

          • adapter
            Junior Member
            • Oct 2005
            • 1

            #6
            Hi

            i have the same error! here is my /usr/lib

            lrwxrwxrwx 1 root root 26 Oct 7 14:41 libmysqlclient_r.so.10 -> libmysqlclient_r.so.10.0.0*
            -rwxr-xr-x 1 root root 230560 Sep 9 19:12 libmysqlclient_r.so.10.0.0*
            lrwxrwxrwx 1 root root 26 Oct 7 14:41 libmysqlclient_r.so.12 -> libmysqlclient_r.so.12.0.0*
            -rwxr-xr-x 1 root root 225988 Sep 9 19:12 libmysqlclient_r.so.12.0.0*
            lrwxrwxrwx 1 root root 24 Oct 7 14:41 libmysqlclient.so -> libmysqlclient.so.12.0.0*
            lrwxrwxrwx 1 root root 24 Oct 7 14:41 libmysqlclient.so.10 -> libmysqlclient.so.10.0.0*
            -rwxr-xr-x 1 root root 224606 Sep 9 19:12 libmysqlclient.so.10.0.0*
            lrwxrwxrwx 1 root root 24 Oct 7 14:41 libmysqlclient.so.12 -> libmysqlclient.so.12.0.0*
            -rwxr-xr-x 1 root root 221440 Sep 9 19:12 libmysqlclient.so.12.0.0*

            how can i fix?

            i use centos 4.1

            Comment

            • primos
              Member
              • Jul 2005
              • 61

              #7
              Try,

              ln -s /usr/lib/libmysqlclient.so.12.0.0 /usr/lib/mysql/libmysqlclient.so

              libmysqlclient.so.12.0.0 can be replaced by any libmysqlclient client that you might be running!
              Last edited by primos; 12-10-2005, 15:01.

              Comment

              Working...