Executing find / -regex '.*' doesn't report any file ! find --version: GNU find version 4.2.27 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION Reproducible: Always Steps to Reproduce: 1.find / -regex '.*' 2. 3. Actual Results: nothing Expected Results: lot of files Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r1, 2.6.14-gentoo-r3 i686) ================================================================= System uname: 2.6.14-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.12.0_pre11 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fmerge-all-constants -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fmerge-all-constants -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 S3TC X Xaw3d aalib alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts blender-game bonobo bzip2 bzlib c++ cdparanoia cdr crypt css cups curl divx4linux doc dvd dvdr dvdread editor eds emacs emboss encode esd exif expat fam ffmpeg figlet foomaticdb fortran freetype ftp gd gdbm gif gimp gimpprint glut gmp gnome gnomedb gnuplot gphoto2 gpm graphviz gstreamer gtk gtk2 hal idn ieee1394 imagemagick imlib imlib2 ipv6 java jp2 jpeg junit kde kdeenablefinal kdexdeltas ladcca ladspa latex lcms ldap libg++ libgd libgda libwww lzo lzw mad maps mikmod mmx mng mozilla mp3 mpeg mplayer music ncurses nls no_wxgtk1 nocd nptl nvidia ode offensive ofx ogg oggvorbis openal opengl oss pam pcre pda pdflib perl physfs pic png postgres print python qt quicktime readline rogue samba sdl slang sounds spell sse sse2 ssl stencil-buffer stream svg svga svgz sysfs tcltk tcpd tetex threads tiff transcode transparent-proxy truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vcdimager videos vidix voice vorbis wmf wxwindows xine xml2 xmms xpm xv xvid zeroconf zlib zvbi userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Which sys-apps/findutils version is this about?
Hrm. Works here. What's the output of 'ls -ld /'?
Hi there, i'm in same situation. find version[ 4.1.20 ], works good, but find version[ 4.2.27 ], no results... $ find --version GNU find version 4.2.27 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION $ mkdir work_20051208 && cd work_20051208 $ touch file .hidden_file && mkdir -p dir_L1/dir_L2 $ tree -aF . |-- .hidden_file |-- dir_L1/ | `-- dir_L2/ `-- file this operation looks good at both version. $ find ./ ./ ./file ./dir_L1 ./dir_L1/dir_L2 ./.hidden_file these operation no results at version[ 4.2.27 ]:: $ find ./ -regex '.*' $ find ./ -regex "./file" $ find ./ -regex './file' $ find ./ -regex '\.\/file' i see man page and found the new option[ regextype ]. but, not find any {file,directory} on using option[ regex ] at version[ 4.2.27 ] find ./ -regextype findutils-default -regex '.*' find ./ -regextype awk -regex '.*' find ./ -regextype egrep -regex '.*' find ./ -regextype emacs -regex '.*' find ./ -regextype gnu-awk -regex '.*' find ./ -regextype grep -regex '.*' find ./ -regextype posix-awk -regex '.*' find ./ -regextype posix-basic -regex '.*' find ./ -regextype posix-egrep -regex '.*' find ./ -regextype posix-extended -regex '.*' > Hrm. Works here. What's the output of 'ls -ld /'? three gentoo boxes info as: @server #1::something wrong :'-( # ls -ld / drwxr-xr-x 20 root root 512 Dec 6 03:10 / # emerge -pv sys-apps/findutils [ebuild R ] sys-apps/findutils-4.2.27 -build +nls (-selinux) -static 0 kB # find --version GNU find version 4.2.27 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION # emerge info Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14- gentoo-r3 i686) ================================================================= System uname: 2.6.14-gentoo-r3 i686 Pentium III (Katmai) Gentoo Base System version 1.12.0_pre11 ccache version 2.3 [disabled] dev-lang/python: 2.1.3-r1, 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1 1/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig digest distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/" LANG="ja_JP.eucJP" LC_ALL="C" LINGUAS="ja" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage" USE="3dfx 3dnow X aalib acl alsa apache2 apm audiofile avi bash-completion bcmath berkdb bitmap-fonts bzip2 bzlib calendar cdb cdr cjk cli cpdflib crypt ctype cups curl curlwrappers dba dio directfb eds emacs emboss encode esd ethereal exif expat fam fbcon ffmpeg flac flash flatfile foomaticdb fortran freetds freewnn ftp gd gdbm gif gmp gpm gstreamer gtk gtk2 iconv imagemagick imap imlib inifile innodb ipv6 java jpeg junit kerberos lcms ldap leim libcaca libedit libg++ libgda libwww mad maildir mailwrapper mcal mcve memlimit mhash mikmod mime ming mmx mng motif mp3 mpeg mpm-prefork mule mysql mysqli ncurses nls oci8 odbc ogg oggvorbis opengl oracle oss pam pcntl pcre pdflib pear perl php png posix postgres python qt quicktime readline recode ruby samba sdl session sharedext sharedmem simplexml slang snmp soap sockets spell spl sqlite ssl svga tcltk tcpd tetex tidy tiff tokenizer truetype truetype-fonts type1- fonts udev usb voodoo3 vorbis wddx wmf x86 xml xml2 xmlrpc xmms xsl xv xvid yahoo yaz zlib video_cards_3dfx linguas_ja userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTSUnset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPT @server #2::something wrong :'-( # ls -ld / drwxr-xr-x 19 root root 576 Oct 28 18:39 / # emerge -pv sys-apps/findutils [ebuild R ] sys-apps/findutils-4.2.27 -build +nls (-selinux) -static 0 kB # find --version GNU find version 4.2.27 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION # emerge info Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14- gentoo-r4 i686) ================================================================= System uname: 2.6.14-gentoo-r4 i686 Intel(R) Pentium(R) III CPU family 1133MHz Gentoo Base System version 1.12.0_pre11 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1 1/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 apm audiofile avi bash-completion bcmath berkdb bitmap-fonts bzip2 bzlib calendar cdb cdr cjk cli cpdflib crypt ctype cups curl curlwrappers dba dio directfb eds emacs emboss encode esd ethereal exif expat fbcon ffmpeg flac flash flatfile foomaticdb fortran freewnn ftp gd gdbm gif gmp gpm gstreamer gtk gtk2 iconv imagemagick imap imlib inifile innodb ipv6 jpeg kerberos lcms ldap leim libg++ libgda libwww mad maildir mailwrapper mcal mcve memlimit mhash mikmod mime mmx mng motif mp3 mpeg mpm-prefork mule mysql mysqli ncurses nls odbc ogg oggvorbis opengl oss pam pcntl pcre pdflib pear perl php png posix postgres python qt quicktime readline ruby samba sdl session sharedext sharedmem simplexml slang snmp soap sockets spell spl sqlite ssl svga tcpd tidy tiff tokenizer truetype truetype-fonts type1-fonts udev vorbis wddx wmf x86 xml xml2 xmlrpc xmms xsl xv yahoo yaz zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY @server #3::works good :) # ls -ld / drwxr-xr-x 19 root root 440 Dec 5 10:25 / # emerge -pv sys-apps/findutils [ebuild U ] sys-apps/findutils-4.2.27 [4.1.20-r1] -build +nls (-selinux) - static 1,096 kB # find --version GNU find version 4.1.20 # emerge info Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.11- co-0.6.3-pre13 i686) ================================================================= System uname: 2.6.11-co-0.6.3-pre13 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i386-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1 1/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/" LANG="ja_JP.eucJP" LINGUAS="ja" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 cjk crypt cups eds emboss encode ethereal expat foomaticdb fortran ftp gd gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg lcms leim libcaca libg++ libwww mad mhash mikmod mng motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl php png postgres python qt quicktime readline ruby samba sdl snmp spell sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmlrpci xmms xv zlib linguas_ja userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY ...well, i use wrong option or something?
I think the problem is related to '--without-included-regex' option of ./configure. Compiling findutils without this flag seems to fix the problem. Could this be a glibc problem? My glibc version is 2.3.6-r1
So if you take the --without-included-regex out of the ebuild, change nothing else and reinstall, it works?
for the reference, I tried re-install sys-apps/findutils as downgrade FROM 4.2.27 TO 4.2.25. ^^ ^^ and works fine even enable configure option[ --without-included-regex ]. the configure option is: ./configure \ --prefix=/usr \ --host=i686-pc-linux-gnu \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --datadir=/usr/share \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --enable-nls \ --without-included-regex \ --build=i686-pc-linux-gnu which as same as version[ 4.2.27 ]. on version[ 4.2.25 ], works good. :) what the difference these versions...
What I need to know is whether, with *4.2.27*, removing the --without-included-regex removes the problem for those who are seeing it. If there's an issue with findutils, there will probably be an issue with grep etc when we put out the next version with --without-included-regex too.
I confirm that removing --without-included-regex from the ebuild and reemerging findutils makes it work.
Ok, could you try adding --without-included-regex to the grep and sed ebuilds and see if they break in the same way? You'll probably want to make a quickpkg beforehand...
I think I have an explanation: even if --without-included-regex is defined, -I../gnulib/lib is still present in the compilation command. As a result, ../gnulib/lib/regex.h is included instead of /usr/include/regex.h. The problem is that the 2 declarations of re_match doesn't match: extern regoff_t re_match (struct re_pattern_buffer *__buffer, const char *__string, __re_idx_t __length, __re_idx_t __start, struct re_registers *__regs); for ../gnulib/lib/regex.h extern int re_match _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, int length, int start, struct re_registers *regs)); for /usr/include/regex.h On my system, regoff_t is a typedef of __off64_t, a 64bits integer. When compiling, gcc expects re_match to return a 64 bits integer (split in %eax and %edx), but glibc version of re_match returns the result only in %eax (since for glibc version result is 32 bit), and there could be anything in %edx, which is nevertheless used to test the result sign when comparing re_match return value with matched string length...
hmm, a plausible idea ... i have been testing on 64bit systems ... can you try running the emerge again, but this time, after the ebuild finishes unpacking, delete that header file and in the gnulib subdir
As expected, deleting regex.h from the gnulib subdir solves the problem.
awesome, thanks for tracking that down ... cant say i would have ever thought of looking there
Could you try 4.3.0? There's a rather nasty 'fix' included in the ebuild which might work. Or it might not...
great 4.3.0! works very fine! thanks all $ find --version GNU find version 4.3.0 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS ^^^
Ok, looks like this is fixed. Please reopen if anyone's still affected.
Please apply the same fix to the 4.2.27 ebuild. (It works here: with it, 4.2.27 now passes its tests.)
why last time i checked, 4.3.0 > 4.2.27
Because I thought it likely that 4.2.27 would reach stable before 4.3.0, as the latter one is marked as a development version by upstream.
Nnnnope.
If 4.2.27 is not going to get fixed, then please hard-mask it, as it is broken (for some).
No. Every findutils is broken in some way. If we were to mask every version that had some minor bug then there wouldn't be any available at all.
But this is not a minor bug, and it is one not present in 4.2.25 and 4.3.0 (now). Also, this bug is about 4.2.27, and it is marked as fixed, but it is not fixed: it is just superseded by a newer version.
*** Bug 122991 has been marked as a duplicate of this bug. ***