Ad Widget

Collapse

[1.3.7]FreeBSD 6.2 configure & compile issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BorisL
    Junior Member
    • Jan 2007
    • 20

    #1

    [1.3.7]FreeBSD 6.2 configure & compile issues

    FreeBSD 6.2-STABLE #8: Sat Feb 24 21:44:27 MSK 2007 i386

    Code:
    ./configure     --enable-server --enable-agent \
                    --with-mysql \
                    --with-net-snmp \
                    --with-libcurl=/usr/local
    Code:
    checking sys/proc.h presence... yes
    configure: WARNING: sys/proc.h: present but cannot be compiled
    configure: WARNING: sys/proc.h:     check for missing prerequisite headers?
    configure: WARNING: sys/proc.h: see the Autoconf documentation
    configure: WARNING: sys/proc.h:     section "Present But Cannot Be Compiled"
    configure: WARNING: sys/proc.h: proceeding with the preprocessor's result
    configure: WARNING: sys/proc.h: in the future, the compiler will take precedence
    ==========================
    checking resolv.h presence... yes
    configure: WARNING: resolv.h: present but cannot be compiled
    configure: WARNING: resolv.h:     check for missing prerequisite headers?
    configure: WARNING: resolv.h: see the Autoconf documentation
    configure: WARNING: resolv.h:     section "Present But Cannot Be Compiled"
    configure: WARNING: resolv.h: proceeding with the preprocessor's result
    configure: WARNING: resolv.h: in the future, the compiler will take precedence
    ==========================
    configure: WARNING: net/if.h: present but cannot be compiled
    configure: WARNING: net/if.h:     check for missing prerequisite headers?
    configure: WARNING: net/if.h: see the Autoconf documentation
    configure: WARNING: net/if.h:     section "Present But Cannot Be Compiled"
    configure: WARNING: net/if.h: proceeding with the preprocessor's result
    configure: WARNING: net/if.h: in the future, the compiler will take precedence
    Next, --with-libcurl without '=/usr/local':
    Code:
    checking for curl-config... /usr/local/bin/curl-config
    checking for the version of libcurl... 7.15.4
    checking for libcurl >= version 7.15.1... yes
    checking for main in -lcurl... yes
    checking whether libcurl is usable... no
    configure: error: Not found Curl library
    There are a lot of warnings during make all like this:
    Code:
    /usr/local/include/net-snmp/net-snmp-config.h:955:1: warning: "PACKAGE_BUGREPORT" redefined
    In file included from ../../include/sysinc.h:23,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    ../../include/config.h:482:1: warning: this is the location of the previous definition
    In file included from ../../include/sysinc.h:347,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    /usr/local/include/net-snmp/net-snmp-config.h:958:1: warning: "PACKAGE_NAME" redefined
    In file included from ../../include/sysinc.h:23,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    ../../include/config.h:485:1: warning: this is the location of the previous definition
    In file included from ../../include/sysinc.h:347,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    /usr/local/include/net-snmp/net-snmp-config.h:961:1: warning: "PACKAGE_STRING" redefined
    In file included from ../../include/sysinc.h:23,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    ../../include/config.h:488:1: warning: this is the location of the previous definition
    In file included from ../../include/sysinc.h:347,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    /usr/local/include/net-snmp/net-snmp-config.h:964:1: warning: "PACKAGE_TARNAME" redefined
    In file included from ../../include/sysinc.h:23,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    ../../include/config.h:491:1: warning: this is the location of the previous definition
    In file included from ../../include/sysinc.h:347,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    /usr/local/include/net-snmp/net-snmp-config.h:967:1: warning: "PACKAGE_VERSION" redefined
    In file included from ../../include/sysinc.h:23,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    ../../include/config.h:494:1: warning: this is the location of the previous definition
    In file included from /usr/local/include/net-snmp/mib_api.h:24,
                     from /usr/local/include/net-snmp/net-snmp-includes.h:81,
                     from ../../include/sysinc.h:348,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    /usr/local/include/net-snmp/library/parse.h:32:1: warning: "MAXLABEL" redefined
    In file included from /usr/include/arpa/nameser.h:578,
                     from ../../include/sysinc.h:101,
                     from ../../include/common.h:31,
                     from zlog.c:32:
    >pkg_info|egrep '(curl|snmp)'
    curl-7.15.4 Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
    net-snmp-5.3.1_3 An extendable SNMP implementation
    Last edited by BorisL; 11-05-2007, 07:23.
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Hi,

    my configure line for FreeBSD 6.1 and the 1.3.6 agent is:

    Code:
    ./configure --enable-agent --enable-server --with-pgsql --with-net-snmp --with-libcurl=/usr/local
    That means I had to specify where libcurl is located.
    Obviously, this common path is not used for checking the location
    although curl-config is found and reports correct values in my case.

    So, this must be a problem with 1.3.7, only !

    All the other issues I noticed, too, and reported those related to Net-SNMP.

    Regards,

    Norbert.
    Last edited by NOB; 11-05-2007, 09:20.

    Comment

    Working...