[savant-devel] Size of long problem fix

Doug Hickey dhickey at cliftonlabs.com
Thu Dec 8 11:41:39 EST 2005


Ruda,

Thank you for submitting the patch.  This issue only comes up when
starting a new build from CVS, so I had forgotten to revisit it.  Your
solution provides a much more informative message to the user and will
eliminate the confusing errors when building with a non-standard
$PREFIX.  The only possibilities I am aware of for specifying additional
library paths are the $LD_LIBRARY_PATH and ld.so.conf solutions you
outline in the patch.

I am currently looking into your request for a similar isClutils()
function for libaire and libsavantutils and will update you when this is
implemented.    

Thanks,

-- 
Doug Hickey
Computer Engineer
Clifton Labs, Inc.
dhickey at cliftonlabs.com

On Thu, 2005-12-08 at 14:03 +0100, Rudolf Matousek wrote:
> Hi,
> 
> I've attached a patch for savant that tries to avoid the problem with
> failing size of long test (when libclutils is not linkable at runtime).
> 
> My solution just adds one more check to the CL_LIB_CLUTILS macro. It
> tries to run a piece of code that should allways work. If it fails, the
> library is likely not available at runtime and therefore a sensible
> error message is generated and configure script exits (=> size of long
> test is not reached without working library).
> 
> I hope that this will help to avoid the size of long problem confusion.
> 
> Btw. I've found this solution for savant while looking for a solution of
> a similar problem of my plugin. If you know how to force configure to
> preload these libraries at runtime, just let me know how. ;-)
> 
> Regards,
> 
> 
> Ruda M.
> plain text document attachment (savant.patch)
> Index: acinclude.m4
> ===================================================================
> RCS file: /usr/local/cvsroot/savant/acinclude.m4,v
> retrieving revision 1.6
> diff -r1.6 acinclude.m4
> 1c1
> < nl
> ---
> > dnl
> 36a37,46
> > AC_MSG_CHECKING([whether libclutils can be linked])
> > AC_TRY_RUN([extern "C" int isClutils(); int main(){return isClutils();}],
> >   AC_MSG_RESULT([yes]),
> >   AC_MSG_RESULT([no])
> >   AC_MSG_ERROR([libclutils cannot be linked. This typically happends
> >     if you have installed clutils in a non-standard directory which is not
> >     being cached by ld.so system. You can fix this by prepending configure
> >     script with LD_LIBRARY_PATH=$cl_cv_lib_clutils/lib or by adding this
> >     path in ld.so.conf (typically in /etc) and by running ldconfig
> >     (man ld.so for more info).]))
> _______________________________________________
> savant-devel mailing list
> savant-devel at cliftonlabs.com
> http://cliftonlabs.com/cgi-bin/mailman/listinfo/savant-devel






More information about the savant-devel mailing list