On 12/12/12 8:56 AM, Raphaël Droz wrote:
Hi,
using the devel/ branch, linking fails with:
bashline.o: In function `attempt_shell_completion':
bashline.c:1406: undefined reference to `parser_in_command_position'
collect2: ld returned 1 exit status
I see what happened. git (or the process used to create the devel tree)
makes the mod time of all files in the tree the same, so y.tab.c doesn't
get rebuilt from parse.y. You can fix this with
rm y.tab.?
make
Maybe I will remove y.tab.[ch] from the devel tree, but that introduces a
dependency on bison.
But since f14388d (bash-20120914 snapshot), the build fails with the
above error. Some of the later revisions also add the failure below:
./builtins/libbuiltins.a(help.o): In function `wdispcolumn':
builtins/./help.def:409: undefined reference to `wcsnwidth'
builtins/./help.def:449: undefined reference to `wcsnwidth'
collect2: ld returned 1 exit statu
I don't see this. wcsnwidth.c is present in the tree and (seemingly)
correctly specified in the Makefiles. The definitions and uses all
depend on HANDLE_MULTIBYTE.
Chet