Ad Widget

Collapse

make error on fbsd 5.4 ./configure --with-mysql=/usr/local --with-net-snmp=/usr/local

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riegersteve
    Member
    • Oct 2004
    • 68

    #1

    make error on fbsd 5.4 ./configure --with-mysql=/usr/local --with-net-snmp=/usr/local

    nocint# make
    Making all in src/zabbix_agent
    gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall -L/usr/local/lib -lldap
    sysinfo.c:132:19: ldap.h: No such file or directory
    sysinfo.c: In function `check_ldap':
    sysinfo.c:2803: error: `LDAP' undeclared (first use in this function)
    sysinfo.c:2803: error: (Each undeclared identifier is reported only once
    sysinfo.c:2803: error: for each function it appears in.)
    sysinfo.c:2803: error: `ldap' undeclared (first use in this function)
    sysinfo.c:2804: error: `LDAPMessage' undeclared (first use in this function)
    sysinfo.c:2804: error: `res' undeclared (first use in this function)
    sysinfo.c:2805: error: `msg' undeclared (first use in this function)
    sysinfo.c:2808: error: `LDAP_SCOPE_BASE' undeclared (first use in this function)
    sysinfo.c:2816: error: `BerElement' undeclared (first use in this function)
    sysinfo.c:2816: error: `ber' undeclared (first use in this function)
    sysinfo.c:2820: warning: implicit declaration of function `ldap_init'
    sysinfo.c:2827: warning: implicit declaration of function `ldap_search_s'
    sysinfo.c:2834: warning: implicit declaration of function `ldap_first_entry'
    sysinfo.c:2841: warning: implicit declaration of function `ldap_first_attribute'
    sysinfo.c:2841: warning: assignment makes pointer from integer without a cast
    sysinfo.c:2842: warning: implicit declaration of function `ldap_get_values'
    sysinfo.c:2842: warning: assignment makes pointer from integer without a cast
    sysinfo.c:2844: warning: implicit declaration of function `ldap_value_free'
    sysinfo.c:2845: warning: implicit declaration of function `ldap_memfree'
    sysinfo.c:2847: warning: implicit declaration of function `ber_free'
    sysinfo.c:2849: warning: implicit declaration of function `ldap_msgfree'
    sysinfo.c:2850: warning: implicit declaration of function `ldap_unbind'
    ../../include/snprintf.c: In function `dopr':
    ../../include/snprintf.c:182: warning: implicit declaration of function `__va_copy'
    ../../include/snprintf.c: At top level:
    ../../include/snprintf.c:169: warning: 'dopr' defined but not used
    *** Error code 1

    Stop in /usr/local/src/zabbix-1.1alpha10/src/zabbix_agent.
    *** Error code 1

    Stop in /usr/local/src/zabbix-1.1alpha10.
    nocint# locate ldap.h
    /usr/local/include/apr-1/apr_ldap.h
    /usr/local/include/ldap.h
    /usr/local/include/php/ext/ldap/php_ldap.h
    /usr/local/ncvs/ports/dns/powerdns/files/Attic/patch-modules_ldapbackend_powerldap.hh,v
    /usr/local/ncvs/ports/net/powerdns/files/Attic/patch-modules_ldapbackend_powerldap.hh,v
    /usr/local/ncvs/src/contrib/sendmail/include/sm/ldap.h,v
    /usr/local/src/php-4.3.11/ext/ldap/php_ldap.h
    /usr/local/src/php-src/php-4.3.11/ext/ldap/php_ldap.h
    /usr/local/src/php4-/work/php-4.3.11/ext/ldap/php_ldap.h
    /usr/src/contrib/sendmail/include/sm/ldap.h
    nocint# ./configure --with-mysql=/usr/local --with-net-snmp=/usr/local --with-ldap=/usr/local
    checking whether make sets $(MAKE)... yes
    ...
    configure: WARNING: sys/mount.h: see the Autoconf documentation
    configure: WARNING: sys/mount.h: section "Present But Cannot Be Compiled"
    configure: WARNING: sys/mount.h: proceeding with the preprocessor's result
    configure: WARNING: sys/mount.h: in the future, the compiler will take precedence
    configure: WARNING: ## ------------------------------------------ ##
    configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
    configure: WARNING: ## ------------------------------------------ ##
    ...
    checking for MySQL support... yes
    checking for floor... no
    checking for floor in -lm... yes
    checking for compress in -lz... yes
    checking for PostgreSQL support... no
    checking for NET-SNMP support... checking for main in -lcrypto... yes
    yes
    checking for UCD-SNMP support... no
    checking for LDAP support... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/zabbix_sender/Makefile
    config.status: creating src/zabbix_agent/Makefile
    config.status: creating src/zabbix_server/Makefile
    config.status: creating include/config.h
    config.status: include/config.h is unchanged

    ************************************************** *********
    * Now run 'make' *
    * *
    * Thank you for using Zabbix! *
    * <http://www.zabbix.com> *
    ************************************************** *********

    nocint# make
    Making all in src/zabbix_agent
    gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall -L/usr/local/lib -lldap
    sysinfo.c:132:19: ldap.h: No such file or directory
    sysinfo.c: In function `check_ldap':
    sysinfo.c:2803: error: `LDAP' undeclared (first use in this function)
    sysinfo.c:2803: error: (Each undeclared identifier is reported only once
    sysinfo.c:2803: error: for each function it appears in.)
    sysinfo.c:2803: error: `ldap' undeclared (first use in this function)
    sysinfo.c:2804: error: `LDAPMessage' undeclared (first use in this function)
    sysinfo.c:2804: error: `res' undeclared (first use in this function)
    sysinfo.c:2805: error: `msg' undeclared (first use in this function)
    sysinfo.c:2808: error: `LDAP_SCOPE_BASE' undeclared (first use in this function)
    sysinfo.c:2816: error: `BerElement' undeclared (first use in this function)
    sysinfo.c:2816: error: `ber' undeclared (first use in this function)
    sysinfo.c:2820: warning: implicit declaration of function `ldap_init'
    sysinfo.c:2827: warning: implicit declaration of function `ldap_search_s'
    sysinfo.c:2834: warning: implicit declaration of function `ldap_first_entry'
    sysinfo.c:2841: warning: implicit declaration of function `ldap_first_attribute'
    sysinfo.c:2841: warning: assignment makes pointer from integer without a cast
    sysinfo.c:2842: warning: implicit declaration of function `ldap_get_values'
    sysinfo.c:2842: warning: assignment makes pointer from integer without a cast
    sysinfo.c:2844: warning: implicit declaration of function `ldap_value_free'
    sysinfo.c:2845: warning: implicit declaration of function `ldap_memfree'
    sysinfo.c:2847: warning: implicit declaration of function `ber_free'
    sysinfo.c:2849: warning: implicit declaration of function `ldap_msgfree'
    sysinfo.c:2850: warning: implicit declaration of function `ldap_unbind'
    ../../include/snprintf.c: In function `dopr':
    ../../include/snprintf.c:182: warning: implicit declaration of function `__va_copy'
    ../../include/snprintf.c: At top level:
    ../../include/snprintf.c:169: warning: 'dopr' defined but not used
    *** Error code 1

    Stop in /usr/local/src/zabbix-1.1alpha10/src/zabbix_agent.
    *** Error code 1

    Stop in /usr/local/src/zabbix-1.1alpha10.
  • riegersteve
    Member
    • Oct 2004
    • 68

    #2
    forgot to add --with-ldap

    Comment

    Working...