issues with update databases/py-sqlite3

Waitman Gobble uzimac at da3m0n8t3r.com
Thu May 30 06:20:38 UTC 2013


On Wed, 29 May 2013 19:56:39 -0700 (PDT), Waitman Gobble
<uzimac at da3m0n8t3r.com> 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




More information about the freebsd-python mailing list