Problem compiling with cross compiler on x86_64

Dan Kegel dank@kegel.com
Mon Jan 30 16:03:00 GMT 2006


On 1/29/06, Manish Katiyar <mkatiyar@gmail.com> wrote:
>     I am compiling a C program using cross compiler built for x86_64
> machine on a 32 bit SLES machine. ...

How did you build your cross-compiler?

> /blddir/krb514/export/x86_linux_2/usr/lib/64/libkrb5.so: undefined
> reference to `__ctype_tolower_loc'

Sounds like you're trying to link code you compiled
with code somebody else compiled.  When you do this,
you have to be very careful to use matching glibc versions.

So... what version of gcc and glibc is your crosscompiler?
And what version of gcc and glibc were used to build the libkrb5.so
you're trying to link to?

Can you come up with a minimal test case -- maybe a five line C program
and the commandline needed to reproduce the problem -- and post it?

Finally, you should become familiar with nm as a tool for investigating this
kind of problem.  See e.g.
http://openacs.org/forums/message-view?message_id=188815
which shows using nm to spelunk a bit.
- Dan
--
Wine for Windows ISVs: http://kegel.com/wine/isv

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org



More information about the crossgcc mailing list