Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582580 - app-shells/bash-4.3_p42-r1 - error: ‘rl_filename_stat_hook’ undeclared
Summary: app-shells/bash-4.3_p42-r1 - error: ‘rl_filename_stat_hook’ undeclared
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-09 14:09 UTC by Martin Mokrejš
Modified: 2016-07-04 11:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,55.73 KB, text/x-log)
2016-05-09 14:09 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2016-05-09 14:09:58 UTC
Created attachment 433774 [details]
build.log

x86_64-pc-linux-gnu-gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H   -I. -I./include -I. -I./include -I./lib  -DDEFAULT_PATH_VALUE='"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' -DSTANDARD_UTILS_PATH='"/bin:/usr/bin:/sbin:/usr/sbin"' -DSYS_BASHRC='"/etc/bash/bashrc"' -DSYS_BASH_LOGOUT='"/etc/bash/bash_logout"' -DNON_INTERACTIVE_LOGIN_SHELLS -DSSH_SOURCE_BASHRC -O2 -pipe -march=native -c bashline.c
bashline.c: In function ‘initialize_readline’:
bashline.c:552:3: error: ‘rl_filename_stat_hook’ undeclared (first use in this function)
   rl_filename_stat_hook = bash_filename_stat_hook;
   ^
bashline.c:552:3: note: each undeclared identifier is reported only once for each function it appears in
bashline.c: In function ‘bashline_set_event_hook’:
bashline.c:606:3: error: ‘rl_signal_event_hook’ undeclared (first use in this function)
   rl_signal_event_hook = bash_event_hook;
   ^
bashline.c: In function ‘bashline_reset_event_hook’:
bashline.c:612:3: error: ‘rl_signal_event_hook’ undeclared (first use in this function)
   rl_signal_event_hook = 0;
   ^
bashline.c: In function ‘bashline_reset’:
bashline.c:631:3: error: ‘rl_filename_stat_hook’ undeclared (first use in this function)
   rl_filename_stat_hook = bash_filename_stat_hook;
   ^
bashline.c: In function ‘attempt_shell_completion’:
bashline.c:1391:3: error: ‘rl_filename_stat_hook’ undeclared (first use in this function)
   rl_filename_stat_hook = bash_filename_stat_hook;
   ^
bashline.c: In function ‘command_word_completion_function’:
bashline.c:1754:7: error: ‘rl_filename_stat_hook’ undeclared (first use in this function)
       rl_filename_stat_hook = bash_command_name_stat_hook;
       ^
bashline.c: In function ‘bash_execute_unix_command’:
bashline.c:3991:40: error: ‘rl_executing_keyseq’ undeclared (first use in this function)
   cmd = (char *)rl_function_of_keyseq (rl_executing_keyseq, cmd_xmap, &type);
                                        ^
Makefile:97: recipe for target 'bashline.o' failed
make: *** [bashline.o] Error 1
 * ERROR: app-shells/bash-4.3_p42-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Martin Mokrejš 2016-05-09 14:11:28 UTC
# emerge --info

Portage 2.2.26 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 3.18.28-default x86_64)
=================================================================
System uname: Linux-3.18.28-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.2
KiB Mem:    16409848 total,    917320 free
KiB Swap:   15647296 total,  15388232 free
Timestamp of repository gentoo: Mon, 09 May 2016 08:30:01 +0000
sh bash 4.2_p53
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.4_p6-r1::gentoo, 1.5-r1::gentoo, 1.9.6-r3::gentoo, 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.3.5::gentoo, 4.4.7::gentoo, 4.5.4::gentoo, 4.6.3::gentoo, 4.7.3-r1::gentoo, 4.8.5::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

