Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2013 17:28:04 +0700 (ICT)
From:      Olivier Nicole <Olivier.Nicole@cs.ait.ac.th>
To:        js@jeannot.org, freebsd-ports@freebsd.org
Subject:   math/scilab port
Message-ID:  <201306251028.r5PAS4LU027416@banyan.cs.ait.ac.th>

next in thread | raw e-mail | index | archive | help
Hi,

I suggest the following patch for math/scilab: due to a problem in the
port math/suitesparse umfpack is not linked to suitesparseconfig and
-lsuitesparseconfig must be explicitely added each time -lumfpack is
used.

Best regards,

Olivier

$ pkg_info -E suitesparse\*
suitesparse-4.0.2_1
$ pkg_info -E scilab\*
scilab-5.3.3_5
$ uname -a
FreeBSD banyan2.cs.ait.ac.th 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #8: Tue Jun 18 08:39:59 ICT 2013     root@banyan2.cs.ait.ac.th:/usr/obj/usr/src/sys/CSIM  amd64


-------- /usr/ports/math/scilab/files/patch-configure

--- configure.orig      2011-07-20 15:15:42.000000000 +0700
+++ configure   2013-06-25 17:16:06.000000000 +0700
@@ -22347,13 +22347,13 @@
 
 fi
 
-       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umf_divcomplex in -lumfpack" >&5
-$as_echo_n "checking for umf_divcomplex in -lumfpack... " >&6; }
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umf_divcomplex in -lumfpack -lsuitesparseconfig" >&5
+$as_echo_n "checking for umf_divcomplex in -lumfpack -lsuitesparseconfig... " >&6; }
 if test "${ac_cv_lib_umfpack_umf_divcomplex+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lumfpack  $LIBS"
+LIBS="-lumfpack -lsuitesparseconfig  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -22392,7 +22392,7 @@
 { $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" = x""yes; then :
-  UMFPACK_LIB="-L$with_umfpack_library -lumfpack $UMFPACK_LIB"; UMFPACK_OK=yes
+  UMFPACK_LIB="-L$with_umfpack_library -lumfpack -lsuitesparseconfig $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
 
@@ -22463,13 +22463,13 @@
 fi
 
        LIBS="$UMFPACK_LIB $LIBS"
-       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umf_divcomplex in -lumfpack" >&5
-$as_echo_n "checking for umf_divcomplex in -lumfpack... " >&6; }
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umf_divcomplex in -lumfpack -lsuitesparseconfig" >&5
+$as_echo_n "checking for umf_divcomplex in -lumfpack -lsuitesparseconfig... " >&6; }
 if test "${ac_cv_lib_umfpack_umf_divcomplex+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lumfpack  $LIBS"
+LIBS="-lumfpack -lsuitesparseconfig  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -22508,7 +22508,7 @@
 { $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" = x""yes; then :
-  UMFPACK_LIB="-lumfpack $UMFPACK_LIB"; UMFPACK_OK=yes
+  UMFPACK_LIB="-lumfpack -lsuitesparseconfig $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
 
--------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306251028.r5PAS4LU027416>