Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521978 - sci-libs/coinor-osi-0.106.6 USE=glpk - .../work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:169:30: error: 'lpx_simplex' was not declared in this scope
Summary: sci-libs/coinor-osi-0.106.6 USE=glpk - .../work/Osi-0.106.6/Osi/src/OsiGlpk/O...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-02 14:03 UTC by David Kredba
Modified: 2020-05-08 13:10 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,117.32 KB, text/plain)
2014-09-02 14:04 UTC, David Kredba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2014-09-02 14:03:29 UTC
Sci-libs/coinor-osi-0.106.6 [glpk] - can be build with [glpk] for the first time but not re-built:

mkdir .libs
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk -I../../src/Osi -I/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/../Osi -I/usr/include/coin -I/usr/include -O2 -ggdb -pipe -march=core2 -mtune=core2 -DOSI_BUILD -c /var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp  -fPIC -DPIC -o .libs/OsiGlpkSolverInterface.o
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp: In member function 'virtual void OsiGlpkSolverInterface::initialSolve()':
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:169:30: error: 'lpx_simplex' was not declared in this scope
   int err = lpx_simplex(model) ;
                              ^
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:179:14: error: 'LPX_E_SING' was not declared in this scope
   if (err == LPX_E_SING || err == LPX_E_FAULT) {
              ^
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:179:35: error: 'LPX_E_FAULT' was not declared in this scope
   if (err == LPX_E_SING || err == LPX_E_FAULT) {
                                   ^
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:180:24: error: 'lpx_adv_basis' was not declared in this scope
     lpx_adv_basis(model);
                        ^
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:184:40: error: 'LPX_K_ITCNT' was not declared in this scope
   iter_used_ = lpx_get_int_parm(model, LPX_K_ITCNT) ;
                                        ^
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:184:51: error: 'lpx_get_int_parm' was not declared in this scope
   iter_used_ = lpx_get_int_parm(model, LPX_K_ITCNT) ;
                                                   ^
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:207:10: error: 'LPX_E_OK' was not declared in this scope
   { case LPX_E_OK:
          ^
/var/tmp/portage/sci-libs/coinor-osi-0.106.6/work/Osi-0.106.6/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp:209:10: error: 'LPX_E_ITLIM' was not declared in this scope
     case LPX_E_ITLIM:
          ^
-cut-

Reproducible: Always

Steps to Reproduce:
1.emerge sci-libs/coinor-osi-0.106.6 with USE=glpk
2.emerge sci-libs/coinor-osi-0.106.6 with USE=glpk again
3.



Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4-alpha20140811, glibc-2.19-r1, 3.16.1-gentoo-1d x86_64)
=================================================================
System uname: Linux-3.16.1-gentoo-1d-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
KiB Mem:     8169988 total,   1359388 free
KiB Swap:    8396796 total,   8389428 free
Timestamp of tree: Tue, 02 Sep 2014 06:30:01 +0000
ld GNU ld (Gentoo 2.24.51) 2.24.51.20140818
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24.51::x-portage
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.4_alpha20140811::x-portage, 4.9.2_alpha20140811::x-portage, 4.10.0_alpha20140812::x-portage
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -pipe -march=core2 -mtune=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -ggdb -pipe -march=core2 -mtune=core2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -ggdb -pipe -march=core2 -mtune=core2"
GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--hash-style=gnu"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="echo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac aalib acl acpi alsa amd64 berkdb blas bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups cvs cxx dbus declarative djvu dri dts dv dvb dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran ftp gd gdbm geoip gif gmp gnuplot gpm gps graphviz gsl gsm gstreamer gtk hdf5 iconv icu idn ieee1394 imagemagick imlib ipv6 ithreads javascript jbig jpeg jpeg2k ladspa lame lapack lcms ldap libass libnotify libsamplerate lzma lzo mad matroska mms mmx mmxext mng modplug modules mp3 mp4 mpeg mplayer msn mtp multilib musepack musicbrainz ncurses netcdf nls nptl ocaml ocamlopt odbc ogg opencl openexr opengl openmp pam pango pch pcre pdf perl pic plotutils png policykit postscript ppds pulseaudio python qt3support qt4 quicktime rdesktop readline samba scanner sdl semantic-desktop session slang smp sndfile sox speex spell sse sse2 ssl ssse3 startup-notification svg szip tcpd theora threads tidy tiff truetype udev udisks unicode upower usb v4l vcd vdpau vnc vorbis wavpack wmf wxwidgets x264 xattr xcb xft xine xinerama xml xosd xpm xscreensaver xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher ffhash" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ubx fury geostar nmea2000" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer scripting-beanshell scripting-javascript nlpsolver" LINGUAS="cs en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 David Kredba 2014-09-02 14:04:22 UTC
Created attachment 384122 [details]
build.log
Comment 2 Denis Dupeyron (RETIRED) gentoo-dev 2014-09-28 16:52:38 UTC
Actually, here it does not even build the first time. Setting status to CONFIRMED.

Denis.
Comment 3 François Bissey 2014-09-29 07:42:58 UTC
All these lpx* functions have been removed in glpk 4.49. You probably managed the first build with glpk 4.45 or 4.48 but you are now failing with 4.54.
Comment 4 Priit Laes (IRC: plaes) 2014-10-13 10:20:26 UTC
Also fails with coinor-osi-0.106.9, so a version bump doesn't help.
Comment 5 François Bissey 2014-10-14 07:41:24 UTC
(In reply to Priit Laes (IRC: plaes) from comment #4)
> Also fails with coinor-osi-0.106.9, so a version bump doesn't help.

Not until upstream decides not to use the deprecated, and now removed, interface anymore. Really, until someone port to the new interface you'll have to use an older glpk.
Comment 6 Martin Mokrejš 2015-05-25 18:38:31 UTC
I hit this as well. Why are the DEPENDencies not specifying maximal versions then?

RDEPEND="
        sci-libs/coinor-utils:=
        glpk? ( sci-mathematics/glpk:= )"
Comment 7 Erik Quaeghebeur 2015-10-02 08:48:16 UTC
(In reply to Francois Bissey from comment #5)
> Really, until someone port to the new interface you'll
> have to use an older glpk.

Actually, have a look at the directory

  /usr/share/doc/glpk-4.55/examples/oldapi

The README that can be found there explains its use:

"The program module in this subdirectory contains an implementation of
the old GLPK API as it was defined in GLPK 4.48.

To compile an existing project using the old GLPK API you need to add
to the project two files lpx.h and lpx.c.

Please note that you may mix calls to old and new GLPK API routines in
the same project (except calls to glp_create_prob and glp_delete_prob).

The file lpxsamp.c is an example that illustrates using the old GLPK
API routines."

So, although ideally upstream updates their code, it seems it should be able to easily fix the ebuild to use the latest versions of GLPK.
Comment 8 Juergen Rose 2016-04-16 11:28:47 UTC
I hit the same issue. Is there not any patch?
Comment 9 Erik Quaeghebeur 2017-07-26 09:35:09 UTC
Upstream ticket: https://projects.coin-or.org/Osi/ticket/107

This is from 2013, so I don't think we should count on upstream fixing this.

If someone is still interested in this package, they should try the suggested fix from comment #7 and report back. Otherwise, a maximal version should be specified as per comment #6.
Comment 10 Larry the Git Cow gentoo-dev 2020-05-08 12:21:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f46d082788eac8c47fb2e26bb06ddf5fb642c032

commit f46d082788eac8c47fb2e26bb06ddf5fb642c032
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2020-05-06 22:26:53 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2020-05-08 12:20:33 +0000

    sci-libs/coinor-osi: new EAPI=7 version 0.108.6.
    
    Standard version bump and EAPI update to clean things up. I'm trying
    to comment the weirdness that pervades the coinor-* ebuilds as I
    encounter it. This new version drops support for USE=glpk, because
    upstream has abandoned it: they've documented that they only support
    ancient versions of glpk not present... well, anywhere, anymore.
    
    Closes: https://bugs.gentoo.org/521978
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sci-libs/coinor-osi/Manifest                  |  2 +-
 sci-libs/coinor-osi/coinor-osi-0.106.6.ebuild | 73 -----------------------
 sci-libs/coinor-osi/coinor-osi-0.108.6.ebuild | 85 +++++++++++++++++++++++++++
 sci-libs/coinor-osi/metadata.xml              |  6 --
 4 files changed, 86 insertions(+), 80 deletions(-)
Comment 11 Erik Quaeghebeur 2020-05-08 13:10:36 UTC
(In reply to Larry the Git Cow from comment #10)
>     […] This new version drops support for USE=glpk, because
>     upstream has abandoned it: they've documented that they only support
>     ancient versions of glpk not present... well, anywhere, anymore.
FYI: Upstream is working on supporting current GLPK: https://github.com/coin-or/Osi/pull/121, so the glpk use flag may need to be readded at some point.