From nobody@FreeBSD.org  Sun Aug 12 07:50:25 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CBA2516A417
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Aug 2007 07:50:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BE98213C459
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Aug 2007 07:50:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7C7oNS5052957
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Aug 2007 07:50:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7C7oNoQ052956;
	Sun, 12 Aug 2007 07:50:23 GMT
	(envelope-from nobody)
Message-Id: <200708120750.l7C7oNoQ052956@www.freebsd.org>
Date: Sun, 12 Aug 2007 07:50:23 GMT
From: "Andrey V. Semyonov" <blonde@systemplanet.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Zabbix 1.4.1_2,1 port doesn't build with threads-enabled SQLite3
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115433
>Category:       ports
>Synopsis:       net-mgmt/zabbix: zabbix 1.4.1_2,1 port doesn't build with threads-enabled SQLite3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 12 08:00:03 GMT 2007
>Closed-Date:    Wed Aug 15 16:23:08 GMT 2007
>Last-Modified:  Wed Aug 15 16:30:02 GMT 2007
>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@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:

From: Beauty full of blonde <blonde@systemplanet.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: misc/115433: Zabbix 1.4.1_2,1 port doesn't build with threads-enabled
 SQLite3
Date: Sun, 12 Aug 2007 12:38:38 +0400

 Please, excuse me, PR should follow to ports@. I just passed by that 
 selectbox.
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Aug 12 12:13:09 UTC 2007 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115433 
State-Changed-From-To: open->closed 
State-Changed-By: sat 
State-Changed-When: Wed Aug 15 16:22:32 UTC 2007 
State-Changed-Why:  
I have just committed a fix. Please tell me if the problem 
persists for you. Thanks for your report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115433 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/115433: commit references a PR
Date: Wed, 15 Aug 2007 16:22:27 +0000 (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"
 
>Unformatted:
