Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352635 - dev-python/python-iwscan-20080402 fails to build with >=net-wireless/wireless-tools-30_pre9
Summary: dev-python/python-iwscan-20080402 fails to build with >=net-wireless/wireless...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 21:53 UTC by jms
Modified: 2011-02-16 20:57 UTC (History)
3 users (show)

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


Attachments
build log python-iwscan-20080402 (dev-python:python-iwscan-20080402:20110124-214339.log,3.02 KB, text/plain)
2011-01-24 21:54 UTC, jms
Details
environment file (environment,140.12 KB, text/plain)
2011-01-24 21:55 UTC, jms
Details
patch for python-iwscan-20080402.ebuild (python-iwscan-20080402.ebuild.patch,545 bytes, patch)
2011-02-16 14:49 UTC, Alex D-Bug
Details | Diff
patch for pyiwscan.c wireless-tools-30 used (pyiwscan.c.wireless-tools-30.patch,376 bytes, patch)
2011-02-16 14:50 UTC, Alex D-Bug
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jms 2011-01-24 21:53:03 UTC
python-iwscan-20080402 fail to compile with  iw-0.9.21

Reproducible: Always

Steps to Reproduce:
1.emerge iw-0.9.21
2.emerge python-iwscan-20080402
3.Building failed with CPython 2.6 in distutils_building()

Actual Results:  
no build



Building failed with CPython 2.6 in distutils_building()

Expected Results:  
build

creating build-2.6/temp.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -march=native -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/include/python2.6 -c pyiwscan.c -o build-2.6/temp.linux-x86_64-2.6/pyiwscan.o
pyiwscan.c:660: warning: initialization from incompatible pointer type
pyiwscan.c:664: warning: initialization from incompatible pointer type
pyiwscan.c:667: warning: initialization from incompatible pointer type
pyiwscan.c: In function ‘iwscan_enum_devices’:
pyiwscan.c:802: error: ‘PROC_NET_WIRELESS’ undeclared (first use in this function)
pyiwscan.c:802: error: (Each undeclared identifier is reported only once
pyiwscan.c:802: error: for each function it appears in.)
pyiwscan.c:805: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
pyiwscan.c:806: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: dev-python/python-iwscan-20080402 failed:
 *   Building failed with CPython 2.6 in distutils_building() function
Comment 1 jms 2011-01-24 21:54:18 UTC
Created attachment 260613 [details]
build log python-iwscan-20080402
Comment 2 jms 2011-01-24 21:55:02 UTC
Created attachment 260614 [details]
environment file
Comment 3 jms 2011-01-24 21:56:17 UTC
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.11.2-r3, 2.6.37-gentoo-jms-5.4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-jms-5.4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Mon, 24 Jan 2011 20:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en es fr en"
PKGDIR="/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="/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/gamerlay /usr/local/portage/jms /usr/local/portage/jms"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 ao apm autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus dga directfb dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gdu gif gimp glitz gnutls gphoto2 gpm gstreamer gtk gzip hal hdri iconv icq icu ieee1394 imagemagick imap imlib ipod ipv6 jabber jpeg jpeg2k kde kontact lame laptop lastfm lcms ldap libcaca libnotify libwww lm_sensor lzma lzo mad maildir matroska mdnsresponder-compat memlimit mhash mikmod mime mmap mmx mng modules motif mozilla mp3 mp4 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz mysql ncurse ncurses networkmanager nls nptl nptlonly nsplugin nvidia ofx ogg openal openexr opengl openmp oss pam pango pcmcia pcre pdf perl phonon php plasma png policykit ppds pppd projectm pulseaudio python qt3support qt4 quicktime raw readline scanner sdl semantic-desktop session smp speex spell sse sse2 ssl ssse3 startup-notification svg sysfs syslog taglib tcpd theora thumbnail tidy tiff truetype udev unicode usb v4l v4l2 vcd vdpau video vim-syntax vorbis webkit wifi x x264 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreesaver xulrunner xv xvid xvmc yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en es fr en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/python-iwscan-20080402 was built with the following:
USE="(multilib)"
LDFLAGS="-Wl,-O1"

Comment 4 jms 2011-01-24 22:08:51 UTC
this problem happen after doing an 
emerge --sync && emerge -pvuND world
this went fine
then to check all ok ->I did a
revdep-rebuild -ip

revdep-rebuild told me 
 * Checking dynamic linking consistency
[ 81% ]  *   broken /usr/lib64/python2.6/site-packages/iwscan.so (requires libiw.so.29)
[ 100% ]                 
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib64/python2.6/site-packages/iwscan.so -> dev-python/python-iwscan

then emerging python-iwscan fail

doing a 
lafilefixer --justfixit

no change

emerge --sync again => no change fail

and now even trying

downgrading to 
net-wireless/iw-0.9.17 
and building
dev-python/python-iwscan-20080402
will still fail
Comment 5 Dmitri 2011-02-04 05:49:07 UTC
python-updater did not help either
Comment 6 jms 2011-02-05 20:01:03 UTC
well python updater didn't work for me either.

I think this package is not compatible with python 2.6.4 and above.
this package is needed by wicd (flag ioctl)but wicd can works without it.

I removed it.

suggest checking python version compatibility and if this is the case amending ebuild python-iwscan  accordingly.

filed a bug upstream:
http://projects.otaku42.de/ticket/18


Comment 7 Alex D-Bug 2011-02-16 13:53:54 UTC
It's not a python related. Which version of wireless-tools you're using?
Comment 8 Alex D-Bug 2011-02-16 14:49:10 UTC
Created attachment 262735 [details, diff]
patch for python-iwscan-20080402.ebuild
Comment 9 Alex D-Bug 2011-02-16 14:50:54 UTC
Created attachment 262737 [details, diff]
patch for pyiwscan.c wireless-tools-30 used
Comment 10 Alex D-Bug 2011-02-16 14:54:45 UTC
Shortly, pyiwscan.c rely on PROC_NET_WIRELESS, which in wireless-tools-30 is not defined anymore in iwlib.h, but moved to iwlib-private.h
As quick worlaround, 2 patches, added above can be used =)
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-16 20:57:28 UTC
Fixed.