Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 143088
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Robin Johnson <robbat2@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Juergen Rose <rose@rz.uni-potsdam.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hwinfo-13.0-linux-headers-fix.patch files/hwinfo-13.0-linux-headers-fix.patch patch Marcus Furlong 2006-08-07 09:58 0000 610 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 143088 depends on: Show dependency tree
Bug 143088 blocks: 139837
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-08-07 07:00 0000
emerge hwinfo-13.0 fails on all my systems with:

gcc -c -Wall -Wno-pointer-sign -O2 -pipe -g -fPIC -O2 -march=pentium-m
-fomit-frame-pointer -I../../src/hd -I /usr/include/dbus-1.0 -I
/usr/lib64/dbus-1
.0/include -I /usr/lib/dbus-1.0/include veth.c
gcc -c -Wall -Wno-pointer-sign -O2 -pipe -g -fPIC -O2 -march=pentium-m
-fomit-frame-pointer -I../../src/hd -I /usr/include/dbus-1.0 -I
/usr/lib64/dbus-1
.0/include -I /usr/lib/dbus-1.0/include wlan.c
wlan.c: In function 'wpa_driver_wext_set_wpa':
wlan.c:1065: error: 'SIOCSIWAUTH' undeclared (first use in this function)
wlan.c:1065: error: (Each undeclared identifier is reported only once

thinkpad ~ # emerge --info
\Portage 2.1.1_pre4-r4 (default-linux/x86/2006.0, gcc-4.1.1/hardened,
glibc-2.4-r3, 2.6.18-rc2 i686)
=================================================================
System uname: 2.6.18-rc2 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.12.4
Last Sync: Mon, 07 Aug 2006 12:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler
/etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms
strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.caliu.info/pub/gentoo/ http://ftp.caliu.info/pub/gentoo/ ftp:/
/vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
http://www.gigaload.org/gentoo.org/"
LINGUAS="de fr"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac acpi alsa amrr ao aotuv apache2 arts asf atlas auctex
audiofile automount avi berkdb bitmap-fonts blas bonobo bzip2 cairo cardbus
cdda cddb cdf cdio cdparanoia cdr cgi cli co
rba crypt cups curl daap dbus devmap dga dlloader dri dvb dvd dvi dxr3
dynagraph eds effects elf elibc_glibc emacs emboss encode epiphany esd evo
evolution exif expat fam fame ffmpeg fftw fits flac f
ltk foomaticdb fortran fpx gdal gdbm geos gif gimp ginac glade glitz gml gmp
gnome gnuplot gphoto2 gpm graphviz grass gs gsl gsm gstreamer gtk gtk2 guile
hal hardened hddtemp hdf hdf5 hlapi icq id3 i
magemagick imlib innodb input_devices_keyboard input_devices_mouse
input_devices_synaptics ipv6 isdnlog jabber jbig john jp2 jpeg jpeg2k kde
kernel_linux kexi lame lapack latex lcms ldap libg++ libgd
a libsamplerate libwww linguas_de linguas_fr lirc lua lzo lzw mad madwifi math
matroska mikmod mmx mmxext mng mod mono motif mozcalendar mozdevelop mozilla
mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mp
layer musicbrainz mysql mysqli nautilus ncurses netcdf network nfs nls nntp
nptl nptlonly ntfs numarray numeric ocaml octave odbc ogdi ogg opengl oss pam
pcre pdf pdflib perl plotutils plugin png pos
ix postgres pppd proj python qhull qt qt3 qt4 quicktime readline real
reflection reiserfs rhythmbox rle rrdcgi rrdtool samba sdl session slang slp
sndfile snmp sox spell spl sqlite sse sse2 ssl subti
tles svg t1lib tcltk tcpd tetex theora tidy tiff truetype truetype-fonts
type1-fonts udev unicode userland_GNU v4l2 video_cards_fbdev video_cards_radeon
video_cards_vesa vorbis wifi win32codecs wmf x
emacs xext xine xml xml2 xmlreader xmlrpc xmms xorg xpm xv xvid xvmc zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

   Regards Juergen

------- Comment #1 From Marcus Furlong 2006-08-07 09:41:26 0000 -------
gcc -c -fPIC -O2 -march=pentium-m -pipe -fomit-frame-pointer -I../../src/hd -I
/usr/include/dbus-1.0 -I /usr/lib64/dbus-1.0/include -I
/usr/lib/dbus-1.0/include wlan.c
wlan.c: In function `wpa_driver_wext_set_wpa':
wlan.c:1065: error: `SIOCSIWAUTH' undeclared (first use in this function)
wlan.c:1065: error: (Each undeclared identifier is reported only once
wlan.c:1065: error: for each function it appears in.)
wlan.c: In function `wpa_driver_wext_set_auth_alg':
wlan.c:1080: error: `IW_AUTH_ALG_OPEN_SYSTEM' undeclared (first use in this
function)
wlan.c:1082: error: `IW_AUTH_ALG_SHARED_KEY' undeclared (first use in this
function)
wlan.c:1084: error: `IW_AUTH_ALG_LEAP' undeclared (first use in this function)
wlan.c:1092: error: `IW_AUTH_80211_AUTH_ALG' undeclared (first use in this
function)
wlan.c:1098: error: `SIOCSIWAUTH' undeclared (first use in this function)
wlan.c: In function `wpa_driver_wext_set_key':
wlan.c:1114: error: `IW_ENCODE_SEQ_MAX_SIZE' undeclared (first use in this
function)
wlan.c:1118: error: dereferencing pointer to incomplete type
wlan.c:1121: error: dereferencing pointer to incomplete type
wlan.c:1128: error: dereferencing pointer to incomplete type
wlan.c:1132: error: dereferencing pointer to incomplete type
wlan.c:1132: error: `IW_ENCODE_EXT_GROUP_KEY' undeclared (first use in this
function)
wlan.c:1134: error: dereferencing pointer to incomplete type
wlan.c:1134: error: `IW_ENCODE_EXT_SET_TX_KEY' undeclared (first use in this
function)
wlan.c:1138: error: dereferencing pointer to incomplete type
wlan.c:1140: error: dereferencing pointer to incomplete type
wlan.c:1142: error: invalid use of undefined type `struct iw_encode_ext'
wlan.c:1143: error: dereferencing pointer to incomplete type
wlan.c:1147: error: dereferencing pointer to incomplete type
wlan.c:1147: error: `IW_ENCODE_ALG_NONE' undeclared (first use in this
function)
wlan.c:1150: error: dereferencing pointer to incomplete type
wlan.c:1150: error: `IW_ENCODE_ALG_WEP' undeclared (first use in this function)
wlan.c:1153: error: dereferencing pointer to incomplete type
wlan.c:1153: error: `IW_ENCODE_ALG_TKIP' undeclared (first use in this
function)
wlan.c:1156: error: dereferencing pointer to incomplete type
wlan.c:1156: error: `IW_ENCODE_ALG_CCMP' undeclared (first use in this
function)
wlan.c:1164: error: dereferencing pointer to incomplete type
wlan.c:1164: error: `IW_ENCODE_EXT_RX_SEQ_VALID' undeclared (first use in this
function)
wlan.c:1165: error: dereferencing pointer to incomplete type
wlan.c:1171: error: `SIOCSIWENCODEEXT' undeclared (first use in this function)
make[2]: *** [wlan.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/hwinfo-13.0/work/hwinfo-13.0/src/hd'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/var/tmp/portage/hwinfo-13.0/work/hwinfo-13.0/src'
make: *** [subdirs] Error 2

------- Comment #2 From Marcus Furlong 2006-08-07 09:43:21 0000 -------
There are a few solutions and most revolve around using the file
wireless_copy.h from the wpa_supplicant tarball. This is the approach used by
Debian with older linux headers and it works fine.

1) Store wireless_copy.h in the files directory, patch wlan.c to use it
instead, and copy it over during src_unpack. The problem is that
wireless_copy.h is 44K and the guidelines prefer nothing above 20K.

2) Have the ebuild download the wpa_supplicant package and copy it out from
there.

3) Wait for a newer version of linux-headers to be marked stable.

------- Comment #3 From Marcus Furlong 2006-08-07 09:58:41 0000 -------
Created an attachment (id=93675) [details]
files/hwinfo-13.0-linux-headers-fix.patch

This patch depends on wireless_copy.h from package wpa_supplicant being copied
to the src/hd/ directory.

------- Comment #4 From Jakub Moc (RETIRED) 2006-09-20 03:35:44 0000 -------
*** Bug 148314 has been marked as a duplicate of this bug. ***

------- Comment #5 From Robin Johnson 2006-09-28 19:16:51 0000 -------
deps fixed - to indicate that 2.6.17 headers should be used.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug