[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GMP problems



I have found out why CLN don't have any RPMs yet... =P

I have tried building it in several boxes and have had no success with the
tests/checks, I have tried smoothing some things out but don't want to waste
any more time with CLN. Hope other people have had better luck!

Here are some snips of the errors I'm getting:

../src/.libs/libcln.so: undefined reference to `_GLOBAL_.I.cl_module__cl_C_ring__firstglobalfun'
../src/.libs/libcln.so: undefined reference to `_GLOBAL_.I.cl_module__cl_I_ring__firstglobalfun'
collect2: ld returned 1 exit status
make[1]: *** [exam] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/cln-1.0.3/tests'

I have included a proposed RPM spec for it (and one for Dr Genius, although
I think it already has one... hehehe...)


					Roberto


* Roberto Machorro (Xink) (rmach@ciberlinux.net) garabateo:
> I'll post an RPM spec file for CLN this afternoon to the list (I'll also
> mailit to haible if he cares for it). I dowloaded version 1.0.3.
> 
> 				Roberto
> 
> 
> * George (jirka@5z.com) garabateo:
> > On Thu, May 25, 2000 at 11:50:22AM +0200, Laurent Gauthier wrote:
> > > I've received a similar report from a friend who is testing Dr. Genius.  He
> > > also sent me a patch, so I'll check with George if the patch is ok, and it
> > > will be integrated.
> > 
> > Hopefully I will get to finish the cln port soon and then gmp will be no
> > more.  (In favour of CLN which doesn't even have RPMs yet :)
> > 
> > George
> > 
> > -- 
> > George <jirka@5z.com>
> >    Religion is what keeps the poor from murdering the rich.
> >                        -- Napoleon
> 
Summary: Class Library for Numbers
Name: cln
Version: 1.0.3
Release: 1
Copyright: GPL
Group: System Environment/Libraries
Source: cln-1.0.3.tar.gz
URL: http://clisp.cons.org/~haible/packages-cln.html
BuildRoot: /tmp/cln-root

%description
A GPLed collection of math classes and functions, that will bring
efficiency, type safety, algebraic syntax to everyone in a memory
and speed efficient library.

%package devel
Summary: Development files for programs using the CLN library
Group: Development/Libraries
Requires: cln = %{PACKAGE_VERSION}

%description devel
This package is necessary if you wish to develop software based on
the CLN library.

%prep
%setup

%build
# Needed to include -I/usr/include/g++ 'cause %$#%$ configure
# does not detect where iostream.h is...
CXXFLAGS="$RPM_OPT_FLAGS -I/usr/include/g++" CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --enable-shared
make
make check

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr install
du -k $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc COPYING ChangeLog FILES NEWS README TODO*
/usr/info/*.*
/usr/lib/lib*.so.1
/usr/lib/lib*.so.1.0.3

%files devel
%defattr(-, root, root)
%doc examples
/usr/include/*.h
/usr/lib/lib*.a
/usr/lib/lib*.la
/usr/lib/lib*.so
Summary: Genius Calculator
Name: drgenius
Version: 0.5.6
Release: 1
Copyright: GPL
Group: Applications/Engineering
Source: drgenius-0.5.6.tar.gz
Requires: gmp >= 3.0.1
URL: http://www.seul.org/edu/
BuildRoot: /tmp/drgenius-root

%description
Features of Genius:
 - language is very close to real mathematical notation
 - arbitrary precision integers (2-36), multiple precision floats
 - uses rationals when possible
 - will calculate and show half calculated expressions if the
	calculation could not be completed
 - variables
 - user functions
 - variable and function references with C like syntax
 - anonymous functions
 - matrix support
 - complex numbers
 - modular arithmetic
 - more ...

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
make

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr install
du -k $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README TODO
/usr/*