djhenderson / pymssql

Automatically exported from code.google.com/p/pymssql
GNU Lesser General Public License v2.1
0 stars 0 forks source link

undefined symbol: clock_gettime #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've build latest pymssql under kubuntu. Setup works fine, but i'm getting this 
error when try to import _mssql.so:

In [1]: import _mssql
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
~/pymssql/build/lib.linux-i686-2.7/<ipython-input-1-a8547fa553ff> in <module>()
----> 1 import _mssql

ImportError: ./_mssql.so: undefined symbol: clock_gettime

$ uname -a
Linux user 3.2.0-25-generic-pae #40-Ubuntu SMP Wed May 23 22:11:24 UTC 2012 
i686 i686 i386 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

Original issue reported on code.google.com by tozheg...@gmail.com on 21 Jun 2012 at 7:45

GoogleCodeExporter commented 9 years ago
-lrt should be added to this commands
~/pymssql$ gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
-Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7/_mssql.o 
-L/home/timur/pymssql/freetds/nix_32/lib -lsybdb -o 
build/lib.linux-i686-2.7/_mssql.so
~/pymssql$ gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
-Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7/pymssql.o 
-L/home/timur/pymssql/freetds/nix_32/lib -lsybdb -o 
build/lib.linux-i686-2.7/pymssql.so

Original comment by tozheg...@gmail.com on 21 Jun 2012 at 7:53

GoogleCodeExporter commented 9 years ago
Could you please test this change 
https://github.com/ramiro/pymssql/commit/69c6df1a0862aaa985847da3797285c02ce2d75
f and report back if it fixes the issue for you?

Original comment by cra...@gmail.com on 3 Aug 2012 at 11:16

GoogleCodeExporter commented 9 years ago
This change fixed this problem for me, thanks!

Original comment by denisen...@gmail.com on 9 Nov 2012 at 2:08

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/pymssql/issues/detail?id=105 is a dup of this issue.

Original comment by msabr...@gmail.com on 2 Dec 2012 at 5:45

GoogleCodeExporter commented 9 years ago
This is a dup of issue 105 which was recently fixed. 

Original comment by msabr...@gmail.com on 7 Jan 2013 at 6:12