configure script returns following error: configure: *** UNIX VARIANTS *** checking "host headers version"... configure: error: cannot find UTS_RELEASE in <linux/version.h>. This Linux system may be misconfigured or unconfigured! !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/net-fs/am-utils-6.1.4/work/am-utils-6.1.4/config.log !!! ERROR: net-fs/am-utils-6.1.4 failed. Call stack: ebuild.sh, line 1632: Called dyn_compile ebuild.sh, line 983: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile am-utils-6.1.4.ebuild, line 32: Called econf '--with-ldap' '--sysconfdir=/etc/amd' ebuild.sh, line 586: Called die Several other resource I found say UTS_RELEASE is deprecated in linux/version.h and is now in linux/utsrelease.h. As a workaround, I echoed the contents of linux/utsrelease.h into linux/version.h, emerged am-utils package, then removed the added line from linux/version.h. Reproducible: Always Steps to Reproduce: 1. emerge am-utils emerge --info Portage 2.1.2.11 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r2 i686) ================================================================= System uname: 2.6.22-gentoo-r2 i686 Intel(R) Xeon(TM) CPU 2.66GHz Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 17 Aug 2007 03:30:02 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/common/admin/linux/gentoo/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo " PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage-cis" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl acpi apache2 berkdb bidi bitmap-fonts bzip2 cdr cli cracklib crypt cups cups_user_switch doc dri foomaticdb fortran fpx gdbm gif gpm iconv imagemagick imap isdnlog java jbig jpeg jpeg2k kerberos ldap lm_sensors maildir midi mng mudflap mysql ncurses nls nptl nptlonly openmp pam pam_console pcre pdf perl php png posix ppds pppd python quotas readline reflection rpc samba sasl session soap sockets spl sqlite ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode wmf x86 xml xml2 xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 129665 [details] full build.log
I know am-utils is masked for x86, but this should be relatively easy to patch.
(In reply to comment #0) > Several other resource I found say UTS_RELEASE is deprecated in linux/version.h > and is now in linux/utsrelease.h. Only since kernel 2.6.18 :P I wonder if there's anyone else using this package of whether it's essentially useless these days.
I'm using it on amd64. Apparently I must have built it when I had old enough linux headers on my machine, but now, with 2.6.22, 6.1.3 won't build because of this, and 6.1.4 won't either. As far as I can see, this was fixed by Erez in October 2006 (http://www.am-utils.org/docs/am-utils/ChangeLog.txt, search for UTS_RELEASE). There are probably more of us who have it installed with older include files but who will eventually run into problems if this bug doesn't get fixed.
Created attachment 132985 [details] A patch version ebuild Add patch of UTS_RELEASE and ./bootstrap
Created attachment 132986 [details, diff] am-utils-6.1.3-UTS_RELEASE.patch Fix the problem due to missing UTS_RELEASE since 2.6.18
Fixed with my net-fs/am-utils-6.1.5 commit, please test and reopen if it does not work.
(In reply to comment #7) > Fixed with my net-fs/am-utils-6.1.5 commit, please test and reopen if it does > not work. > I'm still having issues building am-utils-6.1.5 on a 2.6.26 kernel, and the error seems to be UTS_RELEASE related. I was unable to resolve the error by echoing utsrelease.h to verison.h and rebuilding, but I believe it's the same issue because I see the following when I run configure manually: # cd /var/tmp/portage/net-fs/am-utils-6.1.5/work/am-utils-6.1.5 # ./configure ... checking "host headers version"... configure: error: cannot find UTS_RELEASE in <linux/version.h>. This Linux system may be misconfigured or unconfigured! I have a different system running am-utils 6.1.5 and kernel 2.6.26, however am-utils was built a while back (prior to 2.6.26, but some time after this bug report). I'm not seeing any patches to my ebuild, so perhaps the patch worked in the past and is failing now. There may be another issue which just happen to be returning this error.
(In reply to comment #8) > (In reply to comment #7) > > Fixed with my net-fs/am-utils-6.1.5 commit, please test and reopen if it does > > not work. > > > > I'm still having issues building am-utils-6.1.5 on a 2.6.26 kernel, and the > error seems to be UTS_RELEASE related. I was unable to resolve the error by > echoing utsrelease.h to verison.h and rebuilding, but I believe it's the same > issue because I see the following when I run configure manually: > # cd /var/tmp/portage/net-fs/am-utils-6.1.5/work/am-utils-6.1.5 > # ./configure > ... > checking "host headers version"... > configure: error: cannot find UTS_RELEASE in <linux/version.h>. > This Linux system may be misconfigured or unconfigured! > > > I have a different system running am-utils 6.1.5 and kernel 2.6.26, however > am-utils was built a while back (prior to 2.6.26, but some time after this bug > report). I'm not seeing any patches to my ebuild, so perhaps the patch worked > in the past and is failing now. There may be another issue which just happen > to be returning this error. > It turns out my issue was actually caused by bug 220177. I was able to build am-utils on 2.6.26 by downgrading to autoconf 2.61-r2 and libtool 1.5.26. It's just coincidence that the configure which is generated by autoconf-2.63 has the version.h/utsrelease.h bug.