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]

patched ncurses-5.3 build failure (was: Re: broken ncurses patch found in http://sources.redhat.com/ml/crossgcc/2003-09/msg00009.html)


Hi Dan;

  Thank you for your help.  I'm much closer now.  Now there are Ada sample 
file compilation errors in the ncurses build, perhaps due to a patch error 
(?) So hopefully some response from the ncurses subscribers soon about what I 
did wrong.

Thanks,
Ken

On Thursday 30 October 2003 12:59, Dan Kegel wrote:
> Wolcott, Ken (MED, Compuware) wrote:
> >   I looked (I think I looked real carefully) at
> > http://sources.redhat.com/ml/crossgcc/2003-09/msg00009.html
> > and I copied out run_tic.sh and run_tic.patch from it.  The problem is
> > that the patch is incomplete (else clause has no contents).
>
> Well, turns out you don't need the run_tic stuff from my message,
> as the maintainer incorporated it into his newest patch.
>
> You might want to read ftp://invisible-island.net/ncurses/5.3/README
> and cruise through the ncurses mailing list archives a bit for culture.
>
> Then grab his latest rollup patch and apply it to a clean ncurses-5.3 tree.
>
> Here's a quickie update of the script I posted reflecting the above.
> I haven't tested it, but it oughtta be close.
> - Dan
>
>
> #!/bin/sh
> set -x
> set -e
>
> TARGET=powerpc-750-linux-gnu
> CROSSBIN=/opt/cegl-2.0/${TARGET}/gcc-3.3.1-glibc-2.3.2/bin
>
> CROSS=$CROSSBIN/${TARGET}-
>
> # If you uncomment the following, you don't need to override CC, CXX, AR,
> LD, RANLIB below # because autoconf will look for each tool with a
> ${TARGET}- prefix #PATH="$PATH":$CROSSBIN
> #export PATH
>
> # Fetch ncurses and rollup patch (patch needed to cross-compile!)
> wget -c ftp://invisible-island.net/ncurses/ncurses-5.3.tar.gz
> wget -c ftp://invisible-island.net/ncurses/5.3/patch-5.3-20031004.sh
>
> # Patch
> rm -rf ncurses-5.3
> tar -xzvf ncurses-5.3.tar.gz
> cd ncurses-5.3
> sh ../patch-5.3-20031004.sh
>
> # Configure and build
> rm -rf ncurses-demo
> mkdir ncurses-demo
> cd ncurses-demo
> # Note: in previous releases, had to specify --target.  Now it's --host for
> some reason. ../ncurses-5.3/configure BUILD_CC=gcc CC=${CROSS}gcc
> CXX=${CROSS}g++ AR=${CROSS}ar LD=${CROSS}ld RANLIB=${CROSS}ranlib
> --host=$TARGET --with-shared make
>
> # Install, as if /tmp/ncurses was the root directory of our target system
> image rm -rf /tmp/ncurses
> mkdir /tmp/ncurses
> make DESTDIR=/tmp/ncurses install
> - Dan

------
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]