NetBSD Problem Report #10656

Received: (qmail 26504 invoked from network); 22 Jul 2000 16:21:23 -0000
Message-Id: <200007221621.SAA27075@azenomei.knuffel.net>
Date: Sat, 22 Jul 2000 18:21:12 +0200 (CEST)
From: rhialto@polderland.nl
Reply-To: rhialto@polderland.nl
To: gnats-bugs@gnats.netbsd.org
Subject: mail/mutt does not detect color capability
X-Send-Pr-Version: 3.95

>Number:         10656
>Category:       pkg
>Synopsis:       mail/mutt does not detect color capability
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 22 16:22:01 +0000 2000
>Closed-Date:    Thu May 03 11:35:30 +0000 2001
>Last-Modified:  Thu May 03 11:35:30 +0000 2001
>Originator:     Rhialto
>Release:        pkgsrc supped 22 july 2000
>Organization:

>Environment:

System: NetBSD azenomei.falu.nl 1.4.1 NetBSD 1.4.1 (AZENOMEI) #27: Wed Jun 14 01:41:57 CEST 2000 rhialto@azenomei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI alpha


>Description:
	I upgrated mutt to the current version in pkgsrc (1.2.4).  The
	new version did not recognise the "color" commands in my
	.muttrc, one of which is

color header red default Subject:

	This was because the configure process did not detect
	that ncurses can do colour (and default colour). In fact it
	does, because manually setting HAVE_COLOR and
	HAVE_USE_DEFAULT_COLORS in the generated config.h does not break
	compilation, and my existing config file works again.

	configure.log reveals:

configure:2314: checking for start_color declaration
configure:2328: cc -c -O2  -I/usr/pkg/include conftest.c 1>&5
configure:2341: cc -c -O2  -I/usr/pkg/include conftest.c 1>&5
configure: In function `main':
configure:2336: `start_color' undeclared (first use in this function)
configure:2336: (Each undeclared identifier is reported only once
configure:2336: for each function it appears in.)
configure: failed program was:
#line 2332 "configure"
#include "confdefs.h"
#include (curses.h)
int main() {
#ifndef start_color
int     (*p)() = start_color;
#endif
; return 0; }

	It looks like that should be #include (ncurses.h) instead of
	#include (curses.h) in all occurrences in configure. Ideally,
	since configure first checks for the existance of (ncurses.h),
	this should depend on that.  This automagically also turns on
	HAVE_USE_DEFAULT_COLORS and some other related #defines.

	(incude syntax changed to prevend send-pr from stripping
	text between angle brackets)


>How-To-Repeat:

>Fix:

	I think previous versions of the pkg used libslang instead of
	ncurses. This could count as a workaround for the real problem
	(configure being broken).

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@polder   -- Ah only did well at school
\X/ land.nl      -- tae git intae an O level class tae git away fae Begbie.
>Release-Note:
>Audit-Trail:

From: rhialto@polderland.nl
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pkg/10656: mail/mutt does not detect color capability
Date: Sat, 22 Jul 2000 18:21:12 +0200 (CEST)

 >Number:         10656
 >Category:       pkg
 >Synopsis:       mail/mutt does not detect color capability
 >Confidential:   no
 >Severity:       non-critical
 >Priority:       medium
 >Responsible:    pkg-manager
 >State:          open
 >Class:          sw-bug
 >Submitter-Id:   net
 >Arrival-Date:   Sat Jul 22 09:22:01 PDT 2000
 >Closed-Date:
 >Last-Modified:
 >Originator:     Rhialto
 >Release:        pkgsrc supped 22 july 2000 <NetBSD-current source date>
 >Organization:

 >Environment:

 System: NetBSD azenomei.falu.nl 1.4.1 NetBSD 1.4.1 (AZENOMEI) #27: Wed Jun 14 01:41:57 CEST 2000 rhialto@azenomei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI alpha


 >Description:
         I upgrated mutt to the current version in pkgsrc (1.2.4).  The
         new version did not recognise the "color" commands in my
         .muttrc, one of which is

 color header red default Subject:

         This was because the configure process did not detect
         that ncurses can do colour (and default colour). In fact it
         does, because manually setting HAVE_COLOR and
         HAVE_USE_DEFAULT_COLORS in the generated config.h does not break
         compilation, and my existing config file works again.

         configure.log reveals:

 configure:2314: checking for start_color declaration
 configure:2328: cc -c -O2  -I/usr/pkg/include conftest.c 1>&5
 configure:2341: cc -c -O2  -I/usr/pkg/include conftest.c 1>&5
 configure: In function `main':
 configure:2336: `start_color' undeclared (first use in this function)
 configure:2336: (Each undeclared identifier is reported only once
 configure:2336: for each function it appears in.)
 configure: failed program was:
 #line 2332 "configure"
 #include "confdefs.h"
 #include (curses.h)
 int main() {
 #ifndef start_color
 int     (*p)() = start_color;
 #endif
 ; return 0; }

         It looks like that should be #include (ncurses.h) instead of
         #include (curses.h) in all occurrences in configure. Ideally,
         since configure first checks for the existance of (ncurses.h),
         this should depend on that.  This automagically also turns on
         HAVE_USE_DEFAULT_COLORS and some other related #defines.

         (incude syntax changed to prevend send-pr from stripping
         text between angle brackets)


 >How-To-Repeat:

 >Fix:

         I think previous versions of the pkg used libslang instead of
         ncurses. This could count as a workaround for the real problem
         (configure being broken).

 -Olaf.
 -- 
 ___ Olaf 'Rhialto' Seibert - rhialto@polder   -- Ah only did well at school
 \X/ land.nl      -- tae git intae an O level class tae git away fae Begbie.
 >Release-Note:
 >Audit-Trail:
 >Unformatted:



From: Olaf Seibert <rhialto@polderland.nl>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: pkg/10656: mail/mutt does not detect color capability
Date: Tue, 19 Sep 2000 01:42:07 +0200

 This issue is still current with the next version of this pkg (1.2.5).

From: collver@linuxfreemail.com
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: re: pkg/10656
Date: Sun, 29 Apr 2001 18:52:46 -0700

 I just tried mutt-unstable from current pkgsrc and it is using colors fine.
 It is linked against BSD curses.  Maybe this PR should be closed?

 Ben
 -- 
 "And the geek shall inherit the earth."
State-Changed-From-To: open->closed 
State-Changed-By: agc 
State-Changed-When: Thu May 3 04:34:32 PDT 2001 
State-Changed-Why:  
submitter requested that the PR be closed. 

Thanks for the PR. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.