<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>180922</bug_id>
          
          <creation_ts>2007-06-05 03:56 0000</creation_ts>
          <short_desc>sys-apps/sparc-utils-1.9-r4 does not build</short_desc>
          <delta_ts>2007-06-07 04:14:57 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>Sparc64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>edge@smtn.stavropol.ru</reporter>
          <assigned_to>sparc@gentoo.org</assigned_to>
          <cc>neysx@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>edge@smtn.stavropol.ru</who>
            <bug_when>2007-06-05 03:56:28 0000</bug_when>
            <thetext>&gt;&gt;&gt; Emerging (1 of 3) sys-apps/sparc-utils-1.9-r4 to /
 * sparc-utils_1.9.orig.tar.gz RMD160 ;-) ...                                                                                 [ ok ]
 * sparc-utils_1.9.orig.tar.gz SHA1 ;-) ...                                                                                   [ ok ]
 * sparc-utils_1.9.orig.tar.gz SHA256 ;-) ...                                                                                 [ ok ]
 * sparc-utils_1.9.orig.tar.gz size ;-) ...                                                                                   [ ok ]
 * sparc-utils_1.9-3.diff.gz RMD160 ;-) ...                                                                                   [ ok ]
 * sparc-utils_1.9-3.diff.gz SHA1 ;-) ...                                                                                     [ ok ]
 * sparc-utils_1.9-3.diff.gz SHA256 ;-) ...                                                                                   [ ok ]
 * sparc-utils_1.9-3.diff.gz size ;-) ...                                                                                     [ ok ]
 * checking ebuild checksums ;-) ...                                                                                          [ ok ]
 * checking auxfile checksums ;-) ...                                                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                                                                        [ ok ]
 * checking sparc-utils_1.9.orig.tar.gz ;-) ...                                                                               [ ok ]
 * checking sparc-utils_1.9-3.diff.gz ;-) ...                                                                                 [ ok ]
 * Linux 2.6 kernel headers detected, not building audioctl
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking sparc-utils_1.9.orig.tar.gz to /var/tmp/portage/sys-apps/sparc-utils-1.9-r4/work
&gt;&gt;&gt; Unpacking sparc-utils_1.9-3.diff.gz to /var/tmp/portage/sys-apps/sparc-utils-1.9-r4/work
 * Applying sparc-utils_1.9-3.diff ...                                                                                        [ ok ]
&gt;&gt;&gt; Source unpacked.
&gt;&gt;&gt; Compiling source in /var/tmp/portage/sys-apps/sparc-utils-1.9-r4/work/sparc-utils-1.9.orig ...
make: Entering directory `/var/tmp/portage/sys-apps/sparc-utils-1.9-r4/work/sparc-utils-1.9.orig/elftoaout-2.3&apos;
sparc-unknown-linux-gnu-gcc -O2 -mcpu=ultrasparc -pipe -o elftoaout elftoaout.c
elftoaout.c:24:23: linux/elf.h: Нет такого файла или каталога
elftoaout.c:63: error: syntax error before &quot;Elf32_Phdr&quot;
elftoaout.c:63: warning: no semicolon at end of struct or union
elftoaout.c:65: error: syntax error before &apos;}&apos; token
elftoaout.c:65: warning: data definition has no type or storage class
elftoaout.c:68: error: syntax error before &quot;Elf64_Phdr&quot;
elftoaout.c:68: warning: no semicolon at end of struct or union
elftoaout.c:70: error: syntax error before &apos;}&apos; token
elftoaout.c:70: warning: data definition has no type or storage class
elftoaout.c:72: error: syntax error before &apos;*&apos; token
elftoaout.c:73: error: syntax error before &apos;*&apos; token
elftoaout.c:74: error: syntax error before &apos;*&apos; token
elftoaout.c:75: error: syntax error before &apos;*&apos; token
elftoaout.c:83: error: syntax error before &apos;*&apos; token
elftoaout.c:84: error: syntax error before &apos;*&apos; token
elftoaout.c:90: error: syntax error before &apos;*&apos; token
elftoaout.c: In function `main&apos;:
....
elftoaout.c:138: error: previous declaration of &apos;store_image&apos; was here
elftoaout.c:550: error: conflicting types for &apos;store_image&apos;
elftoaout.c:138: error: previous declaration of &apos;store_image&apos; was here
make: *** [elftoaout] Ошибка 1
make: Leaving directory `/var/tmp/portage/sys-apps/sparc-utils-1.9-r4/work/sparc-utils-1.9.orig/elftoaout-2.3&apos;

!!! ERROR: sys-apps/sparc-utils-1.9-r4 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call &apos;src_compile&apos;
  ebuild.sh, line 44:   Called src_compile
  sparc-utils-1.9-r4.ebuild, line 36:   Called die



ftp ~ # emerge --info
Portage 2.1.2.9 (default-linux/sparc/sparc64/2006.1, gcc-3.4.6, glibc-2.5-r3, 2.6.21-gentoo-r2 sparc64)
=================================================================
System uname: 2.6.21-gentoo-r2 sparc64 sun4u
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 01 Jun 2007 10:30:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS=&quot;sparc ~sparc&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;sparc-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -mcpu=ultrasparc -pipe&quot;
CHOST=&quot;sparc-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -mcpu=ultrasparc -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;ru_RU.UTF-8&quot;
LC_ALL=&quot;&quot;
LINGUAS=&quot;&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;apache2 berkdb bitmap-fonts bzip2 cgi cli cracklib crypt ctype dba dri eds emboss encode fbcon foomaticdb fortran gcc64 gd gif gstreamer iconv isdnlog jpeg libwww mad midi mikmod mpeg mudflap mysql mysqli ncurses nls nptl nptlonly ogg openmp oss pam pcre pear perl php5 png posix pppd python readline reflection session sparc spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xsl zip zlib&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;sunffb&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2007-06-05 12:45:09 0000</bug_when>
            <thetext>Try with stable headers for the time being, i&apos;ll look into this when i&apos;ve got some time.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>neysx@gentoo.org</who>
            <bug_when>2007-06-06 08:47:31 0000</bug_when>
            <thetext>Including elf.h instead of linux/elf.h worked for me. Just add the following sed after epatch in the ebuild:

sed -i -e &apos;s:#include &lt;linux/elf.h&gt;:#include &lt;elf.h&gt;:&apos; ${S}/elftoaout*/elftoaout.c

hth</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>edge@smtn.stavropol.ru</who>
            <bug_when>2007-06-06 09:27:33 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Including elf.h instead of linux/elf.h worked for me.


Yes, it&apos;s worked. Thanks!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2007-06-06 15:56:25 0000</bug_when>
            <thetext>Fixed in -r4 since it&apos;s a build issue, thanks Xavier.
Andrey: BTW, next time don&apos;t close the bug until it&apos;s really fixed (in the tree) - otherwise we could miss it and pop up for others users too.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>edge@smtn.stavropol.ru</who>
            <bug_when>2007-06-07 04:14:57 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Fixed in -r4 since it&apos;s a build issue, thanks Xavier.
&gt; Andrey: BTW, next time don&apos;t close the bug until it&apos;s really fixed (in the
&gt; tree) - otherwise we could miss it and pop up for others users too.

OK, I&apos;m sorry.

sys-boot/silo-1.4.13 has the some problem:

main.c:28:22: asm/page.h: No such file or directory
main.c:29:23: linux/elf.h: No such file or directory

</thetext>
          </long_desc>
      
    </bug>

</bugzilla>