Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284682 - net-wireless/wireless-tools-29 (30_pre6, 30_pre7) fails to build
Summary: net-wireless/wireless-tools-29 (30_pre6, 30_pre7) fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://www.gentoo.ru/node/16551
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-12 12:16 UTC by Nightwolf_ng
Modified: 2009-09-12 23:29 UTC (History)
2 users (show)

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


Attachments
wireless-tools-30_pre7.ebuild.patch to correct sed invocation (wireless-tools-30_pre7.ebuild.patch,416 bytes, patch)
2009-09-12 20:08 UTC, Gef
Details | Diff
patch for a new wireless-tools-30_pre8.ebuild ebuild, based on wireless-tools-30_pre7.ebuild (wireless-tools-30_pre8.ebuild.patch,625 bytes, patch)
2009-09-12 20:19 UTC, Gef
Details | Diff
wireless-tools-30_pre8.ebuild (wireless-tools-30_pre8.ebuild,1.98 KB, text/plain)
2009-09-12 20:38 UTC, Gef
Details
wireless-tools-30-asneeded.patch (wireless-tools-30-asneeded.patch,478 bytes, patch)
2009-09-12 20:38 UTC, Gef
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nightwolf_ng 2009-09-12 12:16:18 UTC
Can't emerge wireless-tools. Different versions failed with the same error...

Reproducible: Always

Steps to Reproduce:
1. sudo emerge wireless-tools
Actual Results:  
>>> Emerging (1 of 1) net-wireless/wireless-tools-29
 * wireless_tools.29.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking wireless_tools.29.tar.gz to /var/tmp/portage/net-wireless/wireless-tools-29/work
 * Applying wireless-tools-29-asneeded.patch ...                                                                                                       [ ok ]
>>> Source unpacked in /var/tmp/portage/net-wireless/wireless-tools-29/work
>>> Compiling source in /var/tmp/portage/net-wireless/wireless-tools-29/work/wireless_tools.29 ...
make -j5
cp wireless.21.h wireless.h
gcc -march=amdfam10 -O2 -pipe -MMD     -fPIC -c -o iwlib.so iwlib.c
gcc -march=amdfam10 -O2 -pipe -MMD     -c iwconfig.c
gcc -march=amdfam10 -O2 -pipe -MMD     -c iwlist.c
gcc -march=amdfam10 -O2 -pipe -MMD     -c iwpriv.c
gcc -march=amdfam10 -O2 -pipe -MMD     -c iwspy.c
gcc -march=amdfam10 -O2 -pipe -MMD     -c iwgetid.c
gcc -march=amdfam10 -O2 -pipe -MMD     -c iwevent.c
gcc -march=amdfam10 -O2 -pipe -MMD     -c ifrename.c
gcc -Wl,-O1 -shared -o libiw.so.29 oname,libiw.so.29  iwlib.so -lm -lc
gcc: oname,libiw.so.29: No such file or directory
make: *** [libiw.so.29] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: net-wireless/wireless-tools-29 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2325:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-wireless:wireless-tools-29:20090912-121310.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/wireless-tools-29/temp/environment'.
 *

>>> Failed to emerge net-wireless/wireless-tools-29, Log file:

>>>  '/var/log/portage/net-wireless:wireless-tools-29:20090912-121310.log'


