Problem with CLN on Alpha

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Thu Feb 8 22:18:48 CET 2001


On Thu, 8 Feb 101 maxa at frodo.jia.czn.cz wrote:
>  I am trying to compile CLN library on an Alpha machine. Now I upgraded  the
> compiler and binutils but I am still getting a lot of undefined symbols (see
> below). Can anybody help? Was anybody able to compile cln on an Alpha machi-
> ne?

Yes, me.  No problem at all.  Actually I was extremely careful testing 
version 1.1 on any platform I could get my hands on before I released it.

>  Thanks. Best regards,
>                          Ladislav Zejda
>                          zejdaz at mbox.vol.cz
> 
> Problem:
> after running "make" I am getting:
> 
> ...
> 
> /bin/sh ../libtool --mode=link c++ -O3 -g -fno-exceptions -L/usr/local/gmp-3.1.1/lib/  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  ../src/libcln.la -lm -o exam
> mkdir .libs
> c++ -O3 -g -fno-exceptions -L/usr/local/gmp-3.1.1/lib/ 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 ../src/.libs/libcln.so -lm -o .libs/exam -Wl,--rpath -Wl,/usr/local/cln-1.1/lib
> exam.o: In function `__static_initialization_and_destruction_0':
> cln-1.1/include/cln/io.h:91: undefined reference to `_GLOBAL_$I$cl_module__cl_prin_globals__firstglobalfun'
> cln-1.1/include/cln/io.h:91: undefined reference to `_GLOBAL_$I$cl_module__cl_prin_globals__firstglobalfun'
> exam.o: In function `__static_initialization_and_destruction_0':
> cln-1.1/include/cln/random.h:36: undefined reference to `_GLOBAL_$I$cl_module__cl_random_def__firstglobalfun'
> cln-1.1/include/cln/random.h:36: undefined reference to `_GLOBAL_$I$cl_module__cl_random_def__firstglobalfun'
> exam.o: In function `__static_initialization_and_destruction_0':
> cln-1.1/include/cln/dfloat_class.h:55: undefined reference to `_GLOBAL_$I$cl_module__cl_DF_globals__firstglobalfun'
> cln-1.1/include/cln/dfloat_class.h:55: undefined reference to `_GLOBAL_$I$cl_module__cl_DF_globals__firstglobalfun'
> exam.o: In function `__static_initialization_and_destruction_0':
> 
> ... and so on
> 
> My setup (now it should be up-to-date):
> cat /proc/version
> Linux version 2.2.11 (root at zelva.jia.czn.cz) (gcc version egcs-2.91.60 19981201
> (egcs-1.1.1 release)) #46 Mon Aug 2 13:19:49 PDT 1999
> 
> cat /proc/cpuinfo
> cpu                     : Alpha
> cpu model               : EV56
> cpu variation           : 0
> cpu revision            : 0
> cpu serial number       : Linux_is_Great!
> system type             : EB164
> system variation        : SX164
> system revision         : 0
> system serial number    : MILO-0000
> cycle frequency [Hz]    : 533171648
> timer frequency [Hz]    : 1024.00
> page size [bytes]       : 8192
> phys. address bits      : 40
> max. addr. space #      : 127
> BogoMIPS                : 528.48
> kernel unaligned acc    : 7 (pc=fffffc0000449014,va=fffffc000029ef32)
> user unaligned acc      : 2009927 (pc=2000000ec70,va=20000282764)
> platform string         : N/A

FYI: Kernel doesn't matter for such things...

> g++ -v
> Reading specs from /usr/local/gcc-2.95.2/lib/gcc-lib/alphapca56-unknown-linux-gnu/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
> 
> ld -v
> GNU ld version 2.10.91 (with BFD 2.10.1.0.4)

Hmm, this setup should work fine.  Just one more question (check box): 

About *how* many undefined symbols did you get?  
[ ] about 10
[ ] about 100
[ ] about 1000

For me, the link line in your report works just fine.  You obviously have
some linker confusion.  Don't you have a local Linux guru who might help
you out with this stuff?

You could also try a static library only.

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