[PATCH] [openib-general] Strange configure error in libibcm
Jack Morgenstein
jackm at mellanox.co.il
Wed Sep 14 22:54:26 PDT 2005
What I noticed is that moving the sizeof check before the library check
resulted in the generated GCC command not including the libraries (no -l
parameters). Therefore, the sizeof check program did indeed run, and
yielded the correct result. Evidently, once the library check is performed,
subsequent checks all generate a GCC command line which includes the checked
libraries as "-l<libxx>" parameters. You simply need to organize file
configure.in so that all tests which do not require extra libraries are
executed before any library-check tests. (I assume that the macro language
generates a "LIB=" line when a library check is requested, and that this
line is not unset after the test -- a probable bug in autoconf or
configure).
BTW, I noticed that the library check only compiled test programs -- it did
not attempt to run them! (thats why the library check succeeded even though
the checked libraries are not in the search path). Strange.
Jack
-----Original Message-----
From: Roland Dreier [mailto:rolandd at cisco.com]
Sent: Thursday, September 15, 2005 8:32 AM
To: Jack Morgenstein
Cc: openib-general at openib.org
Subject: Re: [PATCH] [openib-general] Strange configure error in libibcm
Jack> No error message is generated (i.e., the patch fixes the
Jack> problem). autoconf and configure work as they should with
Jack> this patch.
Right, but the program that gets built won't run because ld.so won't
find the library it's linked with. That's what I meant about the
error message being easier to understand: it's easy to see you have to
set LD_LIBRARY_PATH in that case.
- R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050915/fc4e0c83/attachment.html>
More information about the general
mailing list