COIN-OR::LEMON - Graph Library

Opened 10 years ago

Closed 10 years ago

#481 closed defect (fixed)

Shared library build is broken with glpk

Reported by: amluto Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.4 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

If I configure with:

cmake .. -DBUILD_SHARED_LIBS:BOOL=ON -DLEMON_ENABLE_GLPK=YES

then the build fails with lots of errors about undefined glp_ symbols.

The library link line is missing -lglpk. I'd submit a patch, but my cmake-foo isn't very good.

Running:

LDFLAGS=-lglpk cmake .. -DBUILD_SHARED_LIBS:BOOL=ON -DLEMON_ENABLE_GLPK=YES

works around the problem, but that's gross.

Attachments (2)

lemon-1.3-lp-linkage.patch (543 bytes) - added by amluto 10 years ago.
Patch to fix shared library build with GLPK, Clp, and Cbc
70afd6c32697.patch (705 bytes) - added by Alpar Juttner 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by amluto

Attachment: lemon-1.3-lp-linkage.patch added

Patch to fix shared library build with GLPK, Clp, and Cbc

comment:1 Changed 10 years ago by amluto

This wasn't specific to GLPK. I've attached a patch to fix the issue for GLPK and COIN. I didn't try to fix SOPLEX and CPLEX, since they're non-free.

Changed 10 years ago by Alpar Juttner

Attachment: 70afd6c32697.patch added

comment:2 Changed 10 years ago by Alpar Juttner

I believe this simple patch should also work. Could you please check?

comment:3 in reply to:  2 Changed 10 years ago by amluto

Replying to alpar:

I believe this simple patch should also work. Could you please check?

It works. Thanks.

comment:4 Changed 10 years ago by Alpar Juttner

Resolution: fixed
Status: newclosed

This fix is in branches default and 1.3 as [07cd9a2d20e0].

Note: See TracTickets for help on using tickets.