From owner-freebsd-ports@FreeBSD.ORG Thu May 30 06:20:38 2013 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1DC4E61F; Thu, 30 May 2013 06:20:38 +0000 (UTC) (envelope-from daemon@dx.burplex.com) Received: from dx.burplex.com (dx.burplex.com [50.197.134.185]) by mx1.freebsd.org (Postfix) with ESMTP id 0DB1B186; Thu, 30 May 2013 06:20:37 +0000 (UTC) Received: by dx.burplex.com (Postfix, from userid 1) id 4B7DE36F4E4C; Wed, 29 May 2013 23:20:37 -0700 (PDT) To: freebsd-ports@FreeBSD.org Subject: Re: issues with update databases/py-sqlite3 From: Waitman Gobble X-UUID-HOR: 91ed22f2-c8d4-11e2-821a-902b34a86bc3 Message-Id: <20130530062037.4B7DE36F4E4C@dx.burplex.com> Date: Wed, 29 May 2013 23:20:37 -0700 (PDT) Cc: freebsd-python@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 06:20:38 -0000 On Wed, 29 May 2013 19:56:39 -0700 (PDT), Waitman Gobble wrote: > > >Hi, > >on a current, updated machine .. > >When I try to install databases/py-sqlite3 it bombs out. > >using clang. (similar/same results with gcc/gcc46) > >> make >===> py27-sqlite3-2.7.5_3 depends on file: /usr/local/bin/python2.7 - >found >===> py27-sqlite3-2.7.5_3 depends on shared library: sqlite3 - found >===> Configuring for py27-sqlite3-2.7.5_3 >===> FreeBSD 10 autotools fix applied to >/usr/ports/databases/py-sqlite3/work/Python-2.7.5/Modules/_ctypes/libffi/aclocal.m4 >===> FreeBSD 10 autotools fix applied to >/usr/ports/databases/py-sqlite3/work/Python-2.7.5/Modules/_ctypes/libffi/acinclude.m4 >===> FreeBSD 10 autotools fix applied to >/usr/ports/databases/py-sqlite3/work/Python-2.7.5/Modules/_ctypes/libffi/m4/libtool.m4 >===> FreeBSD 10 autotools fix applied to >/usr/ports/databases/py-sqlite3/work/Python-2.7.5/Modules/_ctypes/libffi/configure >===> FreeBSD 10 autotools fix applied to >/usr/ports/databases/py-sqlite3/work/Python-2.7.5/Modules/zlib/configure >===> FreeBSD 10 autotools fix applied to >/usr/ports/databases/py-sqlite3/work/Python-2.7.5/configure >running config >*** Signal 10 > >Stop. >make: stopped in /usr/ports/databases/py-sqlite3 > >> dmesg >pid 88350 (python2.7), uid 0: exited on signal 10 (core dumped) > > >I'm running 10.0-CURRENT r251111: Wed May 29 16:44:31 PDT 2013 >ports tree updated to latest, #319402, updated using portmaster. pkg version >shows everything up to date, pkg_libchk shows no issues. > > Actually I think this is probably a python mailing list issue, i'll have to see if i'm subscribed. but anyway, sry for cross post. Not sure what's up with Python2.7.5 (?) I've uninstalled and reinstalled everything py- if i do: # cd /usr/ports/databases/py-sqlite3 # make {signal 10 exit} # cd work/Python-2.7.5/Modules # python setup.py build ... Bus error (core dumped) I find _sqlite3.so is built in ./build/lib.freebsd-10.0-CURRENT-amd64-2.7/_sqlite3.so if i copy that object to /usr/local/lib/python2.7/lib-dynload/ and run: import sqlite3 connection=sqlite3.connect('/tmp/test.it') cursor=connection.cursor() cursor.execute('CREATE TABLE boo (idx int)') cursor.execute('INSERT INTO boo VALUES (1)') cursor.execute('SELECT * FROM boo') connection.commit() res=cursor.fetchall() for x in res: print x[0] # python test.py 1 1 # sqlite3 /tmp/test.it sqlite> SELECT * FROM boo; 1 So the software actually works.. so why is the port not working? AS a test, I put print 'boo' at the end of setup.py, and i get the Bus Error (core dumped) after it prints boo. IF i remove the setup() from the end, I don't get a Bus Error. (but also no setup :-) Thanks for any help/pointers. -- Waitman Gobble San Jose California USA +1.5108307875