patch for --with-system-gmp [Re: [Ecls-list] Re: Building ECL]

Dave hundo at yahoo.com
Sun Feb 27 09:55:05 UTC 2005


I now see this failure after updating to the lastest cvs. Looks like a 
small problem with the autoconf script. Here's a patch for 
src/configure.in that appears to work:

Index: src/configure.in
===================================================================
RCS file: /cvsroot/ecls/ecls/src/configure.in,v
retrieving revision 1.96
diff -u -r1.96 configure.in
--- src/configure.in    25 Feb 2005 16:02:17 -0000      1.96
+++ src/configure.in    27 Feb 2005 17:50:46 -0000
@@ -118,11 +118,11 @@
 AC_ARG_WITH(system-boehm,
        AS_HELP_STRING([--with-system-boehm],
                       [use already installed Boehm GC library 
(default=NO)]),
-       [system_boehm="${enableval}" boehm="yes"], 
[system_boehm="${system_boehm:-no}"])
+       [system_boehm="${withval}" boehm="yes"], 
[system_boehm="${system_boehm:-no}"])
 AC_ARG_WITH(system-gmp,
        AS_HELP_STRING([--with-system-gmp],
                       [use already installed GMP library (default=NO)]),
-       [system_gmp="${enableval}"], [system_gmp="${system_gmp:-no}"])
+       [system_gmp="${withval}"], [system_gmp="${system_gmp:-no}"])

 ### ----------------------------------------------------------------------
 ###           Checks for programs


Jan Rychter wrote:

>>>>>>"Juan" == Juan Jose Garcia Ripoll <lisp at arrakis.es> writes:
>>>>>>            
>>>>>>
> Juan> Jan Rychter wrote:
> >> I have tried building ecls (CVS HEAD) in various configurations,
> >> mostly to estimate its space requirements. I encountered some
> >> problems: [...]
> >>
> >>
> Juan> Solved on CVS. Statically linked executables are produced now if
> Juan> you use --disable-shared. No other option is required.
>
>... but it seems that in this case configure ignores library
>suggestions: if I do
>
>./configure --disable-shared --enable-system-gmp --enable-system-boehm
>
>then ECL still tries to build local copies of gmp and boehm-gc. This
>matters, because the local gmp doesn't build for me:
>
>gcc -fPIC -DHAVE_CONFIG_H -I. -I/home/jwr/lisp/ecls/src/gmp/mpz -I.. -D__GMP_WITHIN_GMP -I/home/jwr/lisp/ecls/src/gmp -march=pentium3 -Os -fstrict-aliasing -c /home/jwr/lisp/ecls/src/gmp/mpz/aorsmul.c -o aorsmul.o
>/home/jwr/lisp/ecls/src/gmp/mpz/aorsmul.c:44: error: conflicting types for '__gmpz_aorsmul'
>/home/jwr/lisp/ecls/src/gmp/mpz/aorsmul.c:39: error: previous declaration of '__gmpz_aorsmul' was here
>/home/jwr/lisp/ecls/src/gmp/mpz/aorsmul.c:44: error: conflicting types for '__gmpz_aorsmul'
>/home/jwr/lisp/ecls/src/gmp/mpz/aorsmul.c:39: error: previous declaration of '__gmpz_aorsmul' was here
>make[3]: *** [aorsmul.lo] Error 1
>make[3]: Leaving directory `/home/jwr/lisp/ecls/build/gmp/mpz'
>make[2]: *** [install-recursive] Error 1
>make[2]: Leaving directory `/home/jwr/lisp/ecls/build/gmp'
>mv: cannot stat `../libgmp.a': No such file or directory
>make[1]: *** [libeclgmp.a] Error 1
>make[1]: Leaving directory `/home/jwr/lisp/ecls/build'
>make: *** [all] Error 2
>
>--J.
>  
>




More information about the ecl-devel mailing list