From owner-freebsd-ports@FreeBSD.ORG Fri Apr 6 06:13:16 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 463611065672 for ; Fri, 6 Apr 2012 06:13:16 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id EDBF48FC08 for ; Fri, 6 Apr 2012 06:13:15 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1SG2Pz-000Hky-UY; Fri, 06 Apr 2012 09:13:08 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: freebsd-ports@freebsd.org In-reply-to: Your message of Tue, 03 Apr 2012 09:31:29 +0200. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 06 Apr 2012 09:13:07 +0300 From: Daniel Braniss Message-ID: Cc: olli hauer Subject: Re: php5 and pgsql/sqlite 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: Fri, 06 Apr 2012 06:13:16 -0000 problem solved, compiling php with: LINKTHR=on "Link thread lib (for threaded extensions)" fixed it. > On 2012-04-02 17:22, Daniel Braniss wrote: > > hi, > > whenever extensions=pgsql.so or/and extensions=slqlite3.so is added > > php exits with error (Exit 1) > > > > without those modules: > > % php -v > > PHP 5.3.10 with Suhosin-Patch (cli) (built: Apr 2 2012 14:28:23) > > Copyright (c) 1997-2012 The PHP Group > > Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies > > > [...] > > > > [Zend Modules] > > > > > > but when adding, for example extension=pgsql.so to > > /usr/local/etc/php/extensions.ini > > > > php exits with error > > > > BTW, I noticed the problem after I compiled php5-extensions. > > so, what am I doing wrong? > > > > Hi Daniel, > > I suspect it is the ordering in /usr/local/etc/php/extensions.ini. > Maybe the following script can help to solve your issue. > http://people.freebsd.org/~ohauer/scripts/fixphpextorder.sh > > There are not all extensions in the script but it is a starting point. > > -- > Regards, > olli