[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] Re: problem on compiling glpk 4.2 in Debian and Red Hat (more
[Bug-glpk] Re: problem on compiling glpk 4.2 in Debian and Red Hat (more detailed instructions)
Sat, 15 Nov 2003 13:26:09 +0300
(More detailed instructions added.)
In glpk 4.2 the standard math library libm is not linked by default,
so some unresolved external references appear on building the package
(namely, on linking glpsol).
To avoid the bug simply use the command:
make LIBS=-lm [...]
Nothing else is needed to avoid the bug.
If you want to fix the bug:
a) *either* include the following lines:
dnl Check for libraries.
in configure.in and then run autoconf and automake to re-generate
configure shell script and Makefile.in's,
b) *or*, if you do not have autoconf and automake installed, replace
configure.in and configure by the patched ones I have attached
(see patch.tar.gz). Be sure that the timestamp assigned to the
patched files remains untouched (otherwise make will detect that
and begin to run automake). This can be attained with the following
unzip -d glpk-4.2.tar.gz
tar x < glpk-4.2
unzip -d patch.tar.gz
tar x < patch.tar
cp -f -p patch/* glpk-4.2
(It is impossible to patch the configure files using a diff file,
because patch always alters the timestamp. That's why I do not post
the diff file. Note also that the patched version of glpk differs
from the original one only in two files: configure.in and configure,
i.e. automake produces the same files as for the original version.
The problem reported by Roberto Bagnara appears only due to changes
in the timestamp.)
After patching you can build and install the package in a usual way.
Description: GNU Zip compressed data
|[Prev in Thread]
||[Next in Thread]|
- [Bug-glpk] Re: problem on compiling glpk 4.2 in Debian and Red Hat (more detailed instructions),
Andrew Makhorin <=