From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 12 15:30:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A644519D for ; Sat, 12 Oct 2013 15:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 864AB227E for ; Sat, 12 Oct 2013 15:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9CFU0W4049115 for ; Sat, 12 Oct 2013 15:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9CFU0YV049113; Sat, 12 Oct 2013 15:30:00 GMT (envelope-from gnats) Resent-Date: Sat, 12 Oct 2013 15:30:00 GMT Resent-Message-Id: <201310121530.r9CFU0YV049113@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Birger Schacht Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BDAD8195 for ; Sat, 12 Oct 2013 15:29:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 91DE52278 for ; Sat, 12 Oct 2013 15:29:05 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9CFT49v073296 for ; Sat, 12 Oct 2013 15:29:04 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9CFT4e9073292; Sat, 12 Oct 2013 15:29:04 GMT (envelope-from nobody) Message-Id: <201310121529.r9CFT4e9073292@oldred.freebsd.org> Date: Sat, 12 Oct 2013 15:29:04 GMT From: Birger Schacht To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182927: LDFLAGS missing in databases/php53-sqlite3 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2013 15:30:00 -0000 >Number: 182927 >Category: ports >Synopsis: LDFLAGS missing in databases/php53-sqlite3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 12 15:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Birger Schacht >Release: FreeBSD 9.2-RELEASE >Organization: TU Wien >Environment: FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The configure script of php53-sqlite3 is figuring out options by compiling c snipplets and testing for options of the sqlite library. For example: (from work/php-5.3.27/ext/sqlite3/config.log:) configure:4663: checking for sqlite3_load_extension in -lsqlite3 configure:4688: cc -o conftest -O2 -pipe -fno-strict-aliasing conftest.c -lsqlite3 >&5 /usr/bin/ld: cannot find -lsqlite3 configure:4688: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char sqlite3_load_extension (); | int | main () | { | return sqlite3_load_extension (); | ; | return 0; | } configure:4697: result: no The result of these tests is always negative, because the sqlite3 shared library isn't found (which is installed) >How-To-Repeat: compile php53-sqlite3 >Fix: add LDFLAGS+= -L${LOCALBASE}/lib to the lang/php53/Makefile.ext in the sqlite3 block: .if ${PHP_MODNAME} == "sqlite3" USE_SQLITE= yes CONFIGURE_ARGS+=--with-sqlite3=${LOCALBASE} LDFLAGS+= -L${LOCALBASE}/lib .endif so the c snipplets can be compiled and deliver the correct options: configure:4663: checking for sqlite3_load_extension in -lsqlite3 configure:4688: cc -o conftest -O2 -pipe -fno-strict-aliasing -L/usr/local/lib conftest.c -lsqlite3 >&5 configure:4688: $? = 0 configure:4697: result: yes >Release-Note: >Audit-Trail: >Unformatted: