Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 20271

Summary: Merging dev-util/strace-4.4-r1 fails
Product: Gentoo Linux Reporter: Sebastian Bergmann (RETIRED) <sebastian>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Bergmann (RETIRED) gentoo-dev 2003-05-01 08:50:36 UTC
When I try to emerge dev-util/strace-4.4-r1 the build fails for the file.c
source file.

Reproducible: Always
Steps to Reproduce:
1. emerge dev-util/strace

Actual Results:  
wopr-mobile root # emerge dev-util/strace
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-util/strace-4.4-r1 to /
>>> Downloading
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/distfiles/strace_4.4-1.tar.gz
--14:46:31-- 
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/distfiles/strace_4.4-1.tar.gz
           => `/usr/portage/distfiles/strace_4.4-1.tar.gz'
Resolving linux.rz.ruhr-uni-bochum.de... done.
Connecting to linux.rz.ruhr-uni-bochum.de[134.147.32.57]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /gentoo-mirror/distfiles ... done.
==> PASV ... done.    ==> RETR strace_4.4-1.tar.gz ... done.
Length: 398,273 (unauthoritative)

100%[====================================>] 398,273       21.88K/s    ETA 00:00

14:46:52 (21.88 KB/s) - `/usr/portage/distfiles/strace_4.4-1.tar.gz' saved [398273]

