Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247190 - dev-tcltk/tclpython-4.1 does not respect LDFLAGS and is not working... (fix suggested)
Summary: dev-tcltk/tclpython-4.1 does not respect LDFLAGS and is not working... (fix s...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TCL/TK Project
Depends on:
Blocks: ldflags
  Show dependency tree
Reported: 2008-11-17 13:24 UTC by Peter Volkov (RETIRED)
Modified: 2010-08-09 21:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2008-11-17 13:24:34 UTC
dev-tcltk/tclpython-4.1 does not respect LDFLAGS

 * QA Notice: Files built without respecting LDFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/lib/tclpython/

Also I found rather strange the following:
>>> Compiling source in /var/tmp/portage/dev-tcltk/tclpython-4.1/work/tclpython-4.1 ...
Usage: /usr/bin/python-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]
>>> Source compiled.

This Usage: ... line looks like something is not working, but I'm not sure.
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2008-11-18 18:00:54 UTC
Well, now I'm sure it's not working:

camobap-unstable ~ # tclsh
% package require tclpython
couldn't load file "/usr/lib/tclpython/": /usr/lib/tclpython/ undefined symbol: Py_NoSiteFlag

You need to add --libs after `python-config`. So I've not checked but it looks like:

$(tc-getCC) -shared -o${PV} -fPIC ${CFLAGS} ${LDFGAGS} -Wall -I/usr/include/python${PYVER} tcl{python,thread}.c `python-config --libs` -lpthread -lutil || die

will fix both issues.
Comment 2 Federico Ferri (RETIRED) gentoo-dev 2009-04-16 19:14:23 UTC
In CVS. Thanks Peter ;)