sudo emerge --info
Portage 2.2_rc40 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4-12.09.09 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-12.09.09-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 12 Sep 2009 10:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests candy ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/rostov /usr/portage/local/layman/qutim-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 amr apache apache2 audiofile avahi bash-completion berkdb branding bzip2 cdda cddb cdio cdr chardet chm cli cpudetection cracklib crypt cups custom-cflags custom-cxxflags custom-optimization dbus dhcp djvu dri dts dv dvb dvd dvdr dvdread encode eselect fam ffmpeg firefox flac fluidsynth fontconfig fontforge foomaticdb fortran ftp gdbm gif gimp git glib gnutls gpm gstreamer hal httpd iconv icq icu id3tag imagemagick imlib irc isdnlog jabber java javascript joystick jpeg jpeg2k kerberos kipi lame lcms lirc live lm_sensors logitech-mouse logrotate lzo mad matroska mmx mmxext mng modplug mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack mysql nas ncurses network networkmanager nls nptl nptlonly nsplugin ntfs ogg openal opengl openmp pam pch pcre pda pdf perl php png policykit posix pppd python qt3support qt4 quicktime rar rcc rdesktop readline reflection rtc samba scanner sdl semantic-desktop server session sid slang smp sndfile snmp speex spell spl srt sse sse2 sse3 sse4 ssh ssl ssse3 startup-notification subversion svg symlink sysfs taglib tcpd theora threads thumbnail tiff truetype twolame udev unicode upnp usb userlocales v4l v4l2 vcd vorbis wavpack webkit wma wmf x264 xcomposite xml xorg xosd xpm xulrunner xv xvid xvmc zip zlib zvbi" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="sa315" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marco 2009-09-12 17:09:10 UTC
Looks like there is an error in the 'sed' script, which is applied after the patch file wireless-tools-29-asneeded.patch.
In the resulting Makefile is someting missing.

$(CC) $(LDFLAGS) -shared -o $@ oname,$@ $(STRIPFLAGS) $^ $(LIBS) -lc

Should be:
$(CC) $(LDFLAGS) -shared -o $@ -soname,$@ $(STRIPFLAGS) $^ $(LIBS) -lc
Comment 2 Nightwolf_ng 2009-09-12 19:03:15 UTC
(In reply to comment #1)
> Looks like there is an error in the 'sed' script, which is applied after the
> patch file wireless-tools-29-asneeded.patch.

Unfortunately, I don't know how to fix it :-(
Comment 3 Gef 2009-09-12 20:08:34 UTC
Created attachment 203880 [details, diff]
wireless-tools-30_pre7.ebuild.patch to correct sed invocation

(very) Simple patch to correct sed invocation.
Comment 4 Nightwolf_ng 2009-09-12 20:18:30 UTC
(In reply to comment #3)
> Created an attachment (id=203880) [edit]
> wireless-tools-30_pre7.ebuild.patch to correct sed invocation
> 
> (very) Simple patch to correct sed invocation.
> 

Thank you so much! Now it works!
Comment 5 Gef 2009-09-12 20:19:49 UTC
Created attachment 203881 [details, diff]
patch for a new wireless-tools-30_pre8.ebuild ebuild, based on wireless-tools-30_pre7.ebuild

I think we should rather work on =wireless-tools-30_pre8. In this _pre8 version, stripping as been made conditional with a Makefile variable, above hack is not needed anymore.

However there is still a QA Warning about LDFLAGS :
* QA Notice: Files built without respecting LDFLAGS have been detected
*  Please include the following list of files in your report:
* /lib/libiw.so.30

A patch against wireless-tools-30_pre8.ebuild (local bump) is attached : I made so change to man files handling, because Makefile handles it correctly.
I need some help to correct the Makefile for correct LDFLAGS usage.
Comment 6 Gef 2009-09-12 20:31:57 UTC
Silly me, ${FILESDIR} had the correct patch, that just needed to be modified for ${PN}-30. wireless-tools-30_pre8 now unpacks, patches, compiles and merges without problems. I'll provided all needed files.
Comment 7 Gef 2009-09-12 20:38:07 UTC
Created attachment 203883 [details]
wireless-tools-30_pre8.ebuild

wireless-tools-30_pre8.ebuild
Comment 8 Gef 2009-09-12 20:38:46 UTC
Created attachment 203885 [details, diff]
wireless-tools-30-asneeded.patch
Comment 9 Gef 2009-09-12 20:40:20 UTC
Comment on attachment 203885 [details, diff]
wireless-tools-30-asneeded.patch

To be saved un ${FILESDIR}
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-09-12 23:29:28 UTC
Whoopsies, this was me, I've fixed the failure; for the bump please check there is a bug already (and I'm not picking it up just yet).