>>> md5 ;-) strace_4.4-1.tar.gz
>>> Unpacking source...
>>> Unpacking strace_4.4-1.tar.gz to /var/tmp/portage/strace-4.4-r1/work
>>> Source unpacked.
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for supported operating system... linux
checking for supported architecture... i386
checking for gcc... gcc
checking whether the C compiler (gcc -D_GNU_SOURCE -march=pentium3 -O3 -pipe )
works... yes
checking whether the C compiler (gcc -D_GNU_SOURCE -march=pentium3 -O3 -pipe )
is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for working gcc -b i686-pc-linux-gnu... yes
checking for MP procfs... no
checking for pollable procfs... no
checking for pr_syscall in struct prstatus... no
checking for msg_control in struct msghdr... yes
checking for mawk... no
checking for gawk... gawk
checking for primary include directory... /usr/include
checking how to run the C preprocessor... gcc -b i686-pc-linux-gnu -E
checking whether gcc -b i686-pc-linux-gnu needs -traditional... no
checking for a BSD compatible install... /bin/install -c
checking for working const... yes
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking return type of signal handlers... void
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking whether stat file-mode macros are broken... no
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking type of array argument to getgroups... gid_t
checking whether sys/types.h defines makedev... yes
checking for sig_atomic_t in signal.h... yes
checking for stat64 in (asm|sys)/stat.h... yes
checking for sin6_scope_id in sockaddr_in6... yes
checking for long long... yes
checking for little endian long long... yes
checking for long long off_t... no
checking for long long rlim_t... no
checking for st_flags in struct stat... no
checking for st_aclcnt in struct stat... no
checking for st_level in struct stat... no
checking for st_fstype in struct stat... no
checking for st_gen in struct stat... no
checking for sigaction... yes
checking for strerror... yes
checking for strsignal... yes
checking for pread... yes
checking for sys_siglist... yes
checking for _sys_siglist... yes
checking for getdents... no
checking for mctl... no
checking for putpmsg... yes
checking for prctl... yes
checking for sendmsg... yes
checking for inet_ntop... yes
checking for if_indextoname... yes
checking for sys/reg.h... yes
checking for sys/filio.h... no
checking for sys/acl.h... no
checking for sys/asynch.h... no
checking for sys/door.h... no
checking for stropts.h... yes
checking for sys/conf.h... no
checking for sys/stream.h... no
checking for sys/tihdr.h... no
checking for sys/tiuser.h... no
checking for sys/sysconfig.h... no
checking for asm/sigcontext.h... yes
checking for ioctls.h... no
checking for sys/ioctl.h... yes
checking for sys/ptrace.h... yes
checking for termio.h... yes
checking for linux/ptrace.h... yes
checking for asm/reg.h... no
checking for linux/icmp.h... yes
checking for linux/in6.h... yes
checking for sys/uio.h... yes
checking for sys/aio.h... no
checking for linux/netlink.h... yes
checking for linux/if_packet.h... yes
checking for poll.h... yes
checking for sys/poll.h... yes
checking for sys/vfs.h... yes
checking for netinet/tcp.h... yes
checking for netinet/udp.h... yes
checking for asm/sysmips.h... no
checking for linux/utsname.h... yes
checking for sys/nscsys.h... no
checking for sys_errlist declaration... yes
checking for sys_siglist declaration in signal.h or unistd.h... yes
checking for _sys_siglist declaration... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating linux/Makefile
creating config.h
gcc -b i686-pc-linux-gnu -Wall -DHAVE_CONFIG_H   -I. -Ilinux/i386 -I./linux/i386
-Ilinux -I./linux -D_GNU_SOURCE -march=pentium3 -O3 -pipe -c strace.c
gcc -b i686-pc-linux-gnu -Wall -DHAVE_CONFIG_H   -I. -Ilinux/i386 -I./linux/i386
-Ilinux -I./linux -D_GNU_SOURCE -march=pentium3 -O3 -pipe -c version.c
gcc -b i686-pc-linux-gnu -Wall -DHAVE_CONFIG_H   -I. -Ilinux/i386 -I./linux/i386
-Ilinux -I./linux -D_GNU_SOURCE -march=pentium3 -O3 -pipe -c syscall.c
gcc -b i686-pc-linux-gnu -Wall -DHAVE_CONFIG_H   -I. -Ilinux/i386 -I./linux/i386
-Ilinux -I./linux -D_GNU_SOURCE -march=pentium3 -O3 -pipe -c util.c
gcc -b i686-pc-linux-gnu -Wall -DHAVE_CONFIG_H   -I. -Ilinux/i386 -I./linux/i386
-Ilinux -I./linux -D_GNU_SOURCE -march=pentium3 -O3 -pipe -c desc.c
gcc -b i686-pc-linux-gnu -Wall -DHAVE_CONFIG_H   -I. -Ilinux/i386 -I./linux/i386
-Ilinux -I./linux -D_GNU_SOURCE -march=pentium3 -O3 -pipe -c file.c
file.c: In function `realprintstat':
file.c:728: structure has no member named `st_atim'
file.c:729: structure has no member named `st_mtim'
file.c:730: structure has no member named `st_ctim'
file.c: In function `printstat64':
file.c:862: structure has no member named `st_atim'
file.c:863: structure has no member named `st_mtim'
file.c:864: structure has no member named `st_ctim'
file.c: In function `convertoldstat':
file.c:906: structure has no member named `st_atim'
file.c:906: structure has no member named `st_atim'
file.c:907: structure has no member named `st_mtim'
file.c:907: structure has no member named `st_mtim'
file.c:908: structure has no member named `st_ctim'
file.c:908: structure has no member named `st_ctim'
file.c: In function `sys_getdents64':
file.c:1925: warning: long unsigned int format, different type arg (arg 3)
file.c:1925: warning: long unsigned int format, different type arg (arg 4)
file.c: At top level:
file.c:633: warning: `fileflags' defined but not used
make: *** [file.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-util/strace-4.4-r1 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! (no error message)
Comment 1 SpanKY gentoo-dev 2003-05-01 18:34:31 UTC
please post `emerge info`
Comment 2 Sebastian Bergmann (RETIRED) gentoo-dev 2003-05-01 23:27:20 UTC
wopr-mobile root # emerge info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r3 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/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 arts avi crypt cups encode gif jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga tcltk java guile sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt motif opengl mozilla X gtk2 gnome alsa apache2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 3 Sankara Krishnamoorthy 2003-05-03 08:41:25 UTC
file.c:728: structure has no member named `st_atim'
file.c:729: structure has no member named `st_mtim'

all the struct variable members seem to be missing an 'e' at the end, like st_atime, st_mtime...

I downloaded the source from your mirror and didn't have a problem installing.

I wonder why the 'e' got left out while compilation, can you inflate the source and verify in file.c on like 728 there indeed is st_atime and not st_atim?

Do not download the file anew, just unpack the one in your distfiles dir.
Comment 4 Sebastian Bergmann (RETIRED) gentoo-dev 2003-05-03 09:25:27 UTC
My system seems to be b0rked somehow, see also

 - http://bugs.gentoo.org/show_bug.cgi?id=20317
 - http://bugs.gentoo.org/show_bug.cgi?id=20316

wopr-mobile root # emerge strace
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-util/strace-4.4-r1 to /
>>> Downloading ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/distfiles/strace_4.4-1.tar.gz
--15:22:22--  ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/distfiles/strace_4.4-1.tar.gz
           => `/usr/portage/distfiles/strace_4.4-1.tar.gz'
