if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../intl -I.. -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -mcpu=athlon-mp -O3 -pipe -Wall -MT ftpfs.o -MD -MP -MF ".deps/ftpfs.Tpo" \ -c -o ftpfs.o `test -f 'ftpfs.c' || echo './'`ftpfs.c; \ then mv ".deps/ftpfs.Tpo" ".deps/ftpfs.Po"; \ else rm -f ".deps/ftpfs.Tpo"; exit 1; \ fi In file included from utilvfs.h:1, from fish.c:41: ../src/global.h:80: redefinition of `struct timeval' In file included from utilvfs.h:1, from tcputil.c:26: ../src/global.h:80: redefinition of `struct timeval' In file included from ../src/global.h:138, from utilvfs.h:1, from fish.c:41: In file included from ../src/global.h:138, from utilvfs.h:1, from tcputil.c:26: ../src/fs.h:73: warning: `struct direct' declared inside parameter list ../src/fs.h:73: warning: its scope is only this definition or declaration, which is probably not what you want ../src/fs.h: In function `compute_namelen': ../src/fs.h:77: dereferencing pointer to incomplete type ../src/fs.h:77: warning: passing arg 1 of `strlen' from incompatible pointer type In file included from ../src/global.h:142, from utilvfs.h:1, from tcputil.c:26: ../vfs/vfs.h: At top level: ../vfs/vfs.h:63: warning: `struct utimbuf' declared inside parameter list ../src/fs.h:73: warning: `struct direct' declared inside parameter list ../vfs/vfs.h:103: field `dent' has incomplete type ../src/fs.h:73: warning: its scope is only this definition or declaration, which is probably not what you want ../vfs/vfs.h:104: dereferencing pointer to incomplete type ../src/fs.h: In function `compute_namelen': ../src/fs.h:77: dereferencing pointer to incomplete type ../src/fs.h:77: warning: passing arg 1 of `strlen' from incompatible pointer type ../vfs/vfs.h:182: parse error before '*' token ../vfs/vfs.h:182: warning: type defaults to `int' in declaration of `mc_opendir' ../vfs/vfs.h:182: warning: data definition has no type or storage class ../vfs/vfs.h:183: parse error before '*' token ../vfs/vfs.h:184: parse error before '*' token ../vfs/vfs.h:185: parse error before '*' token ../vfs/vfs.h:186: parse error before '*' token ../vfs/vfs.h:194: warning: `struct utimbuf' declared inside parameter list In file included from ../src/global.h:142, from utilvfs.h:1, from fish.c:41: ../vfs/vfs.h: At top level: ../vfs/vfs.h:63: warning: `struct utimbuf' declared inside parameter list ../vfs/vfs.h:103: field `dent' has incomplete type ../vfs/vfs.h:104: dereferencing pointer to incomplete type ../vfs/vfs.h:182: parse error before '*' token ../vfs/vfs.h:182: warning: type defaults to `int' in declaration of `mc_opendir' ../vfs/vfs.h:182: warning: data definition has no type or storage class ../vfs/vfs.h:183: parse error before '*' token ../vfs/vfs.h:184: parse error before '*' token ../vfs/vfs.h:185: parse error before '*' token ../vfs/vfs.h:186: parse error before '*' token ../vfs/vfs.h:194: warning: `struct utimbuf' declared inside parameter list make[3]: *** [tcputil.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from utilvfs.h:1, from ftpfs.c:72: ../src/global.h:80: redefinition of `struct timeval' In file included from ../src/global.h:138, from utilvfs.h:1, from ftpfs.c:72: ../src/fs.h:73: warning: `struct direct' declared inside parameter list ../src/fs.h:73: warning: its scope is only this definition or declaration, which is probably not what you want ../src/fs.h: In function `compute_namelen': ../src/fs.h:77: dereferencing pointer to incomplete type ../src/fs.h:77: warning: passing arg 1 of `strlen' from incompatible pointer type In file included from ../src/global.h:142, from utilvfs.h:1, from ftpfs.c:72: fish.c: In function `pipeopen': ../vfs/vfs.h: At top level: ../vfs/vfs.h:63: warning: `struct utimbuf' declared inside parameter list fish.c:179: warning: implicit declaration of function `open' fish.c:179: `O_WRONLY' undeclared (first use in this function) fish.c:179: (Each undeclared identifier is reported only once fish.c:179: for each function it appears in.) ../vfs/vfs.h:103: field `dent' has incomplete type ../vfs/vfs.h:104: dereferencing pointer to incomplete type ../vfs/vfs.h:182: parse error before '*' token ../vfs/vfs.h:182: warning: type defaults to `int' in declaration of `mc_opendir' ../vfs/vfs.h:182: warning: data definition has no type or storage class ../vfs/vfs.h:183: parse error before '*' token ../vfs/vfs.h:184: parse error before '*' token ../vfs/vfs.h:185: parse error before '*' token ../vfs/vfs.h:186: parse error before '*' token ../vfs/vfs.h:194: warning: `struct utimbuf' declared inside parameter list fish.c: In function `dir_uptodate': fish.c:331: warning: implicit declaration of function `gettimeofday' fish.c: In function `file_store': fish.c:475: `O_RDONLY' undeclared (first use in this function) fish.c: In function `fish_fh_open': fish.c:813: `O_WRONLY' undeclared (first use in this function) fish.c:813: `O_RDONLY' undeclared (first use in this function) fish.c:813: `O_RDWR' undeclared (first use in this function) fish.c:814: `O_APPEND' undeclared (first use in this function) make[3]: *** [fish.o] Error 1 ftpfs.c: In function `ftpfs_open_socket': ftpfs.c:659: warning: implicit declaration of function `inet_addr' ftpfs.c: In function `dir_uptodate': ftpfs.c:818: warning: implicit declaration of function `gettimeofday' ftpfs.c: In function `file_store': ftpfs.c:1356: warning: implicit declaration of function `open' ftpfs.c:1356: `O_RDONLY' undeclared (first use in this function) ftpfs.c:1356: (Each undeclared identifier is reported only once ftpfs.c:1356: for each function it appears in.) ftpfs.c: In function `ftpfs_fh_open': ftpfs.c:1614: `O_WRONLY' undeclared (first use in this function) ftpfs.c:1614: `O_RDONLY' undeclared (first use in this function) ftpfs.c:1614: `O_RDWR' undeclared (first use in this function) ftpfs.c:1632: `O_APPEND' undeclared (first use in this function) make[3]: *** [ftpfs.o] Error 1 make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0/work/mc-4.6.0/vfs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0/work/mc-4.6.0' make: *** [all] Error 2 !!! ERROR: app-misc/mc-4.6.0 failed. !!! Function src_compile, Line 64, Exitcode 2 !!! (no error message) ---------------------------------------- Portage 2.0.47-r2 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-xfs-r2 i686 AMD Athlon(tm) MP 2000+ GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xmms xv zlib gdbm berkdb slang readline tetex svga tcltk java X sdl gpm tcpd libwww ssl python imlib oggvorbis gnome gtk motif opengl cdr gtk2 -qt -qtmt -kde -arts xfs acl bonobo encode aalib dga dvd gd alsa esd gtkhtml guile imap -ldap leim mozilla moznomail moznocompose moznoirc mysql pam perl scanner sse tiff xface xml2" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-mp -O3 -pipe" CXXFLAGS="-mcpu=athlon-mp -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j3" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
can u try changing emake to make in the ebuild? then re-emerging
It didn't help. BTW, the pre1 ebuild worked for me (and is still installed).
also I just found from someone else that colorgcc will break the compile.
I disabled colorgcc, but still getting the same error.
I had the same problem. But I've cleaned colorgcc and it works for me... (it's sad... I like colors :)) and I like gentoo for its colors (of course not only for this :))))))
I tried to reinstall mc without gcc once again, and it worked indeed! It didn't work the last time, because I removed the path to colorgcc from /etc/profile, but not from /etc/profile.env.
great :)
But does it mean that it's really fixed? I think, there should be _at least_ a Big Red Warning in the ebuild, because other people may encounter the same problem. A better solution would be disabling colorgcc for this ebuild. I did not test it yet, but I think, this should work: export PATH=`gcc-config --get-bin-path`:$PATH I wouldn't work for people using old gcc ebuilds though.