From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1185 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: links to some info/sources (Heirloom, pcc, ncurses)? Date: Mon, 18 Jun 2012 18:00:27 -0700 Message-ID: <20120618180027.57746bf7@newbook> References: <20120618163135.GV17860@port70.net> <20120618164136.GE163@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340067655 5882 80.91.229.3 (19 Jun 2012 01:00:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 01:00:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1186-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 19 03:00:52 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SgmoK-00007v-JK for gllmg-musl@plane.gmane.org; Tue, 19 Jun 2012 03:00:48 +0200 Original-Received: (qmail 24220 invoked by uid 550); 19 Jun 2012 01:00:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24209 invoked from network); 19 Jun 2012 01:00:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=Qyay9PCtpBnXAtAGSww2fPK8JArjeMVBRkH7bpXgve5kDlgXMna1u/o9X02D0STvXxG/DMk34BOjogVTciKo/I7I3tFUBG1abosqi6lITnF1RcH92ZzInjR517SvKlKLAtfxjs+JTMKZYSndUh0H1b0WFGOLE+w92KuduKNQmFQ=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20120618164136.GE163@brightrain.aerifal.cx> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:1185 Archived-At: On Mon, 18 Jun 2012 12:41:36 -0400 Rich Felker wrote: > On Mon, Jun 18, 2012 at 06:31:35PM +0200, Szabolcs Nagy wrote: > > > The second question was regarding ncurses. Some utilities in > > > Heirloom require curses but I fail to build it for musl - but it > > > seems to be in Sabotage. Are there any good patches/tricks around > > > to get it to build? I used this patch (not sure if still needed): === diff -ur ncurses-5.9/ncurses/SigAction.h ncurses-5.9-d/ncurses/SigAction.h --- ncurses-5.9/ncurses/SigAction.h 2005-08-06 13:05:32.000000000 -0700 +++ ncurses-5.9-d/ncurses/SigAction.h 2012-04-03 16:32:56.841630774 -0700 @@ -49,6 +49,8 @@ #define HAVE_SIGVEC 0 #endif +#include + #if HAVE_SIGACTION #if !HAVE_TYPE_SIGACTION === and these configure options: CC=musl-gcc CFLAGS="-fno-stack-protector -Os -D_GNU_SOURCE" ./configure --prefix=${PREFIX} --without-cxx --with-fallbacks=xterm #forgot to add --enable-widec (see github.com/idunham/src-musl if you'd like to see my full build scripts...really, it ended up looking a lot like a pkgbuild, but somewhat more awkward) > Indeed, it's worked for a long time, but you need to disable the C++ > interfaces if you don't have a working C++ toolchain. I don't think > the configure script does this by default. Actually ncurses has A LOT > of broken options by default which you need to fix when running > configure; for instance, it does not support UTF-8 unless you use > --enable-wide or something like that. I've always used CXX=false for stuff like this... The --enable-wide is because for some reason, using wchar_t instead of char breaks the ABI. > > for heirloom i needed minor hacks like > > > > echo '#include ' >include/curses.h > > echo '#include ' >include/term.h AKA: CPPFLAGS += -I${sysincdir}/ncurses CFLAGS += ${CPPFLAGS} # if the makefile ignores CPPFLAGS > This is another issue: the installation paths and filenames. I don't > know the right option to make ncurses install itself as the default > curses library... It doesn't seem to allow installing $sysincdir/curses.h FYI: pdcurses may also be an option. Isaac Dunham