clueboy / pymssql_issues

0 stars 0 forks source link

pymssql-2.0.0b1-dev-20130403.tar.gz doesn't compile due to /usr/bin/ld: cannot find -lct #120

Closed clueboy closed 11 years ago

clueboy commented 11 years ago

From jan.geboers on April 22, 2013 06:27:04

pymssql-2.0.0b1-dev-20130108.tar.gz used to compile just fine using pip install, but pymssql-2.0.0b1-dev-20130403.tar.gz fails with the following error:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/jan/.virtualenvs/palantir/build/pymssql/freetds/nix_64/include -I/usr/include/python2.7 -c _mssql.c -o build/temp.linux-x86_64-2.7/_mssql.o -Wno-parentheses-equality -DMSDBLIB

gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/_mssql.o -L/home/jan/.virtualenvs/palantir/build/pymssql/freetds/nix_64/lib -lsybdb -lct -lrt -o build/lib.linux-x86_64-2.7/_mssql.so

/usr/bin/ld: cannot find -lct

collect2: error: ld returned 1 exit status

error: command 'gcc' failed with exit status 1

What extra dependency was introduced? What do I need to install (on a debian system) to get pymssql to compile again?

Greetings,

Jan

Original issue: http://code.google.com/p/pymssql/issues/detail?id=120

clueboy commented 11 years ago

From jiri.vyslouzil@nordicgaming.com on April 23, 2013 02:04:09

I have the same issue

clueboy commented 11 years ago

From gareth.oakley on April 26, 2013 10:08:30

I experienced this issue on Ubuntu 12.04 - installing freetds-dev / freetds-bin seemed to get it installing correctly for me

clueboy commented 11 years ago

From jan.geboers on May 02, 2013 02:40:46

installing freetds-bin and freetds-dev solves the issue indeed. would be a good idea to add that to the documents and requirements list somewhere...

clueboy commented 11 years ago

From cramm0 on May 15, 2013 08:14:38

Does this report mean pymssql-2.0.0b1-dev-20130108.tar.gz built successfully without libct development headers/library being available? Did you development environment change between that moment and the moment you tried to build pymssql-2.0.0b1-dev-20130403.tar.gz?

clueboy commented 11 years ago

From cramm0 on May 15, 2013 08:24:52

I've attached a patch that rewrites README to have a more consistent structure (using reST syntax) and that addas notes about the need for Python and FreeTDS develoment files (OS packages containing headers/libs).

Attachment: issue120.patch

clueboy commented 11 years ago

From andreacometa.it on June 01, 2013 00:26:03

on Debian Wheezy

$ apt-get install freetds-dev

solve the problem

clueboy commented 11 years ago

From msabramo on August 06, 2013 14:32:12

The following commit removes the dependency on libct so you shouldn't have to install FreeTDS to get it. https://code.google.com/p/pymssql/source/detail?r=325f466ae1b5890d4c7bd94b411eb14cee9ae6f8

Status: Fixed
Owner: msabramo

clueboy commented 11 years ago

From msabramo on August 06, 2013 14:42:36

I also just applied Ramiro's patch to improve the README. https://code.google.com/p/pymssql/source/detail?r=e99fb4f037bec99f39041da59d28dca4cd564663 Thanks, Ramiro!