I'm supposed to test out Zabbix to see if we'll want to use it as a monitoring solution. I'm running into all sorts of problems, though.
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.19.6
checking for libcurl >= version 7.13.1... yes
checking for main in -lcurl... no
configure: error: Not found libcurl library
Is the latest one. /usr/local/bin/curl-config is there. I can only compile if I use --with-libcurl=no, but even if I do that, I can't get to ~zabbix on the server. I did build it without libcurl, but can't access it, at all, even after starting the server.
Is it supposed to be this difficult under solaris?
Edit: MOre info:
./configure --enable-server --with-net-snmp --with-pgsql --with-libcurl=/usr/local/bin/curl-config CFLAGS="-I/usr/local/include"
echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/ucb:/home/strawser/scripts:/opt/coolstack/mysql_32bit/bin:/opt/coolstack/mysql_32bit/bin:/usr/ccs/bin:/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/opt/bin:/usr/local/bin:/usr/sfw/bin
From config.log:
configure:9905: checking for curl-config
configure:9936: result: /usr/local/bin/curl-config
configure:9947: checking for the version of libcurl
configure:9954: result: 7.19.6
configure:9961: checking for libcurl >= version 7.13.1
configure:9974: result: yes
configure:10085: checking for main in -lcurl
configure:10114: gcc -o conftest -I/usr/local/include -I/usr/include/pgsql -I/usr/local/include -L/usr/local/lib -lcurl -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -lidn -lssh2 -lssl -lcrypto -lsocket -lnsl -lz conftest.c -lcurl -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
ld: fatal: library -lidn: not found
ld: fatal: library -lssh2: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:10120: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "zabbix"
| #define VERSION "1.6.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_TIME_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_MATH_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_SYSINFO_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_LOADAVG_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_SWAP_H 1
| #define HAVE_SYS_VMMETER_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_KSTAT_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_SYS_PROCFS_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_PROC_H 1
| #define HAVE_SYS_VAR_H 1
| #define HAVE_RESOLV_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_NLIST_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_KVM_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_REGEX_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_SEM_H 1
| #define HAVE_SYS_IPC_H 1
| #define HAVE_SYS_SHM_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_LBER_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_USER_H 1
| #define HAVE_LIBM 1
| #define HAVE_LIBKVM 1
| #define HAVE_RES_QUERY 1
| #define HAVE_PROC 1
| #define HAVE_PROC_0_PSINFO 1
| #define HAVE_SYS_RESOURCE_SETPRIORITY 1
| #define HAVE_UNISTD_SYSCONF 1
| #define HAVE___VA_COPY 1
| #define HAVE_SYS_SWAP_SWAPTABLE 1
| #define HAVE_FUNCTION_INITGROUPS 1
| #define HAVE_FUNCTION_SETEUID 1
| #define HAVE___VA_ARGS__ 1
| #define RETSIGTYPE void
| #define HAVE_GETLOADAVG 1
| #define HAVE_SOCKET 1
| #define HAVE_STRTOD 1
| #define HAVE_SNPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_HSTRERROR 1
| #define HAVE_ATOLL 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_POSTGRESQL 1
| #define HAVE_FUNCTION_PQSERVERVERSION 1
| /* end confdefs.h. */
|
|
| int
| main ()
| {
| return main ();
| ;
| return 0;
| }
configure:10138: result: no
configure:10146: error: Not found libcurl library
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.19.6
checking for libcurl >= version 7.13.1... yes
checking for main in -lcurl... no
configure: error: Not found libcurl library
Is the latest one. /usr/local/bin/curl-config is there. I can only compile if I use --with-libcurl=no, but even if I do that, I can't get to ~zabbix on the server. I did build it without libcurl, but can't access it, at all, even after starting the server.
Is it supposed to be this difficult under solaris?
Edit: MOre info:
./configure --enable-server --with-net-snmp --with-pgsql --with-libcurl=/usr/local/bin/curl-config CFLAGS="-I/usr/local/include"
echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/ucb:/home/strawser/scripts:/opt/coolstack/mysql_32bit/bin:/opt/coolstack/mysql_32bit/bin:/usr/ccs/bin:/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/opt/bin:/usr/local/bin:/usr/sfw/bin
From config.log:
configure:9905: checking for curl-config
configure:9936: result: /usr/local/bin/curl-config
configure:9947: checking for the version of libcurl
configure:9954: result: 7.19.6
configure:9961: checking for libcurl >= version 7.13.1
configure:9974: result: yes
configure:10085: checking for main in -lcurl
configure:10114: gcc -o conftest -I/usr/local/include -I/usr/include/pgsql -I/usr/local/include -L/usr/local/lib -lcurl -L/usr/local/lib -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -lidn -lssh2 -lssl -lcrypto -lsocket -lnsl -lz conftest.c -lcurl -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
ld: fatal: library -lidn: not found
ld: fatal: library -lssh2: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:10120: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "zabbix"
| #define VERSION "1.6.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_TIME_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_MATH_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_SYSINFO_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_LOADAVG_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_SWAP_H 1
| #define HAVE_SYS_VMMETER_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_KSTAT_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_SYS_PROCFS_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_PROC_H 1
| #define HAVE_SYS_VAR_H 1
| #define HAVE_RESOLV_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_NLIST_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_KVM_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_REGEX_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_SEM_H 1
| #define HAVE_SYS_IPC_H 1
| #define HAVE_SYS_SHM_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_LBER_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_USER_H 1
| #define HAVE_LIBM 1
| #define HAVE_LIBKVM 1
| #define HAVE_RES_QUERY 1
| #define HAVE_PROC 1
| #define HAVE_PROC_0_PSINFO 1
| #define HAVE_SYS_RESOURCE_SETPRIORITY 1
| #define HAVE_UNISTD_SYSCONF 1
| #define HAVE___VA_COPY 1
| #define HAVE_SYS_SWAP_SWAPTABLE 1
| #define HAVE_FUNCTION_INITGROUPS 1
| #define HAVE_FUNCTION_SETEUID 1
| #define HAVE___VA_ARGS__ 1
| #define RETSIGTYPE void
| #define HAVE_GETLOADAVG 1
| #define HAVE_SOCKET 1
| #define HAVE_STRTOD 1
| #define HAVE_SNPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_HSTRERROR 1
| #define HAVE_ATOLL 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_POSTGRESQL 1
| #define HAVE_FUNCTION_PQSERVERVERSION 1
| /* end confdefs.h. */
|
|
| int
| main ()
| {
| return main ();
| ;
| return 0;
| }
configure:10138: result: no
configure:10146: error: Not found libcurl library
Comment