Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473454 - dev-python/cvxopt-1.1.5-r2 USE=glpk with sci-mathematics/glpk-4.50 - C/glpk.c:46:25: error: ‘LPX_K_MSGLEV’ undeclared here (not in a function)
Summary: dev-python/cvxopt-1.1.5-r2 USE=glpk with sci-mathematics/glpk-4.50 - C/glpk.c...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
Depends on:
Reported: 2013-06-16 06:30 UTC by Martin von Gagern
Modified: 2014-01-16 18:46 UTC (History)
3 users (show)

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

build log (build.log,20.88 KB, text/plain)
2013-06-16 06:30 UTC, Martin von Gagern

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2013-06-16 06:30:16 UTC
Created attachment 351074 [details]
build log

Re-emerging cvxopt with the glpk extension after an upgrade of glpk to 4.50 fails due to numerous undefined symbols.

x86_64-pc-linux-gnu-gcc -pthread -march=amdfam10 -O2 -ggdb -pipe -fPIC -I/usr/include/python2.7 -c C/glpk.c -o /var/tmp/portage/dev-python/cvxopt-1.1.5-r2/work/cvxopt-1.1.5/src-python2_7/temp.linux-x86_64-2.7/C/glpk.o
C/glpk.c:46:25: error: ‘LPX_K_MSGLEV’ undeclared here (not in a function)
C/glpk.c:47:25: error: ‘LPX_K_SCALE’ undeclared here (not in a function)
C/glpk.c:48:25: error: ‘LPX_K_DUAL’ undeclared here (not in a function)
C/glpk.c:49:25: error: ‘LPX_K_PRICE’ undeclared here (not in a function)
Comment 1 François Bissey 2013-06-16 09:58:02 UTC
Breaks ppl-0.12.1-r1[lpsol] too, but octave 3.6.4 is OK.
Comment 2 François Bissey 2013-06-16 10:08:02 UTC
See: the release post about glpk 4.49. In particular:

        Obsolete API routine lpx_check_kkt was replaced by new routine

        IMPORTANT: All old API routines whose names begin with 'lpx_'
        were removed from API level and NO MORE AVAILABLE.

That's a very serious change that probably would have justified a major version bump.
Comment 3 François Bissey 2013-06-16 10:24:18 UTC
Reported to cvxopt upstream tracker:

For ppl, it may be time to test ppl 1.0 - if it is compatible with gcc 4.7 and under of course - it will have been out for a year on the 28th of June. In the meantime it may be safer to mask >=sci-mathematics/glpk-4.49.
Comment 4 François Bissey 2013-06-16 10:40:04 UTC
Hum, ppl has switched to new glpk function in a commit from the 16th of May in their git tree. So it is unreleased but could possibly be cherry-picked.
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2014-01-16 18:46:05 UTC
  16 Jan 2014; Sébastien Fabbro <>
  +files/cvxopt-1.1.6-glpk.patch, -cvxopt-1.1.5-r2.ebuild,
  -files/cvxopt-1.1.5-setup.patch, cvxopt-1.1.6.ebuild, metadata.xml:
  Fixed for glpk versions > 4.49 (bug #473454), fixed for blas/lapck under /opt
  (bug #498144, thanks kiwifb), removed old (bug #404427, #450992)