This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc/glibc __cmpdi2 function?


>>>>> Philip J Mucci writes:

 > Hi all,
 > I'm dl-loading a library into a running application. This library is
 > very small, and consists of the following line that gives me trouble.

 > void bar(unsigned long long foo)
 > {
 > 	double baz = (double)foo;
 > }

 > When loading this library, I get 1 undefined reference, namely __cmpdi2. 
Did you link the library as shared library with gcc -shared (Use GCC!):

gromit:/usr/src/cvs/libc:[0]$ nm /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libgcc.a  |grep cmpdi2
_cmpdi2.o:
00000000 T __cmpdi2
         U __cmpdi2
         U __cmpdi2
         U __cmpdi2
_ucmpdi2.o:
00000000 T __ucmpdi2

 > I have nm'd about every .o, .so and .a on my system, and I'm starting to
Not every ;-)
 > believe that this function is an intrinsic. Can anyone help me out. I'm
 > not sure how to proceed. (Which is a rare case over my 10 years of Unix
 > hacking...)

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]