Subject: Re: pkg/12675: "bash" package can't be build on NetBSD 1.5 system
To: None <>
From: John Darrow <>
List: netbsd-bugs
Date: 04/15/2001 23:06:56
Matthias Scheler <> wrote:
>>Number:         12675
>>Category:       pkg
>>Synopsis:       "bash" package can't be build on NetBSD 1.5 system

>Building version 2.05 of the "bash" package fails on a system with NetBSD 1.5
>from the release branch:
>===> Building for bash-2.05
>rm -f bracecomp.o
>cc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i386"' -DCONF_OSTYPE='"netbsd"' -DCONF_MACHTYPE='"i386--netbsd"' -DCONF_VENDOR='""' -DSHELL  -DHAVE_CONFIG_H  -I/usr/pkg/include -I.  -I. -I./include -I./lib -I/usr/pkg/include -O2 -c bracecomp.c
>bracecomp.c: In function `bash_brace_completion':
>bracecomp.c:174: `rl_compignore_func_t' undeclared (first use in this function)
[many other undeclared types...]
>*** Error code 1
>Building the package on a NetBSD-current (1.5U) system works fine.
>cd pkgsrc/shell/bash2

I'm gonna bet you've got the readline package installed on your 1.5.1_BETA
system, and not on your 1.5U system.

Because of the first -I/usr/pkg/include, the #include <readline/readline.h>
in bracecomp.c picks up the readline.h in /usr/pkg/include/readline,
instead of the one in ./lib/readline.  The former doesn't include the
new rltypedefs.h file which defines all of the types in question.

As a workaround, try moving /usr/pkg/include/readline out of the way
temporarily.  I got a successful (e.g. I was able to run bash and execute
some commands, including stuff with brace expansion) build of bash 2.05
by doing this.

A more permanent solution is needed, either updating the readline
package and making bash depend on it, or figuring out some way to prevent
that first -I/usr/pkg/include from getting in the way...


John Darrow - Senior Technical Specialist               Office: 630/752-5201
Computing Services, Wheaton College, Wheaton, IL 60187  Fax:    630/752-5968
Alphapage:            Pager:  630/316-0707