From nobody@FreeBSD.org  Sun Sep 24 15:03:33 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5DF1616A403
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Sep 2006 15:03:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 124C643D6B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Sep 2006 15:03:30 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8OF3POa056070
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Sep 2006 15:03:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k8OF3PdR056069;
	Sun, 24 Sep 2006 15:03:25 GMT
	(envelope-from nobody)
Message-Id: <200609241503.k8OF3PdR056069@www.freebsd.org>
Date: Sun, 24 Sep 2006 15:03:25 GMT
From: Takashi Sato <serai@lans-tv.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: databases/pecl-PDO_SQLITE build failure when databases/sqlite3 WITH_THREADS is installed
X-Send-Pr-Version: www-2.3

>Number:         103566
>Category:       ports
>Synopsis:       databases/pecl-PDO_SQLITE build failure when databases/sqlite3 WITH_THREADS is installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 24 15:10:19 GMT 2006
>Closed-Date:    Fri Oct 06 19:31:18 GMT 2006
>Last-Modified:  Fri Oct  6 19:40:16 GMT 2006
>Originator:     Takashi Sato
>Release:        FreeBSD 6.1-RELEASE-p7
>Organization:
>Environment:
FreeBSD hoge.local 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Fri Sep 22 08:13:14 JST 2006     root@server2.local:/usr/src/sys/i386/compile/HOGE  i386

>Description:
If databases/sqlite3 have been installed with option WITH_THREADS, databases/pecl-PDO_SQLITE installation fails on "make configure".

In /usr/ports/databases/pecl-PDO_SQLITE/work/PDO_SQLITE-1.0.1/config.log :

configure:3393: checking for sqlite3_open in -lsqlite3
configure:3423: cc -o conftest -O2 -fno-strict-aliasing -pipe -march=athlon  -R/usr/local/lib -L/usr/local/lib  -lm conftest.c -lsqlite3   >&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'
collect2: ld returned 1 exit status


databases/sqlite3 THREADS option are broken?
>How-To-Repeat:
Uninstall sqlite3 if you have already installed sqlite3.

# cd /usr/ports/databases/sqlite3 
# make config
Turn "THREADS" on.
# make install
#cd /usr/ports/databases/pecl-PDO_SQLITE
# make
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Sep 24 15:10:33 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

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

From: Alexander Zhuravlev <zaa@zaa.pp.ru>
To: bug-followup@freebsd.org
Cc: edwin@FreeBSD.org
Subject: Re: ports/103566: databases/pecl-PDO_SQLITE build failure when databases/sqlite3 WITH_THREADS is installed
Date: Sat, 30 Sep 2006 20:41:43 +0400

 Please try to apply the following patch and let me know if this resolved
 the issue or not.
 
 diff -urbBNp pecl-PDO_SQLITE/Makefile pecl-PDO_SQLITE.new/Makefile
 --- pecl-PDO_SQLITE/Makefile	Fri May 19 11:55:01 2006
 +++ pecl-PDO_SQLITE.new/Makefile	Mon Sep 25 13:02:20 2006
 @@ -7,6 +7,7 @@
  
  PORTNAME=	PDO_SQLITE
  DISTVERSION=	1.0.1
 +PORTREVISION=	1
  CATEGORIES=	databases www
  MASTER_SITES=	http://pecl.php.net/get/
  PKGNAMEPREFIX=	pecl-
 @@ -18,13 +19,12 @@ COMMENT=	SQLite v3 Interface driver for 
  
  BUILD_DEPENDS=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo.so:${PORTSDIR}/databases/pecl-PDO
  RUN_DEPENDS=	${BUILD_DEPENDS}
 -LIB_DEPENDS=	sqlite3.8:${PORTSDIR}/databases/sqlite3
  
  USE_PHP=	yes
  USE_PHPEXT=	yes
  DEFAULT_PHP_VER=5
  PHP_MODNAME=	pdo_sqlite
  
 -CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE}
 +CONFIGURE_ARGS+=--with-pdo-sqlite
  
  .include <bsd.port.mk>
 
 
 -- 
 Alexander Zhuravlev

From: Takashi Sato <serai@lans-tv.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/103566: databases/pecl-PDO_SQLITE build failure when
 databases/sqlite3 WITH_THREADS is installed
Date: Tue, 3 Oct 2006 00:48:59 +0900

 I install 6.1-RELEASE newly again, and fetch ports by portsnap.
 Then I applied the patch, and on databases/pecl-PDO_SQLITE "make install".
 Installing was finished normally. Thanks.
 
 
 phpinfo :
 -----------------------------------------
 PDO
 
 PDO support => enabled
 PDO drivers => sqlite
 
 pdo_sqlite
 
 PDO Driver for SQLite 3.x => enabled
 PECL Module version => (bundled) 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6 2006/01/01 12:50:12 sniper Exp $
 SQLite Library => 3.2.8
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Fri Oct 6 19:31:09 UTC 2006 
State-Changed-Why:  
Patch from maintainer committed. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/103566: commit references a PR
Date: Fri,  6 Oct 2006 19:31:07 +0000 (UTC)

 pav         2006-10-06 19:31:01 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/pecl-PDO_SQLITE Makefile 
   Log:
   - Switch to bundled copy of sqlite3
   
   PR:             ports/103566
   Submitted by:   Alexander Zhuravlev <zaa@zaa.pp.ru> (maintainer)
   
   Revision  Changes    Path
   1.5       +2 -2      ports/databases/pecl-PDO_SQLITE/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:
