[Top][All Lists]

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

Re: [PATCH] cygwin sharedlib build fixes, terminfo

From: Thomas Dickey
Subject: Re: [PATCH] cygwin sharedlib build fixes, terminfo
Date: Sat, 2 Aug 2003 18:20:13 -0400
User-agent: Mutt/1.3.27i

On Thu, Jul 31, 2003 at 05:24:55PM -0400, Charles Wilson wrote:
> I rebuilt ncurses using the official patchsets from the website (thru 
> the 20030726 patch).  Thanks for incorporating the cygwin fixes.
> Nicholas Wourms then sent me some helpful additions for building with 
> libtool on cygwin.  I reworked them so they don't break non-libtool 
> builds...
> Now, these changes to ncurses are sufficient to build it shared on 
> cygwin -- provided
>   1) you get a bugfix for libtool itself...
>   2) you get a bugfix for the libtool-wrapper on cygwin
> So, my most recent "official" release of ncurses-for-cygwin was built 
> from sources that have these patches -- BUT I built non-libtool.
> So, I'm *sure* these patches don't break non-libtool.  However, I was 
> forced to make some changes to aclocal.m4 -- which means that you need 
> to run autoconf (I used dickey.his.com/20020210 version).  I did not 
> include the patch to configure; it was far too big.  Just run autoconf 
> after applying these patches.
> Hope you find these changes useful -- many of them are necessary not 
> solely for cygwin, but for libtool-1.5 on any platform.

hmm - I won't finish this one today: spent a couple of hours building up
the libtool 1.5 configuration, but it doesn't handle the c++ install
(Slackware 7.1, egcs 2.91.66).

Here's the end of the log, fyi:

compiling cursesmain (obj_lo)
 /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
-D_GNU_SOURCE -DXTSTRINGDEFINES -DNDEBUG -g -O2 -c ../c++/cursesmain.cc  -fPIC 
-DPIC -o .libs/cursesmain.o
 /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
-D_GNU_SOURCE -DXTSTRINGDEFINES -DNDEBUG -g -O2 -c ../c++/cursesmain.cc -o 
cursesmain.o >/dev/null 2>&1
cd ../lib && /usr/local/TEST/libtool-1.5/bin/libtool --tag=CXX --mode=link 
/usr/bin/g++ -o libncurses++.la ../obj_lo/cursesf.lo ../obj_lo/cursesm.lo 
../obj_lo/cursesw.lo ../obj_lo/cursespad.lo ../obj_lo/cursesp.lo 
../obj_lo/cursslk.lo ../obj_lo/cursesapp.lo ../obj_lo/cursesmain.lo \
        -rpath /usr/lib \
        -version-info 5:3 -no-undefined \
        -L../lib -lform -lmenu -lpanel -lncurses 
g++ -shared -nostdlib /usr/lib/crti.o 
../obj_lo/.libs/cursesf.o ../obj_lo/.libs/cursesm.o ../obj_lo/.libs/cursesw.o 
../obj_lo/.libs/cursespad.o ../obj_lo/.libs/cursesp.o ../obj_lo/.libs/cursslk.o 
../obj_lo/.libs/cursesapp.o ../obj_lo/.libs/cursesmain.o  -Wl,--rpath 
-Wl,/usr/build/ncurses/ncurses-5.3-20030802/lib/.libs -Wl,--rpath 
-Wl,/tmp/FOO/usr/lib -L/usr/build/ncurses/ncurses-5.3-20030802/lib/.libs 
-L/usr/i386-slackware-linux/lib -lstdc++ -lm -lc -lgcc 
/usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/crtendS.o /usr/lib/crtn.o  
-Wl,-soname -Wl,libncurses++.so.5 -o .libs/libncurses++.so.5.0.3
(cd .libs && rm -f libncurses++.so.5 && ln -s libncurses++.so.5.0.3 
(cd .libs && rm -f libncurses++.so && ln -s libncurses++.so.5.0.3 
ar cru .libs/libncurses++.a  ../obj_lo/cursesf.o ../obj_lo/cursesm.o 
../obj_lo/cursesw.o ../obj_lo/cursespad.o ../obj_lo/cursesp.o 
../obj_lo/cursslk.o ../obj_lo/cursesapp.o ../obj_lo/cursesmain.o
ranlib .libs/libncurses++.a
creating libncurses++.la
(cd .libs && rm -f libncurses++.la && ln -s ../libncurses++.la libncurses++.la)
/usr/local/TEST/libtool-1.5/bin/libtool --tag=CXX --mode=install  
/usr/bin/ginstall -c ../lib/libncurses++.la /tmp/FOO/usr/lib/libncurses++.la
libtool: install: warning: relinking `../lib/libncurses++.la'
(cd /usr/build/ncurses/ncurses-5.3-20030802/lib; /bin/sh 
/usr/local/TEST/libtool-1.5/bin/libtool --mode=relink /usr/bin/g++ -o 
libncurses++.la ../obj_lo/cursesf.lo ../obj_lo/cursesm.lo ../obj_lo/cursesw.lo 
../obj_lo/cursespad.lo ../obj_lo/cursesp.lo ../obj_lo/cursslk.lo 
../obj_lo/cursesapp.lo ../obj_lo/cursesmain.lo -rpath /usr/lib -version-info 
5:3 -no-undefined -L../lib -lform -lmenu -lpanel -lncurses -inst-prefix-dir 
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
libtool: install: error: relink `../lib/libncurses++.la' with the above command 
before installing it
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/build/ncurses/ncurses-5.3-20030802/c++'
make: *** [install] Error 2

Thomas E. Dickey <address@hidden>

reply via email to

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