Serious bug in math/superlu port (with fix)

Pedro F. Giffuni giffunip at yahoo.com
Wed May 7 21:22:23 PDT 2003


Hello;

I had to reread the documentation to find out what was
wrong with math/superlu!
superlu is not building correctly because of a
configuration problem: it doesn't know that BLAS is the
FORTRAN version and expects to use the included (but very
limited) C version.

The attached patch fixes the problem. I tried to PR it but
my system/gateway still has problem with that so I hope
someone just goes ahead and commit it.

cheers,

    Pedro.
PS. it would be nice to teach BLAS to use CFLAGS too :(.

__________________________________________________
Yahoo! Plus
For a better Internet experience
http://www.yahoo.co.uk/btoffer
-------------- next part --------------
diff -ruN superlu.orig/Makefile superlu/Makefile
--- superlu.orig/Makefile	Wed May  7 17:03:44 2003
+++ superlu/Makefile	Wed May  7 22:40:52 2003
@@ -17,10 +17,8 @@
 BUILD_DEPENDS=	${LOCALBASE}/lib/libblas.a:${PORTSDIR}/math/blas
 
 WRKSRC=		${WRKDIR}/SuperLU
+# Note: The Matlab interface (matlabmex) will not be built.
 ALL_TARGET=	superlulib
-#
-#	NOTE:	The Matlab interface was not built.
-#
 
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/libsuperlu.* ${PREFIX}/lib
diff -ruN superlu.orig/files/patch-aa superlu/files/patch-aa
--- superlu.orig/files/patch-aa	Wed May  7 17:03:44 2003
+++ superlu/files/patch-aa	Wed May  7 22:37:00 2003
@@ -1,6 +1,6 @@
---- make.inc.orig	Tue Feb 15 13:29:45 2000
-+++ make.inc	Sun Oct 15 18:11:48 2000
-@@ -16,14 +16,14 @@
+--- make.inc.orig	Tue Sep  3 16:02:16 2002
++++ make.inc	Wed May  7 22:35:16 2003
+@@ -16,14 +16,15 @@
  #
  #  The machine (platform) identifier to append to the library names
  #
@@ -14,11 +14,12 @@
 -SUPERLULIB   = superlu$(PLAT).a
 -BLASLIB      = ../blas$(PLAT).a
 +SUPERLULIB   = libsuperlu$(PLAT).a
++BLASDEF	     = -DUSE_VENDOR_BLAS
 +BLASLIB      = ${LOCALBASE}/lib/libblas$(PLAT).a
  
  #
  #  The archiver and the flag(s) to use when building archive (library)
-@@ -33,12 +33,12 @@
+@@ -33,12 +34,12 @@
  ARCHFLAGS    = cr
  RANLIB       = ranlib
  
@@ -37,7 +38,7 @@
  LOADOPTS     = #-xO3
  
  #
-@@ -48,4 +48,4 @@
+@@ -48,4 +49,4 @@
  #
  # The directory in which Matlab is installed
  #


More information about the freebsd-ports mailing list