clueboy / pymssql_issues

0 stars 0 forks source link

undefined symbol: clock_gettime #91

Closed clueboy closed 11 years ago

clueboy commented 11 years ago

From tozheghin on June 21, 2012 00:45:05

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/ in () ----> 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: http://code.google.com/p/pymssql/issues/detail?id=91

clueboy commented 11 years ago

From tozheghin on June 21, 2012 00:53:11

-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

clueboy commented 11 years ago

From cramm0 on August 03, 2012 16:16:10

Could you please test this change https://github.com/ramiro/pymssql/commit/69c6df1a0862aaa985847da3797285c02ce2d75f and report back if it fixes the issue for you?

clueboy commented 11 years ago

From denisenkom on November 08, 2012 18:08:31

This change fixed this problem for me, thanks!

clueboy commented 11 years ago

From msabramo on December 01, 2012 21:45:04

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

clueboy commented 11 years ago

From msabramo on January 06, 2013 22:12:13

This is a dup of issue 105 which was recently fixed.

Status: Duplicate
Mergedinto: 105