cln?

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Thu Nov 22 14:58:23 CET 2001


On Thu, 22 Nov 2001 keith.briggs at bt.com wrote:
> I wanted to install ginac1 so I had to upgrade my cln to the latest version
> (I used older version ok).    But it would not compile on my redhat6 system.
> (see the attachment)
> Any ideas?   I know you are not the cln authors, but maybe you have 
> experience with this.
>
[...]
> mkdir .libs
> c++ -O exam.o exam_I.o exam_RA.o exam_SF.o exam_FF.o exam_DF.o exam_LF.o exam_I_gcd.o exam_I_sqrtp.o -o .libs/exam  ../src/ .libs/libcln.so -lm -Wl,--rpath -Wl,/usr/local/lib
> exam_I.o: In function `test_integer_plus(void)':
> exam_I.o(.text+0xc1): undefined reference to `default_print_flags'
> exam_I.o(.text+0xf0): undefined reference to `default_print_flags'
> exam_I.o: In function `test_integer_minus(void)':
> exam_I.o(.text+0x30a): undefined reference to `default_print_flags'
> exam_I.o(.text+0x339): undefined reference to `default_print_flags'
> exam_I.o: In function `test_integer_mul(void)':
> exam_I.o(.text+0x54a): undefined reference to `default_print_flags'
> exam_I.o(.text+0x579): more undefined references to `default_print_flags' follow
> ../src/.libs/libcln.so: undefined reference to `cl_class_gvector_integer'
> ../src/.libs/libcln.so: undefined reference to `__gmpn_add_n'
> ../src/.libs/libcln.so: undefined reference to `__gmpn_addmul_1'
[...]

My guess is that the build-process was screwed by some improper
reconfiguration.  Observe that the symbol `__gmpn_add_n' should have been
provided by GMP, but there is no -lgmp on the compiler command line.  The
other missing symbols are probably explained also by some mishap while
reconfiguring.  Please delete everything, unpack again, configure, make,
make check, make install in that order.  Does this help?

Please set optimization to `-O', `-O1', `-O2' or maybe `-O2 
-fno-exceptions' but *never* to `-O0' or `-O3' while compiling the library
proper.  The latter two do not work with the automatic module ordering
scheme.  Though it appears that you set `-O', which should be okay.

Regards
    -richy.
-- 
Richard Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>





More information about the GiNaC-devel mailing list