From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2328 Path: news.gmane.org!.POSTED!not-for-mail From: Guillermo Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: nosh build problems (Re: Compatibilities between runit and s6 (re: ) Date: Tue, 16 Jan 2018 22:26:16 -0300 Message-ID: References: <20180115135320.43c0dd84@kadisius> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1516152260 11260 195.159.176.226 (17 Jan 2018 01:24:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Jan 2018 01:24:20 +0000 (UTC) To: Supervision Original-X-From: supervision-return-1919-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jan 17 02:24:16 2018 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ebcSd-0002XN-MO for gcsg-supervision@m.gmane.org; Wed, 17 Jan 2018 02:24:15 +0100 Original-Received: (qmail 21372 invoked by uid 89); 17 Jan 2018 01:26:45 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21365 invoked from network); 17 Jan 2018 01:26:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=oTVkiXHeT6QsoCaFFpxO15PkApJsQMO8c7XPZVgtFF0=; b=jwYrGwTB/XxUmOcIb4a0bQMcDbgAdVKhLrK8bmE0dLQNPKFY6BJrvkjvLyTsxGs+fy UM2Lhfjy5VMBYcGq+CFhe8uJOGzYELjw67hKcaqu0QLHCiQN9pLYIkGJYAY8kmHEPH3i NG998pHxT5UQqKERgBfKfi7G0jDM4Eb11ZKp+wKu0fqXrynsyx9k4bJxpkr56D54moUy PsJJnMPTvfClmWHGPFIH/BwPz8WeNWx7YZcJXDnz2cNsOkng5AIcJnim57sxzjTVz/fP el1Sfqd/jembK0wgKr9ovmcuqKHtWZKHOyGP/+rIOP4sYkaHNezwhkF7u8rLV7nplcRZ /YXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=oTVkiXHeT6QsoCaFFpxO15PkApJsQMO8c7XPZVgtFF0=; b=jbh/98uBKpEhA/Odyhzcw/WNDY8S0JkW/J6QGq+AGEwov677Amy9h4RKrvcjndzuhy ggk3952nT3vRmHlppL72BfIc3IXA+4C5BpBYE4T4PLLaTTtWqFiia6/4jQg6BNHXfkc2 5Ca91nJ4TMkt/UeB2PNNIcMYdiNDYvFfZ70DFkcFd0xvUQsuExzpPlvs8G0LXOB2oq+P qbJe3pZpDeO450S285sTDpe40ZTh4NZtYM0FpdXNquvAnaBHBkqGS2yVSXkpS/iO8SwR w6DG0Ymw/cDWFKRYlt/+4cwTQm0nq7rvKa/Zn4tHqXbR0aARO3fypOcRx4s7x9ESieUP C56Q== X-Gm-Message-State: AKwxytde556R5SczAj1+1MXzJ0u025oAQnZHXVmsQWp4wzqQVhFVMmiv e/dTwixscgSXHuUfCG0F90TFlLxyYv1/yk6VUs4= X-Google-Smtp-Source: ACJfBos6KmL9G9+cOJ7OHlF2ZzIVEe3an1BglNxj8N4fzRWDojhhXawi2e/9sB4fYAUxJwOwursq/B/wGGu1Bk/lDEc= X-Received: by 10.36.230.3 with SMTP id e3mr10574243ith.99.1516152376921; Tue, 16 Jan 2018 17:26:16 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2328 Archived-At: 2018-01-16 17:51 GMT-03:00 Jonathan de Boyne Pollard: > > Charlie Brady: > >> /usr/include/curses.h:843:31: error: initializing argument 1 of 'char* >> tigetstr(char*)' [-fpermissive] >> >> service-status.cpp:148:21: error: invalid conversion from 'const char*' to >> 'char*' [-fpermissive] >> s = tigetstr(setaf); > > This is a problem that I thought was confined to OpenBSD, and its > not-|const|-correct ncurses library. Certainly this has never been a > problem on Debian nor on FreeBSD, and M. Caravia did not report any lack of > |const|-correctness on Arch Linux. Neither has been a problem on Gentoo. However... > What does line 843 of your > |/usr/include/curses.h| actually say? Because that's not the location of > that function declaration in that header in either Dickey ncurses or Acton > pdcurses as far as I can see. So what curses are you actually using? Dickey ncurses' 'configure' script has options --enable-const and --disable-const. When ncurses is built with --disable-const, tigetstr()'s parameter has type char *, when built with --enable-const, it has type const char *. When neither is specified, default is --disable-const for ncurses 5, and --enable-const for ncurses 6. On my computer: $ grep -E '(define NCURSES_CONST|tigetstr)' /usr/include/curses.h #define NCURSES_CONST const extern NCURSES_EXPORT(char *) tigetstr (NCURSES_CONST char *); /* implemented */ I can't check what is the case for CentOS, asuming it ships Dickey ncurses, but I could bet... G.