Subject: pkg/16949: build of www/lynx-current fails due to conflicting types for `ttytype'
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 05/22/2002 10:51:18
>Number: 16949
>Category: pkg
>Synopsis: build of www/lynx-current fails due to conflicting types for `ttytype'
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 21 17:52:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Grant Beattie
>Release: NetBSD 1.5.2, pkgsrc from 20020521
>Organization:
>Environment:
System: NetBSD redback 1.5.2 NetBSD 1.5.2 (GENERIC) #0: Mon Oct 1 23:46:03 EST 2001 grant@redback:/usr/src/sys/arch/sparc/compile/GENERIC sparc
>Description:
with LYNX_SCREEN_LIB unset, =slang or =curses, lynx-2.8.5.0.7 fails to
build with pkgsrc ncurses installed, due to `ttytype' being declared in both
${PREFIX}/include/term.h and /usr/include/curses.h
>How-To-Repeat:
cd pkgsrc/www/lynx-current
make
[...]
cc -DHAVE_CONFIG_H -I/usr/tmp/www/lynx-current/work.sparc/.buildlink/include -I/usr/pkg/include -I../../.. -I../../../src -I../../.. -I../../../src -I../../../WWW/Library/Implementation -I/usr/tmp/www/lynx-current/work.sparc/.buildlink/include -O2 -I../../../WWW/Library/Implementation/ -DXMOSAIC_HACK -DACCESS_AUTH -c ../../../WWW/Library/Implementation/HTAccess.c
In file included from ../../../src/LYCurses.h:211,
from ../../../src/LYKeymap.h:6,
from ../../../src/LYUtils.h:5,
from ../../../WWW/Library/Implementation/HTAccess.c:64:
/usr/pkg/include/term.h:767: conflicting types for `ttytype'
/usr/include/curses.h:345: previous declaration of `ttytype'
gmake[1]: *** [HTAccess.o] Error 1
gmake[1]: Leaving directory `/usr/tmp/www/lynx-current/work.sparc/lynx2-8-5/WWW/Library/Implementation'
gmake: *** [all] Error 2
*** Error code 2
>Fix:
workaround:
set LYNX_SCREEN_LIB=ncurses
>Release-Note:
>Audit-Trail:
>Unformatted: