From owner-freebsd-ports@FreeBSD.ORG Sun Feb 19 10:50:07 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8ADF16A420; Sun, 19 Feb 2006 10:50:07 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19B6F43D46; Sun, 19 Feb 2006 10:50:04 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.4/8.13.4/NinthNine) with ESMTP id k1JAo3o5014411; Sun, 19 Feb 2006 19:50:03 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 19 Feb 2006 19:50:03 +0900 From: Norikatsu Shigemura To: Marcus Alves Grando Message-Id: <20060219195003.d430165f.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.8.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [219.127.74.121]); Sun, 19 Feb 2006 19:50:04 +0900 (JST) Cc: freebsd-ports@FreeBSD.org Subject: Fix sqlite2 and sqlite3 related ports build problem. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 10:50:08 -0000 Hi mnag. I noticed following problem about sqliteX WITH_THREADS. 1. sqlite2 or/and sqlite3 WITH_THREADS are installed. 2. cannot compile or run some ports liked sqliteX. - - - - - - - - - - - cc -O2 -fno-strict-aliasing -pipe -march=pentium-m -std=gnu99 -W -Wall -Wdeclaration-after-statement -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -o .libs/sndfile-regtest sndfile-regtest.o database.o checksum.o -L/usr/local/lib ../src/.libs/libsndfile.so -lFLAC -lsqlite3 -lm -Wl,--rpath -Wl,/usr/local/lib /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' *** Error code 1 - - - - - - - - - - - Feb 17 16:04:21 sakura lmtpunix[85312]: unable to dlopen /usr/local/lib/sasl2/libsql.so: /usr/local/lib/libsqlite.so.2: Undefined symbol "pthread_mutex_unlock" So I make two patches for sqlite2 and sqlite3. How about? Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/sqlite2/Makefile,v retrieving revision 1.37 diff -u -r1.37 Makefile --- Makefile 13 Feb 2006 14:57:51 -0000 1.37 +++ Makefile 19 Feb 2006 10:16:12 -0000 @@ -89,7 +89,7 @@ @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_VERSION:S/.//}\"" \ >> ${WRKSRC}/freebsd.hints .if defined(WITH_THREADS) - @${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 ${PTHREAD_LIBS}\"" \ + @${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 ${PTHREAD_LIBS:C/-pthread/-pthread -lpthread/}\"" \ >> ${WRKSRC}/freebsd.hints .endif Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/sqlite3/Makefile,v retrieving revision 1.16 diff -u -r1.16 Makefile --- Makefile 13 Feb 2006 16:53:11 -0000 1.16 +++ Makefile 19 Feb 2006 10:18:13 -0000 @@ -63,7 +63,7 @@ .endif post-patch: - @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \ + @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS:C/-pthread/-pthread -lpthread/}|g" \ ${WRKSRC}/configure @${REINPLACE_CMD} -e "s|tclsh \$$(TOP)|\$$(TCLSH) \$$(TOP)|g" \ -e "s|./libtool|${LIBTOOL}|g" \