Ticket #479 (assigned defect)

Opened 1 year ago

Last modified 2 months ago

linbox-20070814.spkg abuses [CPP|CXX|C]FLAGS in spkg-install

Reported by: mabshoff Assigned to: mabshoff (accepted)
Priority: major Milestone: sage-3.2.2
Component: packages Keywords: LinBox
Cc: cpernet

Description

Hello,

The current LinBox? package in Sage 2.8.2 has the following assignments in spkg-install

CFLAGS="$CFLAGS -fPIC -I\"$SAGE_LOCAL/include\" -I\"$SAGE_LOCAL/include/linbox\"-L\"$SAGE_LOCAL/lib\""
CXXFLAGS="$CXXFLAGS -fPIC -I\"$SAGE_LOCAL/include\" -I\"$SAGE_LOCAL/include/linbox\"  -L\"$SAGE_LOCAL/lib\""
CPPFLAGS="$CPPFLAGS  -I\"$SAGE_LOCAL/include/linbox\" -I\"$SAGE_LOCAL\"/include"

but uses the configure with the following options:

./configure --prefix="$SAGE_LOCAL" --with-givaro="$SAGE_LOCAL" --with-gmp="$SAGE_LOCAL" --with-ntl="$SAGE_LOCAL" $OPS --with-blas="$LINBOX_BLAS"

This is due to a bug in LinBox? where for exmaple GMP_CFLAGS is not propagated down into the Makefiles (via Makefile.am). I have fixed this for the GMP and I assume that it is the same fix for NTL and Givaro. The GMP fix already made it into LinBox?-20070814.spkg and I did verify on my systems that the right gmp selected during configure is also linked against. Once I have made the fixes for NTL and Givaro I will push those fixes toward LinBox? upstream.

Cheers,

Michael

I

Change History

08/22/2007 12:36:56 PM changed by mabshoff

  • status changed from new to assigned.

08/16/2008 05:04:40 PM changed by malb

  • cc set to cpernet.

Just to confirm that this bug is still around, CCing Clément :-)

09/26/2008 02:06:03 AM changed by mabshoff

Well, this should be trivial to fix. Any takers?

Cheers,

Michael