Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to ./configure xenoprofile (basically a patched oprofile) on SLES 11 but it keeps giving me the following error
Code:
checking libiberty.h usability... no
checking libiberty.h presence... no
checking for libiberty.h... no
checking for cplus_demangle in -liberty... no
configure: error: liberty library not found
SLES11-xen:~/oprofile-0.9.3 # patch -p1 < ../oprofile_sles11_binutils.m4.patch
patching file m4/binutils.m4
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file m4/binutils.m4.rej
And this is the contents of binutils.m4.rej
Code:
*************** AC_CHECK_FUNCS(xmemdup)
*** 10,19 ****
AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl"; DL_LIB="-ldl", DL_LIB="")
AC_CHECK_LIB(intl, main, LIBS="$LIBS -lintl"; INTL_LIB="-lintl", INTL_LIB="")
- AC_CHECK_LIB(bfd, bfd_openr,,
[AC_CHECK_LIB(z, compress,
dnl Use a different bfd function here so as not to use cached result from above
- [AC_CHECK_LIB(bfd, bfd_fdopenr, LIBS="-lbfd -lz $LIBS",
[AC_MSG_ERROR([bfd library not found])], -lz)
],
[AC_MSG_ERROR([libz library not found; required by libbfd])])
--- 10,19 ----
AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl"; DL_LIB="-ldl", DL_LIB="")
AC_CHECK_LIB(intl, main, LIBS="$LIBS -lintl"; INTL_LIB="-lintl", INTL_LIB="")
+ AC_CHECK_LIB(bfd, bfd_openr, LIBS="-lbfd $LIBS"; Z_LIB="",
[AC_CHECK_LIB(z, compress,
dnl Use a different bfd function here so as not to use cached result from above
+ [AC_CHECK_LIB(bfd, bfd_fdopenr, LIBS="-lbfd -lz $LIBS"; Z_LIB="-lz",
[AC_MSG_ERROR([bfd library not found])], -lz)
],
[AC_MSG_ERROR([libz library not found; required by libbfd])])
cd /usr/lib/
# ln -s libbfd-2.18.50.20080409-11.1.so libbfd.so
But it seems that SLES is different from OpenSuse 11.0 ?
No libbfd.a on my Suse 11.0 ( Suse 11.1 has libbfd-2.19.so )
Suggest : compile binutils-2.18.50 > > cd build-binutils
../binutils-2.18/configure --enable-shared
and find libbfd.so in the hidden directory
build-binutils/bfd/.libs and copy to /usr/local/lib/.
Thank you for all your help, but apparantly I looked over /usr/lib64/libbfd-2.19.so
So I just symlinked /usr/lib64/libbfd.so to that file.
I know symlinking libraries isn't a good practice, but it's mainly for testing purposes and it won't be running on live servers, so it's no big deal if they break.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.