Resolving linux.rz.ruhr-uni-bochum.de... done.
Connecting to linux.rz.ruhr-uni-bochum.de[134.147.32.57]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /gentoo-mirror/distfiles ... done.
==> PASV ... done.    ==> RETR strace_4.4-1.tar.gz ... done.
Length: 398,273 (unauthoritative)

100%[====================================>] 398,273       85.61K/s    ETA 00:00

15:22:29 (85.61 KB/s) - `/usr/portage/distfiles/strace_4.4-1.tar.gz' saved [398273]

>>> md5 ;-) strace_4.4-1.tar.gz
>>> Unpacking source...
>>> Unpacking strace_4.4-1.tar.gz to /var/tmp/portage/strace-4.4-r1/work
>>> Source unpacked.
creating cache ./config.cache
checking host system type... config.sub: missing argument
Try `config.sub --help' for more information.

checking target system type... config.sub: missing argument
Try `config.sub --help' for more information.

checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.

checking for supported operating system... configure: error: this operating system is not yet supported by strace

!!! ERROR: dev-util/strace-4.4-r1 failed.
!!! Function src_compile, Line 61, Exitcode 1
!!! (no error message)
Comment 5 Sebastian Bergmann (RETIRED) gentoo-dev 2003-05-04 10:56:24 UTC
I was able to solve this issue by downgrading from bash-2.05b-r5 to bash-2.05b-r3.
The scripts generated by autoconf, automake and libtool are executed by /bin/sh, which
is but a symlink to /bin/bash. Arguments passed to those scripts "got lost", hence the
trouble.
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-05-05 09:32:33 UTC

*** This bug has been marked as a duplicate of 20157 ***
Comment 7 Kurt Hindenburg 2003-06-12 14:12:06 UTC
I get the author's original error..Why was this closed?  I don't see how this is a duplicate of 20157....I just downloaded strace.

gcc -b i686-pc-linux-gnu -Wall -DHAVE_CONFIG_H   -I. -Ilinux/i386 -I./linux/i386 -Ilinux -I./linux -D_GNU_SOURCE -march=athlon -O3 -pipe -fomit-frame-pointer -c file.c
file.c: In function `realprintstat':
file.c:728: structure has no member named `st_atim'
file.c:729: structure has no member named `st_mtim'
file.c:730: structure has no member named `st_ctim'
file.c: In function `printstat64':
file.c:862: structure has no member named `st_atim'
file.c:863: structure has no member named `st_mtim'
file.c:864: structure has no member named `st_ctim'
file.c: In function `convertoldstat':
file.c:906: structure has no member named `st_atim'
file.c:906: structure has no member named `st_atim'
file.c:907: structure has no member named `st_mtim'
file.c:907: structure has no member named `st_mtim'
file.c:908: structure has no member named `st_ctim'
file.c:908: structure has no member named `st_ctim'
file.c: In function `sys_getdents64':
file.c:1925: warning: long unsigned int format, different type arg (arg 3)
file.c:1925: warning: long unsigned int format, different type arg (arg 4)
file.c: At top level:
file.c:633: warning: `fileflags' defined but not used
make: *** [file.o] Error 1

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Duron(tm) processor
GENTOO_MIRRORS="http://www.ibiblio.org/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"

CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/kde/3.1/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="/mnt/zeta/var/portage-tmp"
PORTDIR_OVERLAY="/usr/portage/LOCAL"
USE="x86 oss 3dnow apm avi crypt encode gif java jpeg libg++ mikmod mmx mpeg ncurses pdflib png quicktime spell xml2 xmms xv zlib gdbm berkdb slang readline ruby sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt opengl cdr arts kde -nls gnome -motif cups aalib directfb fbcon svga truetype X"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 8 Kurt Hindenburg 2003-06-12 14:36:39 UTC
Anyway, I got strace 4.4.94 to compile O.K.