Patch: edits for gcc 3.4.2 / Fedora core 3

Rene van Paassen <[email protected]> Fri, 26 Nov 2004 15:23:14 +0100
Newsgroups gmane.comp.lib.mtl.devel
Organization Delft University of Technology, Aerospace Engineering
Message-ID <[email protected]>
Well, 

I needed mtl to run on FC3, and to my big surprise it broke down quite
badly. I spent a few hours fixing things, basically editing to get
everything to compile well under GCC 3.4.2.

No guarantees, it was so much I did not take the trouble to understand
what exactly I was doing, have just been hacking away. 

On the other hand, I successfully ran the tests on my aging laptop (PII
366) with the 

make test QUICK=-p 

option, which ran successfully. 

Attached are:

1 - a patch, which fixes the C++ issues (no guarantee on backwards
compatibility however), and one issue with the mtl2lapack interface
(reported on that one earlier)

2 - a .spec file for fedora 3

-- 
M.M. (RenĂ©) van Paassen                    [email protected]
Assistant Professor                                tel. +31 15 278 5370
Faculty of Aerospace Engineering                   fax. +31 15 278 6480
Kluijverweg 1, NL-2629 HS  Delft         Delft University of Technology 
         >>>>>>>>>>>> http://www.cs.lr.tudelft.nl <<<<<<<<<<<<

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
mtl-gcc34.patch.gz (application/x-gzip, 4.8 KB) - not displayed
mtl.spec (text/plain, 1.1 KB)
Prefix: /usr
Name: mtl
Summary: Matrix Template Library
Version: 2.1.2.21
Release: 2
Source0: mtl-2.1.2-21.tar.gz
Source1: mtl_reference.tar.gz
Patch0: mtl-gcc34.patch
Group: Development
BuildRoot: /var/tmp/%{name}-buildroot
Copyright: Artistic
BuildArch: noarch
Requires: blas, lapack

%description
MTL is a template-based library for linear algebra

%prep
rm -rf $RPM_BUILD_ROOT



%setup -q -T -D -b 1 -n mtl_reference
%setup -q -n mtl-2.1.2-21
%patch0 -p1

%build
./configure --prefix=$RPM_BUILD_ROOT%{prefix} --enable-exceptions --with-lapack

%install
make install DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
	$RPM_BUILD_DIR/file.list.%{name}

find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
	-e '/\/config\//s|^|%config|' >> \
	$RPM_BUILD_DIR/file.list.%{name}

find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
	$RPM_BUILD_DIR/file.list.%{name}

#echo "%docdir %{prefix}/doc/kde" >> $RPM_BUILD_DIR/file.list.%{name}


%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name}

%files -f ../file.list.%{name}
%doc $RPM_BUILD_DIR/mtl_reference
%doc LICENSE
%doc contrib/examples