In C:ncs\v2.6.1\zephyr\subsys\bluetooth\shell\bt.c, compare line 3237 with line 4291 and you will see that the compilation flags are not used correctly regarding cmd_chan_map.
#if defined(CONFIG_BT_CENTRAL) || defined(CONFIG_BT_BROADCASTER)
reference cmd_chan_map
#if defined(CONFIG_BT_CENTRAL)
define cmd_chan_map
So under certain conditions the cmd_chan_map is referenced but not defined.