Subject: pkg/13852:
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kent@goathill.org>
List: netbsd-bugs
Date: 09/01/2001 23:26:55
>Number:         13852
>Category:       pkg
>Synopsis:       
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 01 21:24:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kent Polk
>Release:        NetBSD 1.5.1
>Organization:
	
>Environment:
	
System: NetBSD tiamat 1.5.1 NetBSD 1.5.1 (GENERIC) #56: Mon Jul 2 15:54:23 CEST 2001 he@nsa.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386


>Description:
	

The misc/py-readline package (as well as devel/py-curses, devel/py-idle,
lang/py-extclass, etc.) does not support either of the two lang/python*
packages (python or python21) and attempts to build a non-existent
package.

The Makefile.inc that the py-* packages need was not updated for
lang/python, and python21 does not have a Makefile.inc

Also, editing Modules/Setup in either python package to add support
for readline does not build correctly.

cd Modules;  make OPT="-O2" VERSION="2.0"  prefix="/usr/pkg"
exec_prefix="/usr/pkg"  sharedmods
cc -fPIC  -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c ./readline.c
./readline.c:33: conflicting types for `rl_bind_key'
/usr/include/readline/readline.h:111: previous declaration of `rl_bind_key'
./readline.c:34: syntax error before `Keymap'
./readline.c:36: conflicting types for `add_history'
/usr/include/readline/readline.h:81: previous declaration of `add_history'
./readline.c:37: conflicting types for `read_history'
/usr/include/readline/readline.h:96: previous declaration of `read_history'
./readline.c:38: conflicting types for `write_history'
/usr/include/readline/readline.h:97: previous declaration of `write_history'
./readline.c: In function `flex_complete':
./readline.c:399: warning: passing arg 2 of `completion_matches' from
incompatible pointer type
./readline.c: In function `setup_readline':
./readline.c:409: warning: passing arg 2 of `rl_bind_key' from incompatible
pointer type
./readline.c:411: `emacs_meta_keymap' undeclared (first use in this function)
./readline.c:411: (Each undeclared identifier is reported only once
./readline.c:411: for each function it appears in.)
./readline.c: In function `call_readline':
./readline.c:461: warning: assignment from incompatible pointer type
*** Error code 1

>How-To-Repeat:
	

$ cd /usr/pkgsrc/misc/py-readline
$ make
tries to build an old version of python

or
$ make
<stop>
edit Modules/Setup to add readline support
$ make

cannot compile the readline module.

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:
 The readline module does not build for either python package.