misc/115433: Zabbix 1.4.1_2, 1 port doesn't build with threads-enabled SQLite3

Andrey V. Semyonov blonde at systemplanet.ru
Sun Aug 12 01:00:04 PDT 2007


>Number:         115433
>Category:       misc
>Synopsis:       Zabbix 1.4.1_2,1 port doesn't build with threads-enabled SQLite3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 12 08:00:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Andrey V. Semyonov
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD freebsd.systemplanet.ru 6.2-STABLE FreeBSD 6.2-STABLE #1: Mon May 14 20:51:25 MSD 2007     wilfre at valhalla.unity-net.ru:/usr/obj/usr/src/sys/VALHALLA62  i386

>Description:
If I try to build zabbix (port rev. 1.4.1_2,1) with SQLite3 option and SQLite3 port build with threads support, then zabbix don't even configure:

------- BEGIN --------

configure:9652: checking for main in -lcurl
configure:9681: cc -o conftest -O2 -fno-strict-aliasing -pipe   -I/usr/local/inc
lude   -I/usr/local/include     -L/usr/local/lib -lsqlite3   -L/usr/local/lib -l
iksemel  -L/usr/local/lib conftest.c -lcurl  -lkvm -lm       >&5
/usr/local/lib/libsqlite3.so: undefined reference to `pthread_create'
/usr/local/lib/libsqlite3.so: undefined reference to `pthread_equal'
/usr/local/lib/libsqlite3.so: undefined reference to `pthread_join'
configure:9687: $? = 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.4.1"
| #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_STATVFS_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_VMMETER_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_SYSCTL_H 1
| #define HAVE_VM_VM_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SYSCALL_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_RESOLV_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_SYS_DKSTAT_H 1
| #define HAVE_SYS_DISK_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_INTTYPES_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_LIBM 1
| #define HAVE_LIBKVM 1
| #define HAVE_SEMUN 1
| #define HAVE_PROC 1
| #define HAVE_PROC_STAT 1
| #define HAVE_PROC_1_STATUS 1
| #define HAVE_PROC_LOADAVG 1
| #define HAVE_PROC_NET_DEV 1
| #define HAVE_SYS_RESOURCE_SETPRIORITY 1
| #define HAVE___VA_COPY 1
| #define HAVE_SYS_VMMETER_VMTOTAL 1
| #define HAVE_FUNCTION_SYSCTL_KERN_BOOTTIME 1
| #define HAVE_FUNCTION_SYSCTL_KERN_MAXFILES 1
| #define HAVE_FUNCTION_SYSCTL_KERN_MAXPROC 1
| #define HAVE_FUNCTION_SETEUID 1
| #define HAVE_FUNCTION_SETPROCTITLE 1
| #define RETSIGTYPE void
| #define HAVE_GETLOADAVG 1
| #define HAVE_SOCKET 1
| #define HAVE_STRTOD 1
| #define HAVE_SNPRINTF 1
| #define HAVE_VASPRINTF 1
| #define HAVE_ASPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_HSTRERROR 1
| #define HAVE_ATOLL 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_SQLITE3 1
| #define HAVE_IKSEMEL 1
| #define HAVE_JABBER 1
| /* end confdefs.h.  */
|
|
| int
| main ()
| {
| return main ();
|   ;
|   return 0;
| }
configure:9721: result: no
configure:9729: error: Not found libcurl library

--------- END --------

I tried to build the same sourcecode as shown in error log with additional `-pthread` option to cc and then it did clearly.
>How-To-Repeat:
Install SQLite3 (databases/sqlite3) with at least THREADS option enabled, then try to install zabbix.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list