This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] avoid using wrong shared libraries when cross-compilingncurses-5.3


On Mon, 1 Sep 2003, Dan Kegel wrote:

> ncurses-5.3 fails on "make install" when cross-compiling
> because it runs $srcdir/shlib unconditionally.

I think the point is that not many people do cross-compiles, so the
install rules aren't much exercised in that configuration.

> Here's a log after setting -x in run_tic.sh.
> It totally notices that CC != HOSTCC, but then it
> goes and tries to use the shared libraries we just compiled
> (d'oh!):
>
> + test gcc = /opt/cegl-2.0/powerpc-750-linux-gnu/gcc-3.3.1-glibc-2.3.2/bin/powerpc-750-linux-gnu-gcc
> ...
> + ../../ncurses-5.3/misc/shlib tic -s -o /tmp/ncurses/usr/share/terminfo ../../ncurses-5.3/misc/terminfo.src
> tic: error while loading shared libraries: ../lib/libncurses.so.5: ELF file data encoding not little-endian
>
> I verified that this still happens even after applying
> all the latest incremental patches.
>
> Here's a patch that seems to fix the problem for me,
> followed by a script to reproduce the problem and the fix.
> I'm cc'ing crossgcc because I have a funny feeling the
> bug-ncurses mailing list is ignoring me because of a spam
> filter, and I wanted to get the word out about the issue.

I do recall approving your subscribe, and seeing it succeed...

-- 
T.E.Dickey <dickey@his.com>
http://invisible-island.net
ftp://invisible-island.net

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


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