Greetings! Can you try the following to see if it works for you? Index: configure.in =================================================================== RCS file: /sources/gcl/gcl/configure.in,v retrieving revision 1.112.4.1.2.2.2.47.2.3.2.1.4.2.4.2.4.64 diff -u -u -r1.112.4.1.2.2.2.47.2.3.2.1.4.2.4.2.4.64 configure.in --- configure.in 20 Jun 2011 15:41:52 -0000 1.112.4.1.2.2.2.47.2.3.2.1.4.2.4.2.4.64 +++ configure.in 3 Jan 2012 16:36:41 -0000 @@ -1038,6 +1038,11 @@ AC_SUBST(BUILD_BFD) fi + +AC_CHECK_FUNC(xdr_double,, + AC_CHECK_LIB(tirpc,xdr_double,TLIBS="$TLIBS -ltirpc",AC_MSG_ERROR([Need xdr_double]))) + + #AC_CONFIG_SUBDIRS($MY_SUBDIRS) # Find where Data begins. This is used by the storage allocation Index: configure =================================================================== RCS file: /sources/gcl/gcl/configure,v retrieving revision 1.107.4.1.2.2.2.48.2.3.2.1.4.2.4.2.4.64 diff -u -u -r1.107.4.1.2.2.2.48.2.3.2.1.4.2.4.2.4.64 configure --- configure 20 Jun 2011 15:41:48 -0000 1.107.4.1.2.2.2.48.2.3.2.1.4.2.4.2.4.64 +++ configure 3 Jan 2012 16:36:46 -0000 @@ -1801,6 +1801,73 @@ } # ac_fn_c_check_member +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case <limits.h> declares $2. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes @@ -1978,73 +2045,6 @@ as_fn_set_status $ac_retval } # ac_fn_c_compute_int - -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -ac_fn_c_check_func () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Define $2 to an innocuous variant, in case <limits.h> declares $2. - For example, HP-UX 11i <limits.h> declares gettimeofday. */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - -#undef $2 - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $2 (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -int -main () -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. @@ -5680,6 +5680,57 @@ fi + +ac_fn_c_check_func "$LINENO" "xdr_double" "ac_cv_func_xdr_double" +if test "x$ac_cv_func_xdr_double" = xyes; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -ltirpc" >&5 +$as_echo_n "checking for xdr_double in -ltirpc... " >&6; } +if ${ac_cv_lib_tirpc_xdr_double+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltirpc $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char xdr_double (); +int +main () +{ +return xdr_double (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tirpc_xdr_double=yes +else + ac_cv_lib_tirpc_xdr_double=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdr_double" >&5 +$as_echo "$ac_cv_lib_tirpc_xdr_double" >&6; } +if test "x$ac_cv_lib_tirpc_xdr_double" = xyes; then : + TLIBS="$TLIBS -ltirpc" +else + as_fn_error $? "Need xdr_double" "$LINENO" 5 +fi + +fi + + + #AC_CONFIG_SUBDIRS($MY_SUBDIRS) # Find where Data begins. This is used by the storage allocation
Take care, Léon Dutoit <wcth...@yahoo.fr> writes: > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ > De : Camm Maguire <c...@maguirefamily.org> > À : Léon Dutoit <wcth...@yahoo.fr> > Cc : "axiom-develo...@nongnu.org" <axiom-develo...@nongnu.org>; > gcl-devel@gnu.org > Envoyé le : Lundi 2 Janvier 2012 22h40 > Objet : Re: [Axiom-developer] axiom and glibc-2.14 > > Greetings! Can you post a failing build log please? > > Take care, > > Léon Dutoit <wcth...@yahoo.fr> writes: > >> Compilation of axiom fails on slackware64 (current) because in glibc-2.14 >> support of rpc has been suppressed. >> >> The problem is with gcl-2.6.8pre4 (and maybe after). >> >> To have rpc support the library "libtiprc" must be installed, but then at >> the link stage "-ltirpc" should be added. >> This is apparently not checked in the configure script in gcl-2.6.8pre4. >> >> _______________________________________________ >> Axiom-developer mailing list >> axiom-develo...@nongnu.org >> https://lists.nongnu.org/mailman/listinfo/axiom-developer > > -- > Camm Maguire c...@maguirefamily.org > ========================================================================== > "The earth is but one country, and mankind its citizens." -- Baha'u'llah > > I get this : > > touch raw_pre_gcl_map > gcc -o raw_pre_gcl /d1/axiom/obj/slackware/lib/cfuns-c.o > /d1/axiom/obj/slackware/lib/sockio-c.o \ > -L. -Wl,-Map raw_pre_gcl_map -lpre_gcl -lm -lc -lgclp > /d1/axiom/obj/slackware/lib/libspad.a > ./libpre_gcl.a(funlink.o): In function `siGxdr_open': > funlink.c:(.text+0x112): undefined reference to `xdrstdio_create' > ./libpre_gcl.a(funlink.o): In function `siGxdr_read': > funlink.c:(.text+0x1e6): undefined reference to `xdr_double' > funlink.c:(.text+0x206): undefined reference to `xdr_float' > funlink.c:(.text+0x22e): undefined reference to `xdr_long' > funlink.c:(.text+0x27a): undefined reference to `xdr_short' > funlink.c:(.text+0x282): undefined reference to `xdr_float' > funlink.c:(.text+0x2a6): undefined reference to `xdr_array' > funlink.c:(.text+0x2c2): undefined reference to `xdr_double' > funlink.c:(.text+0x2d2): undefined reference to `xdr_long' > ./libpre_gcl.a(funlink.o): In function `siGxdr_write': > funlink.c:(.text+0x385): undefined reference to `xdr_double' > funlink.c:(.text+0x3a5): undefined reference to `xdr_float' > funlink.c:(.text+0x3cd): undefined reference to `xdr_long' > funlink.c:(.text+0x402): undefined reference to `xdr_short' > funlink.c:(.text+0x412): undefined reference to `xdr_float' > funlink.c:(.text+0x436): undefined reference to `xdr_array' > funlink.c:(.text+0x452): undefined reference to `xdr_long' > funlink.c:(.text+0x462): undefined reference to `xdr_double' > collect2: ld returned 1 exit status > make[4]: *** [raw_pre_gcl_map] Error 1 > make[4]: Leaving directory `/d1/axiom/lsp/gcl-2.6.8pre4/unixport' > make[3]: *** [unixport/saved_pre_gcl] Error 2 > make[3]: Leaving directory `/d1/axiom/lsp/gcl-2.6.8pre4' > /bin/sh: line 5: unixport/saved_gcl: No such file or directory > make[2]: *** [gcldir] Error 127 > make[2]: Leaving directory `/d1/axiom/lsp' > make[1]: *** [lspdir] Error 2 > make[1]: Leaving directory `/d1/axiom' > make: *** [all] Error 2 > > _______________________________________________ > Axiom-developer mailing list > axiom-develo...@nongnu.org > https://lists.nongnu.org/mailman/listinfo/axiom-developer -- Camm Maguire c...@maguirefamily.org ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah _______________________________________________ Gcl-devel mailing list Gcl-devel@gnu.org https://lists.gnu.org/mailman/listinfo/gcl-devel