Ad Widget

Collapse

Configure 3.4.4 for Fedora27

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Durwin
    Junior Member
    • Apr 2015
    • 19

    #1

    Configure 3.4.4 for Fedora27

    I have version 3.4.4 and am getting this error.

    Code:
    checking for the linux kernel version... unknown family (4.13.12-300.fc27.x86_64)
    checking size of void *... 8
    checking for mysql_config... /usr/bin/mysql_config
    checking for main in -l... no
    configure: error: Not found mysqlclient library
    I was successful configuring 3.4 for Fedora26, but I cannot configure 3.4.4 for Fedora27. Anyone have any suggestions?

    Thank you,
    Durwin
  • Durwin
    Junior Member
    • Apr 2015
    • 19

    #2
    Configure 3.4.4 for Fedora27

    The locate command showed the following.
    $ locate libmysqlclient
    Code:
    /usr/lib64/mysql/libmysqlclient.so
    /usr/lib64/mysql/libmysqlclient.so.18
    /usr/lib64/mysql/libmysqlclient.so.18.0.0
    /usr/lib64/mysql/libmysqlclient_r.so
    The command used.
    Code:
      $ ./configure --enable-server --enable-agent --with-mysql=/usr/lib64/mysql/libmysqlclient.so --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
    The config.log show this.
    Code:
    configure:8058: checking for mysql_config
    configure:8088: result: /usr/lib64/mysql/libmysqlclient.so
    configure:8183: checking for main in -l
    configure:8202: gcc -o conftest -g -O2   -rdynamic   conftest.c -l  -lm -ldl  -lresolv  >&5
    /usr/bin/ld: cannot find -l-lm
    collect2: error: ld returned 1 exit status
    configure:8202: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    You can see where it says, 'cannot find -l-lm'. Why is it looking for '-l-lm'?

    And this.
    Code:
    |
    |
    | int
    | main ()
    | {
    | return main ();
    |   ;
    |   return 0;
    | }
    configure:8212: result: no
    configure:8220: error: Not found mysqlclient library
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    
    ac_cv_build=x86_64-pc-linux-gnu

    I did find this which authenticates the problem, but no fix. https://lists.fedoraproject.org/arch...2MYFMJMYUK3WP/
    Last edited by Durwin; 01-12-2017, 17:57.

    Comment

    • volter
      Member
      Zabbix Certified Specialist
      • Dec 2011
      • 85

      #3
      See https://support.zabbix.com/browse/ZBX-12232

      Comment

      • Durwin
        Junior Member
        • Apr 2015
        • 19

        #4
        Thank you for the reply.

        I applied the patch fix-m4-mariadb-search.patch to 3.4.4 (the other looks to be for 3.0). However, I still receive the same error. Does fix-m4-mariadb-search.patch only work for 3.4.0 as shown at the top of the file?

        Regards,

        Durwin

        Comment

        Working...