[torquedev] [Bug 210] Cannot configure 4.1-fixes on Ubuntu

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Tue Jul 31 14:20:18 MDT 2012


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=210

Michael Jennings <mej at lbl.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mej at lbl.gov

--- Comment #1 from Michael Jennings <mej at lbl.gov> 2012-07-31 14:20:18 MDT ---
Patch to fix this:

Index: configure.ac
===================================================================
--- configure.ac        (revision 6611)
+++ configure.ac        (working copy)
@@ -702,10 +702,10 @@
 dnl
 dnl we need libxml2
 dnl 
-xmlLib=`xml2-config --libs`
+xmlLib=`xml2-config --libs | sed 's/-L[^[:space:]]* //g;s/-l//'`

 dnl skip the first two chars because its -l<libname>
-AC_CHECK_LIB(${xmlLib:2}, xmlGetProp,
+AC_CHECK_LIB(${xmlLib}, xmlGetProp,
   [],
   [AC_MSG_ERROR([TORQUE needs libxml2-devel in order to build]) ])


The problem is that xml2-config --libs may output link paths in addition to the
library link directive.  The above fix eliminates all linker paths as well as
removing the "-l" from the library name.

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list