bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] avoid using wrong shared libraries when cross-compiling ncur


From: Thomas Dickey
Subject: Re: [patch] avoid using wrong shared libraries when cross-compiling ncurses-5.3
Date: Mon, 1 Sep 2003 18:22:18 -0400 (EDT)

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 <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]