From owner-freebsd-ports@FreeBSD.ORG Mon Oct 8 18:02:40 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07A0A1065672; Mon, 8 Oct 2012 18:02:40 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward3h.mail.yandex.net (forward3h.mail.yandex.net [IPv6:2a02:6b8:0:f05::3]) by mx1.freebsd.org (Postfix) with ESMTP id 75E9C8FC0A; Mon, 8 Oct 2012 18:02:39 +0000 (UTC) Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward3h.mail.yandex.net (Yandex) with ESMTP id 4D6BE1361D78; Mon, 8 Oct 2012 22:02:38 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 1520713400C1; Mon, 8 Oct 2012 22:02:38 +0400 (MSK) Received: from unknown (unknown [178.76.224.133]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2bgKKmK4-2bga5cqm; Mon, 8 Oct 2012 22:02:37 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1349719358; bh=d7r6jKf1gbThom2/n4ZufZL9TH8fwZFWVJW4z1dHz/Q=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=Pan6MPnMqcuoqqXiPEXzf622JipXhhdZBkLZA2no3LX0Pcwm1xRmRJ6XzVa7G//9Q TtzyrSER4Wcfbl/SJpiOHlIcwLWXMSXYN7Pj6gdNEWTZL96Y3ftM0MeMRW2elTkad7 a37MlT7Z18cVXcEqKk/ImpTyTl2ubUWsMgkj7hy4= Message-ID: <5073152F.5060301@yandex.ru> Date: Mon, 08 Oct 2012 22:02:23 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: FreeBSD Ports Mailing List , =?ISO-8859-1?Q?Alonso?= =?ISO-8859-1?Q?_C=E1rdenas_M=E1rquez?= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Difference in databases/firebird25-client built as root and as unprivileged user 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: Mon, 08 Oct 2012 18:02:40 -0000 Hello, there is a native python binding for Firebird database: http://people.freebsd.org/~rm/fdb-0.9.1.tgz It is based on ports/172455 by Jose Jachuf. It builds just fine in tinderbox both with python2 and python3 but fails to build on a live system. The difference is that firebird25-client's (actually -server, because this is a slave port) Makefile has this lines in it: .ifndef PACKAGE_BUILDING @if [ `${ID} -u` -eq 0 ]; then \ ${ECHO_MSG} "==> Please do not build ${PORTNAME} as 'root' because this may cause conflicts with SysV semaphores of running services."; exit 1; fi .endif So, while being built in tinderbox this happens under root user, but with manual building from ports, it requires to build it as unprivileged user. In later case I've got this when trying to build the aforementioned python binding (py-fdb): """ ===> Configuring for py27-fdb-0.9.1 Traceback (most recent call last): File "setup.py", line 7, in from fdb import __version__ File "/usr/local/tinderbox/portstrees/FreeBSD/ports/databases/py-fdb/work/fdb-0.9.1/fdb/__init__.py", line 23, in from fdb.fbcore import * File "/usr/local/tinderbox/portstrees/FreeBSD/ports/databases/py-fdb/work/fdb-0.9.1/fdb/fbcore.py", line 26, in from . import ibase File "/usr/local/tinderbox/portstrees/FreeBSD/ports/databases/py-fdb/work/fdb-0.9.1/fdb/ibase.py", line 41, in fb_library = CDLL(fb_library_name) File "/usr/local/lib/python2.7/ctypes/__init__.py", line 365, in __init__ self._handle = _dlopen(self._name, mode) OSError: /usr/local/lib/libfbclient.so.2: Undefined symbol "_ZTISt9bad_alloc" *** [do-configure] Error code 1 """ If I rebuild firebird25-client with those three lines commented out (with root privs), then this py-fdb port builds just fine. The question is - what the difference in privileged/unprivileged build may be, and what's proper way to fix this? Thanks. -- Regards, Ruslan Tinderboxing kills... the drives.