Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180922 - sys-apps/sparc-utils-1.9-r4 does not build
Summary: sys-apps/sparc-utils-1.9-r4 does not build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Sparc64 Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-05 03:56 UTC by Andrey Kolbasenko
Modified: 2007-06-07 04:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kolbasenko 2007-06-05 03:56:28 UTC
>>> 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
>>> Unpacking source...
>>> Unpacking sparc-utils_1.9.orig.tar.gz to /var/tmp/portage/sys-apps/sparc-utils-1.9-r4/work
>>> 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 ]
>>> Source unpacked.
>>> 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'
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 "Elf32_Phdr"
elftoaout.c:63: warning: no semicolon at end of struct or union
elftoaout.c:65: error: syntax error before '}' token
elftoaout.c:65: warning: data definition has no type or storage class
elftoaout.c:68: error: syntax error before "Elf64_Phdr"
elftoaout.c:68: warning: no semicolon at end of struct or union
elftoaout.c:70: error: syntax error before '}' token
elftoaout.c:70: warning: data definition has no type or storage class
elftoaout.c:72: error: syntax error before '*' token
elftoaout.c:73: error: syntax error before '*' token
elftoaout.c:74: error: syntax error before '*' token
elftoaout.c:75: error: syntax error before '*' token
elftoaout.c:83: error: syntax error before '*' token
elftoaout.c:84: error: syntax error before '*' token
elftoaout.c:90: error: syntax error before '*' token
elftoaout.c: In function `main':
....
elftoaout.c:138: error: previous declaration of 'store_image' was here
elftoaout.c:550: error: conflicting types for 'store_image'
elftoaout.c:138: error: previous declaration of 'store_image' 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'

!!! 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 'src_compile'
  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="sparc ~sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/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"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS=""
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="sunffb"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Reproducible: Always
Comment 1 Gustavo Zacarias (RETIRED) gentoo-dev 2007-06-05 12:45:09 UTC
Try with stable headers for the time being, i'll look into this when i've got some time.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2007-06-06 08:47:31 UTC
Including elf.h instead of linux/elf.h worked for me. Just add the following sed after epatch in the ebuild:

sed -i -e 's:#include <linux/elf.h>:#include <elf.h>:' ${S}/elftoaout*/elftoaout.c

hth
Comment 3 Andrey Kolbasenko 2007-06-06 09:27:33 UTC
(In reply to comment #2)
> Including elf.h instead of linux/elf.h worked for me.


Yes, it's worked. Thanks!
Comment 4 Gustavo Zacarias (RETIRED) gentoo-dev 2007-06-06 15:56:25 UTC
Fixed in -r4 since it's a build issue, thanks Xavier.
Andrey: BTW, next time don't close the bug until it's really fixed (in the tree) - otherwise we could miss it and pop up for others users too.
Comment 5 Andrey Kolbasenko 2007-06-07 04:14:57 UTC
(In reply to comment #4)
> Fixed in -r4 since it's a build issue, thanks Xavier.
> Andrey: BTW, next time don't close the bug until it's really fixed (in the
> tree) - otherwise we could miss it and pop up for others users too.

OK, I'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