Comments (5)
I have resolved the issue.
change FREETDS in setup.py as below
if osp.exists(FREETDS):
FREETDS = "/usr/local/freetds/"
Original comment by [email protected]
on 8 Jun 2013 at 8:16
from pymssql.
my operation system is suse 10.1 x86_64
so i recompile the freetsd
export CFLAGS='-fPIC'
./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib
--enable-static
Original comment by [email protected]
on 8 Jun 2013 at 8:20
from pymssql.
Original comment by [email protected]
on 7 Aug 2013 at 6:14
- Added labels: FreeTDSbundlingrelated
from pymssql.
Thanks for the issue report!
By any chance, have you tried to reproduce this on a newer Linux distro?
Suse 10.1 is fairly old.
Original comment by [email protected]
on 16 Aug 2013 at 12:00
from pymssql.
I just added a commit that fixes this issue for me on SUSE 10.1:
https://code.google.com/p/pymssql/source/detail?r=196557e92d5c9db1d26621236a94dc
6481babae1
changeset: 355:196557e92d5c
tag: tip
user: Marc Abramowitz <[email protected]>
date: Mon Sep 02 09:31:05 2013 -0700
files: setup.py
description:
issue 71 ('"undefined symbol: __vasprintf_chk" on some CentOS, RedHat because
of precompiled FreeTDS Linux library')
setup.py: Don't try to use bundled FreeTDS if the system's libc doesn't have a
__vasprintf_chk symbol
If the system's libc doesn't have a __vasprintf_chk symbol, then linking with
the bundled FreeTDS library is destined to fail, so in this case we don't try
to link with the bundled FreeTDS. The user is responsible for installing an
appropriate FreeTDS library.
Here's what I get now with this change:
marca@linux-u176:~/dev/hg-repos/pymssql> python setup.py build_ext -i
setup.py: platform.system() => 'Linux'
setup.py: platform.architecture() => ('64bit', 'ELF')
setup.py: platform.linux_distribution() => ('SUSE LINUX ', '10.1', 'X86-64')
setup.py: platform.libc_ver() => ('glibc', '2.3')
setup.py: libc_has_vasprintf_chk = False
setup.py: libc doesn't have __vasprintf_chk - not going to use bundled FreeTDS
setup.py: Not using bundled FreeTDS
setup.py: include_dirs = ['/usr/local/include']
setup.py: library_dirs = ['/usr/local/lib']
running build_ext
cythoning _mssql.pyx to _mssql.c
building '_mssql' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/local/include/python2.7
-c _mssql.c -o build/temp.linux-x86_64-2.7/_mssql.o -DMSDBLIB
_mssql.c:314:22: error: sqlfront.h: No such file or directory
...
At this point, one could install FreeTDS and then pymssql will build.
Can other folks verify?
Original comment by [email protected]
on 2 Sep 2013 at 6:04
- Changed state: Fixed
from pymssql.
Related Issues (20)
- Failure to pass Unicode characters to callproc; failing test: tests.test_sprocs.TestCallProcFancy.testCallProcWithUnicodeStringWithRussianCharacters HOT 7
- When pymssql.connect() - DB-Lib error message 20002, severity 9;Adaptive Server connection failed HOT 1
- Fix test_config.py typos. HOT 1
- Small fix about TDS protocol version in a comment HOT 1
- Fix a small bug in SP tests HOT 3
- Fix SP name handling in threaded test so we can actually run it. HOT 2
- Feature for discussion (with patch): pymssql_shell HOT 2
- A few tests fail if running on a system that has SQL Server available on port 1433 HOT 1
- add function for getting FreeTDS version HOT 1
- datetime conversion to sql is not converting sub-seconds correctly HOT 5
- memory leaks (patches included) HOT 24
- pymssql-2.0.0b1-dev-20130403.tar.gz doesn't compile due to /usr/bin/ld: cannot find -lct HOT 8
- Installer issue HOT 1
- error: unrecognized command line option "-Wno-parentheses-equality" HOT 8
- Support "with" statement (PEP 343) HOT 5
- Can't compile on OS X 10.8.4 HOT 10
- Review pymssql result processing code
- Make Cython not necessary when pymssql.c and _mssql.c are already present HOT 1
- IOError: [Errno 2] No such file or directory: 'ChangeLog_highlights.rst' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymssql.