djhenderson / pymssql

Automatically exported from code.google.com/p/pymssql
GNU Lesser General Public License v2.1
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 GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by jan.gebo...@gmail.com on 22 Apr 2013 at 1:27

GoogleCodeExporter commented 9 years ago
I have the same issue

Original comment by jiri.vys...@nordicgaming.com on 23 Apr 2013 at 9:04

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

Original comment by gareth.o...@gmail.com on 26 Apr 2013 at 5:08

GoogleCodeExporter commented 9 years ago
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...

Original comment by jan.gebo...@gmail.com on 2 May 2013 at 9:40

GoogleCodeExporter commented 9 years ago
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?

Original comment by cra...@gmail.com on 15 May 2013 at 3:14

GoogleCodeExporter commented 9 years ago
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).

Original comment by cra...@gmail.com on 15 May 2013 at 3:24

Attachments:

GoogleCodeExporter commented 9 years ago
on Debian Wheezy

$ apt-get install freetds-dev

solve the problem

Original comment by andreaco...@gmail.com on 1 Jun 2013 at 7:26

GoogleCodeExporter commented 9 years ago
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=325f466ae1b5890d4c7bd94b411eb1
4cee9ae6f8

Original comment by msabr...@gmail.com on 6 Aug 2013 at 9:32

GoogleCodeExporter commented 9 years ago
I also just applied Ramiro's patch to improve the README.

https://code.google.com/p/pymssql/source/detail?r=e99fb4f037bec99f39041da59d28dc
a4cd564663

Thanks, Ramiro!

Original comment by msabr...@gmail.com on 6 Aug 2013 at 9:42