Bug 115433

Summary: net-mgmt/zabbix: zabbix 1.4.1_2,1 port doesn't build with threads-enabled SQLite3
Product: Ports & Packages Reporter: Andrey V. Semyonov <blonde>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Andrey V. Semyonov 2007-08-12 09:00:03 UTC
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.
Comment 1 Andrey V. Semyonov 2007-08-12 09:38:38 UTC
Please, excuse me, PR should follow to ports@. I just passed by that 
selectbox.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2007-08-12 13:13:09 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-08-15 17:22:27 UTC
sat         2007-08-15 16:22:19 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/zabbix      Makefile 
  Log:
  - Hack around failing build when linking against threaded sqlite
  
  PR:             ports/115433
  Submitted by:   Andrey V. Semyonov <blonde@systemplanet.ru>
  
  Revision  Changes    Path
  1.43      +5 -0      ports/net-mgmt/zabbix/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 sat freebsd_committer freebsd_triage 2007-08-15 17:22:32 UTC
State Changed
From-To: open->closed

I have just committed a fix. Please tell me if the problem 
persists for you. Thanks for your report!