x-layman
    location: /var/lib/layman
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X accessibility alsa amd64 amr apache apache2 berkdb bzip2 cairo cgi cli cracklib crypt cups cxx dbus device-mapper dri encode ffmpeg flac fontconfig fortran gd gdbm geoip gnutls hal iconv id3tag innodb java jce jpeg jpg kde ladspa laptop mad maildir mmx mmxext modules mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly nsplugin ogg opengl openmp openssl pam pcre perl php png policykit postfix procmail python qt3support qt4 readline sasl seccomp server session sndfile spf sse sse2 ssl suexec svg syslog tcpd threads tiff truetype unicode usb wavpack xattr xml xorg xvfb zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs cz" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 SpanKY gentoo-dev 2016-05-09 21:07:08 UTC
go into the build dir and run that failing gcc command.  if it still fails, change the -c to -E and attach the output here.
Comment 3 Martin Mokrejš 2016-05-10 08:19:51 UTC
I did meanwhile a lot of updates/recompiles and, indeed, it does not happen anymore. But I did hit the issue several times yesterday. Weird. But as I have now even overwritten with the successful attempt the old config.status and other generated files in /var/tmp/portage/, I have no more to add. Sorry.
Comment 4 SpanKY gentoo-dev 2016-05-10 14:14:43 UTC
np.  glad it worked itself out.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2016-07-01 00:14:48 UTC
Feel free to re-open or file a new bug once you'll hit this again.

But according to your comment #3 I am changing status to OBSOLETE to get this bug out of the "NEEDINFO" list which will help us tracking bugs for people who provided the requested information but forgotten to re-open...
Comment 6 Martin Mokrejš 2016-07-01 06:11:54 UTC
I retried now again and while I could not reproduce I realized the failing compile attempt did not contain '-DUSE_MKTEMP -DUSE_MKSTEMP' on the comandline. It appears on four lines in config.status and I tried to delete this substring and re-ran config.status. At least after that I do not see any variable related to mktemp/mkstemp in config.h, maybe that's why it is passed via commandline so nothing obviously really related to it in config.h.

So, while still I cannot reproduce this maybe someone else could manage after looking the sources and mangling setup. Maybe.


Looking further into emerge.log I can only add that it was possibly fixed by change sin the following order (the time window was not so wide):

sys-apps/busybox-1.23.1-r1 to sys-apps/busybox-1.24.2 upgrade

sys-devel/binutils-2.24-r3 to sys-devel/binutils-2.25.1-r1 upgrade

sys-apps/coreutils-8.21 to sys-apps/coreutils-8.23 upgrade

sys-libs/readline-6.2_p5-r1 to sys-libs/readline-6.3_p8-r2 upgrade

and by teh time I succeeded I jumped from app-shells/bash-4.2_p53 to app-shells/bash-4.3_p42-r1

Would that be a revdep-rebuild issue, then the fix would be dev-libs/beecrypt-4.2.1 to dev-libs/beecrypt-4.2.1-r3 recompile (I doubt, I think has nothing to do with bash IMHO).



Finally, provided I cannot downgrade now to an older readline it was probably a wrong bash DEPENDency at some time:

# emerge =sys-libs/readline-6.2_p5-r1

[ebuild     UD ] sys-libs/readline-6.2_p5-r1 [6.3_p8-r2]

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-libs/readline:0

  (sys-libs/readline-6.2_p5-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    =sys-libs/readline-6.2_p5-r1 (Argument)

  (sys-libs/readline-6.3_p8-r2:0/0::gentoo, installed) pulled in by
    >=sys-libs/readline-6.3 required by (app-shells/bash-4.3_p42-r1:0/0::gentoo, installed)
Comment 7 SpanKY gentoo-dev 2016-07-04 01:55:02 UTC
(In reply to Martin Mokrejš from comment #6)

i doubt the mktemp/mkstemp is related.  those defines impact two very localized and specific code paths, neither of which involve readline.

the bash-4.3 ebuilds should always require readline-6.3+ via their DEPEND settings.  i checked the first bash-4.3 ebuild and it too required 6.3.  not sure how you managed to build+install bash w/out first upgrading to readline-6.3 :/.
Comment 8 Martin Mokrejš 2016-07-04 11:19:34 UTC
(In reply to SpanKY from comment #7)
> (In reply to Martin Mokrejš from comment #6)
> the bash-4.3 ebuilds should always require readline-6.3+ via their DEPEND
> settings.  i checked the first bash-4.3 ebuild and it too required 6.3.  not
> sure how you managed to build+install bash w/out first upgrading to
> readline-6.3 :/.

I agree it seems that somehow emerge did not enforce readline upgrade prior to attempting to compile bash. Thanks for your input.

The host was not updated for several months and maybe because of that it went wrong.