Skip to content

Commit b63ea44

Browse files
author
clach04
committed
Allow builds with Ingres 10 when Ingres bug 119773 has undocumented librt dependency
This basically restores a modified version of the fix for Trac Bug #224, Add librt to allow runtime link requirements to be satisfied. Hopefully the Ingres bug will be corrected (again) soon, this workaround in the Python driver should band-aid over the problem until that time. This change is Linux specific. Also updated the readme to address Trac Bug #577 by documenting python devel requirement. Also always use the force flag (for new users who need setup.py distutils help, force is a good idea in case they re-run). git-svn-id: http://code.ingres.com/ingres/drivers/python/main@2776 45b5d43f-8932-4c86-835a-3654e5842839
1 parent 9a4e08a commit b63ea44

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,10 @@ Mac OS X, Linux and Unix
316316

317317
cd ingresdbi-2.0.1
318318

319-
3. Initiate the build process. ::
319+
3. Initiate the build process.
320+
NOTE this requires the python devel packages to be installed ::
320321

321-
python setup.py build
322+
python setup.py build --force
322323

323324

324325

@@ -336,7 +337,7 @@ Windows
336337

337338
- Initiate the build process. ::
338339

339-
python setup.py build
340+
python setup.py build --force
340341

341342

342343
**Note:** You can skip this and jump straight to the install process as this

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@
196196
# Default build flags, libraries, etc.
197197
defmacros=[("DBIVERSION", dbiversion_str)]
198198
libraries=["frame.1", "iiodbc.1", "m", "c"]
199+
if platform.startswith('linux'):
200+
# workaround libq bug where rt is not linked to libq
201+
# odbc needs libq, ingresdbi needs odbc
202+
libraries += ['rt']
199203

200204
# wintel build flags, hopefully the same for amd64 winxp
201205
if platform=="win32":

0 commit comments

Comments
 (0)