That is the error:

gcc -o conftest -g -O2   conftest.c -lumfpack  -lamd -lblas -lpthread
-ldl -lcurses  -lm -lm >&5
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.7.2/../../../../lib64/libumfpack.so:
undefined reference to `SuiteSparse_time'

A priori, I would say that umfpack is not explicitly linked against lib
SuiteSparse.so (-lSuiteSparse) if it exists or the -Wl,--as-needed
created some mess.

Basically, it is a bug of the suitesparse package in Mageia.

Scilab should build with:
--with-umfpack-library="-lumfpack -lSuiteSparse"
or with the attached patch (which is mageia specific)

Could you report a bug ? I will try to workaround this issue from Scilab.


Sylvestre



On 28/01/2013 11:51, Filipe Saraiva wrote:
> The config.log file after umfpack error -> http://paste.kde.org/658088/
> 
> 2013/1/28 Sylvestre Ledru <[email protected]
> <mailto:[email protected]>>
> 
>     OK. Could you share the failing config.log ?
> 
>     Thanks
>     S
> 
>     On 28/01/2013 11:23, Filipe Saraiva wrote:
>     > I used --without-umfpack.
>     >
>     > Scilab package's mantainer in Mageia get the same problem. Apparently
>     > --without-umfpack is used in Scilab package in Mageia too ->
>     > https://bugs.mageia.org/show_bug.cgi?id=7668#c2
>     >
>     > 2013/1/28 Sylvestre Ledru <[email protected]
>     <mailto:[email protected]>
>     > <mailto:[email protected]
>     <mailto:[email protected]>>>
>     >
>     >     You are welcome.
>     >     Could you share how you fixed it ?
>     >
>     >     S
>     >
>     >     On 28/01/2013 11:14, Filipe Saraiva wrote:
>     >     > Oh, great Sylvestre! Thank for your tip!
>     >     >
>     >     > 2013/1/27 xuhaida <[email protected]
>     <mailto:[email protected]> <mailto:[email protected]
>     <mailto:[email protected]>>
>     >     <mailto:[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>>>
>     >     >
>     >     >
>     >     >
>     >     >     Sylvestre Ledru <[email protected]
>     <mailto:[email protected]>
>     >     <mailto:[email protected]
>     <mailto:[email protected]>>
>     >     >     <mailto:[email protected]
>     <mailto:[email protected]>
>     >     <mailto:[email protected]
>     <mailto:[email protected]>>>>编写:
>     >     >
>     >     >     >On 26/01/2013 17:58, Filipe Saraiva wrote:
>     >     >     >> Hello,
>     >     >     >>
>     >     >     >> I have a error during Scilab compilation. The error
>     message
>     >     is below:
>     >     >     >>
>     >     >     >> checking for umf_divcomplex in -lumfpack... no
>     >     >     >> configure: error: libumfpack: Library missing.
>     (Cannot find
>     >     symbol
>     >     >     >> umf_divcomplex). Check if libumfpack is installed and
>     if the
>     >     >     version is
>     >     >     >> correct (also called lib suitesparse)
>     >     >     >>
>     >     >     >> But umfpack is installed. I submitted a bug report to my
>     >     distribution
>     >     >     >> some months ago
>     >     (https://bugs.mageia.org/show_bug.cgi?id=7668) but I
>     >     >     >> don't had replies yet.
>     >     >     >>
>     >     >     >> Have you some idea about this?
>     >     >     >Yeh, you should have a look in the config.log, you will
>     find more
>     >     >     >information about the issue.
>     >     >     >Otherwise, --without-umfpack is your friend.
>     >     >     >
>     >     >     >S
>     >     >     >
>     >     >     >_______________________________________________
>     >     >     >dev mailing list
>     >     >     >[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>
>     >     <mailto:[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>>
>     >     >     >http://lists.scilab.org/mailman/listinfo/dev
>     >     >     _______________________________________________
>     >     >     dev mailing list
>     >     >     [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>
>     >     <mailto:[email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>>
>     >     >     http://lists.scilab.org/mailman/listinfo/dev
>     >     >
>     >     >
>     >     >
>     >     >
>     >     > --
>     >     > Filipe Saraiva
>     >     > http://filipesaraiva.info/
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > dev mailing list
>     >     > [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>
>     >     > http://lists.scilab.org/mailman/listinfo/dev
>     >     >
>     >
>     >     _______________________________________________
>     >     dev mailing list
>     >     [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>
>     >     http://lists.scilab.org/mailman/listinfo/dev
>     >
>     >
>     >
>     >
>     > --
>     > Filipe Saraiva
>     > http://filipesaraiva.info/
>     >
>     >
>     > _______________________________________________
>     > dev mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://lists.scilab.org/mailman/listinfo/dev
>     >
> 
>     _______________________________________________
>     dev mailing list
>     [email protected] <mailto:[email protected]>
>     http://lists.scilab.org/mailman/listinfo/dev
> 
> 
> 
> 
> -- 
> Filipe Saraiva
> http://filipesaraiva.info/
> 
> 
> _______________________________________________
> dev mailing list
> [email protected]
> http://lists.scilab.org/mailman/listinfo/dev
> 

>From dab5a75672b426b34cf8dac4da02c04df8421968 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <[email protected]>
Date: Mon, 28 Jan 2013 12:15:10 +0100
Subject: [PATCH] Workaround to fix the build failure with the SuiteSparse
 provided in Mageia

Change-Id: I299b85a5c164596b5b8a38e7bc377ed587e74a4c
---
 scilab/configure     |    4 ++--
 scilab/m4/umfpack.m4 |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scilab/configure b/scilab/configure
index 5b63682..4d18b6e 100755
--- a/scilab/configure
+++ b/scilab/configure
@@ -23496,7 +23496,7 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umfpack_umf_divcomplex" >&5
 $as_echo "$ac_cv_lib_umfpack_umf_divcomplex" >&6; }
 if test "x$ac_cv_lib_umfpack_umf_divcomplex" = xyes; then :
-  UMFPACK_LIB="-L$with_umfpack_library -lumfpack $UMFPACK_LIB"; UMFPACK_OK=yes
+  UMFPACK_LIB="-L$with_umfpack_library -lumfpack -lSuiteSparse $UMFPACK_LIB"; UMFPACK_OK=yes
 else
   as_fn_error $? "libumfpack : Library missing. (Cannot find umf_divcomplex). Check if libumfpack is installed and if the version is correct (also called lib suitesparse)" "$LINENO" 5
 
@@ -23612,7 +23612,7 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umfpack_umf_divcomplex" >&5
 $as_echo "$ac_cv_lib_umfpack_umf_divcomplex" >&6; }
 if test "x$ac_cv_lib_umfpack_umf_divcomplex" = xyes; then :
-  UMFPACK_LIB="-lumfpack $UMFPACK_LIB"; UMFPACK_OK=yes
+  UMFPACK_LIB="-lumfpack -lSuiteSparse $UMFPACK_LIB"; UMFPACK_OK=yes
 else
   as_fn_error $? "libumfpack: Library missing. (Cannot find symbol umf_divcomplex). Check if libumfpack is installed and if the version is correct (also called lib suitesparse)" "$LINENO" 5
 
diff --git a/scilab/m4/umfpack.m4 b/scilab/m4/umfpack.m4
index 2fbff7a..f17d722 100644
--- a/scilab/m4/umfpack.m4
+++ b/scilab/m4/umfpack.m4
@@ -70,7 +70,7 @@ if test "x$with_umfpack_library" != "xyes"; then
             [AC_MSG_ERROR([libamd: Library missing (Cannot find symbol amd_info). Check if libamd (sparse matrix minimum degree ordering) is installed and if the version is correct])]
 			)
 	AC_CHECK_LIB([umfpack], [umf_divcomplex],
-			[UMFPACK_LIB="-L$with_umfpack_library -lumfpack $UMFPACK_LIB"; UMFPACK_OK=yes],
+			[UMFPACK_LIB="-L$with_umfpack_library -lumfpack -lSuiteSparse $UMFPACK_LIB"; UMFPACK_OK=yes],
             [AC_MSG_ERROR([libumfpack : Library missing. (Cannot find umf_divcomplex). Check if libumfpack is installed and if the version is correct (also called lib suitesparse)])]
 			)
 
@@ -91,7 +91,7 @@ if test $UMFPACK_OK = no; then
 			)
 	LIBS="$UMFPACK_LIB $LIBS"
 	AC_CHECK_LIB([umfpack], [umf_divcomplex],
-			[UMFPACK_LIB="-lumfpack $UMFPACK_LIB"; UMFPACK_OK=yes],
+			[UMFPACK_LIB="-lumfpack -lSuiteSparse $UMFPACK_LIB"; UMFPACK_OK=yes],
             [AC_MSG_ERROR([libumfpack: Library missing. (Cannot find symbol umf_divcomplex). Check if libumfpack is installed and if the version is correct (also called lib suitesparse)])]
 			)
 		LIBS="$save_LIBS"
-- 
1.7.10.4

_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to