[mrtg] Re: ANNOUNCE: mrtg-2.8.7 released ...
Yozo Toda
yozo at aohakobe.ipc.chiba-u.ac.jp
Fri Sep 3 12:29:14 MEST 1999
I cannot find mrtg-2.8.7, here I'm talking about the latest version 2.8.8.
> Changes 2.8.7
> -------------
......
> From: Tobi
> - added LD_RUN_PATH to make file and configure in support for shared
> libraries ...
I found the script configure doesn't set LD_RUN_PATH properly.
if you use dynamic libraries of GD and ZLIB
without setting environment variable LD_LIBRARY_PATH,
you should apply the following patch before running configure:
%%%% diff -c mrtg-2.8.8/configure{.orig,} %%%%
*** mrtg-2.8.8/configure.orig Fri Aug 27 06:25:08 1999
--- mrtg-2.8.8/configure Fri Sep 3 19:06:52 1999
***************
*** 957,963 ****
if test "${with_gd_lib+set}" = set; then
withval="$with_gd_lib"
LDFLAGS="${LDFLAGS} -L${withval}"
! LD_RUN_PATH=`pwd`"/${withval}${LD_RUN_PATH:+:}${LD_RUN_PATH}"
fi
--- 957,963 ----
if test "${with_gd_lib+set}" = set; then
withval="$with_gd_lib"
LDFLAGS="${LDFLAGS} -L${withval}"
! LD_RUN_PATH=`pwd`":${withval}${LD_RUN_PATH:+:}${LD_RUN_PATH}"
fi
***************
*** 973,979 ****
if test "${with_z_lib+set}" = set; then
withval="$with_z_lib"
LDFLAGS="${LDFLAGS} -L${withval}"
! LD_RUN_PATH=`pwd`"/${withval}${LD_RUN_PATH:+:}${LD_RUN_PATH}"
fi
--- 973,979 ----
if test "${with_z_lib+set}" = set; then
withval="$with_z_lib"
LDFLAGS="${LDFLAGS} -L${withval}"
! LD_RUN_PATH=`pwd`":${withval}${LD_RUN_PATH:+:}${LD_RUN_PATH}"
fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
explanation:
doing "configure --with-gd-lib=/opt/gd/lib ...",
generated Makefile contains the line
LD_RUN_PATH = /export/share/export3/ftp/pub/misc/docs/mrtg/mrtg-2.8.8//opt/gd/lib
LD_RUN_PATH define a colon-separated list of directories;
they are search for the libraries by the dynamic linker runtime.
so, in my case, the proper line is
LD_RUN_PATH = /export/share/export3/ftp/pub/misc/docs/mrtg/mrtg-2.8.8:/opt/gd/lib
(of course
LD_RUN_PATH = /opt/gd/lib
is OK, too.)
toby, if you're plannning to release mrtg-2.8.9 or mrtg-2.8.10 (-:
please fix the two lines in configure.in ...
-- yozo.
--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list