Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68537 - emerge net-wireless/hostap-driver-0.2.4 fails to compile
Summary: emerge net-wireless/hostap-driver-0.2.4 fails to compile
Status: RESOLVED DUPLICATE of bug 69281
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 05:52 UTC by Nils Marving
Modified: 2005-07-17 13:06 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 Nils Marving 2004-10-22 05:52:41 UTC
When emerging net-wireless/hostap-driver-0.2.4, emerge fails during compilation as described below. The kernel is development-sources-2.6.8.1 and -2.6.9, both return the same failure. The /usr/src/linux symlink is verified correctly. The machine is runnning ~x86.

Reproducible: Always
Steps to Reproduce:
1.emerge net-wireless/hostap-driver
Actual Results:  
 * Building hostap-driver for kernel version: 2.6.9 
Makefile:42: WARNING: No kernel PCMCIA support found and PCMCIA_PATH is not 
defined 
/bin/sh: -I/usr/src/linux/include: No such file or directory 
*** Can't build for 2.6 with a non-2.6 source! 
make: *** [2.6] Error 1 
 
!!! ERROR: net-wireless/hostap-driver-0.2.4 failed. 
!!! Function src_compile, Line 65, Exitcode 2 
!!! make failed 
 

Expected Results:  
Emerged correctly. 

Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 
2.6.8.1 i686) 
================================================================= 
System uname: 2.6.8.1 i686 Celeron (Coppermine) 
Gentoo Base System version 1.5.3 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86 ~x86" 
ACCEPT_LICENSE="" 
ARCH="x86" 
AUTOCLEAN="yes" 
BASH_ENV="/etc/spork/is/not/valid/profile.env" 
CFLAGS="-Os -march=pentium3 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CLEAN_DELAY="5" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CVS_RSH="ssh" 
CXXFLAGS="-Os -march=pentium3 -pipe -fomit-frame-pointer" 
DISPLAY="localhost:10.0" 
DISTDIR="/usr/portage/distfiles" 
EDITOR="/usr/bin/vim" 
FEATURES="autoaddcvs ccache distlocks sandbox" 
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" 
GCC_SPECS="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs" 
GDK_USE_XFT="1" 
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ 
ftp://ftp.easynet.nl/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ 
http://ftp.easynet.nl/mirror/gentoo/ 
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gentoo.mirror.icd.hu/ 
ftp://ftp.du.se/pub/os/gentoo http://mir.zyrianes.net/gentoo/ 
ftp://mir.zyrianes.net/gentoo/" 
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl 
ncurses" 
G_BROKEN_FILENAMES="1" 
HOME="/root" 
HOSTNAME="sokrates" 
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info" 
LANG="en_US.UTF-8" 
LC_MEASUREMENT="en_IN.UTF-8" 
LC_MONETARY="da_DK.UTF-8" 
LC_PAPER="en_IN.UTF-8" 
LC_TELEPHONE="da_DK.UTF-8" 
LC_TIME="en_IN.UTF-8" 
LESS="-R" 
LESSOPEN="|lesspipe.sh %s" 
LOGNAME="root" 
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:" 
MAIL="/var/mail/root" 
MAKEOPTS="-j2" 
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man:/usr/share/man:/usr/qt/3/doc/man" 
NOCOLOR="false" 
OLDPWD="/usr/src/linux" 
PAGER="/usr/bin/less" 
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4:/usr/X11R6/bin:/usr/qt/3/bin:/usr/local/sbin" 
PKGDIR="/usr/portage/packages" 
PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 macos mips ppc ppc64 ppc-macos 
s390 sparc x86 x86-obsd x86-fbsd" 
PORTAGE_BINHOST_CHUNKSIZE="3000" 
PORTAGE_CALLER="emerge" 
PORTAGE_GID="250" 
PORTAGE_MASTER_PID="14738" 
PORTAGE_NICENESS="10" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/home/portage" 
PRELINK_PATH="" 
PRELINK_PATH_MASK="" 
PWD="/root" 
QMAKESPEC="linux-g++" 
QTDIR="/usr/qt/3" 
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" 
RPMDIR="/usr/portage/rpm" 
RSYNC_RETRIES="3" 
RSYNC_TIMEOUT="180" 
SHELL="/bin/bash" 
SHLVL="1" 
SSH_CLIENT="130.225.86.73 33170 22" 
SSH_CONNECTION="130.225.86.73 33170 83.72.131.235 22" 
SSH_TTY="/dev/pts/0" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
TERM="xterm" 
USE="X aalib acpi alsa apache2 audiofile avi bcmath berkdb bitmap-fonts bzlib 
cddb crypt cups curl dba dedicated encode exif flac foomaticdb gd gdbm gif gtk 
gtk2 imap imlib jabber jpeg libg++ libwww mad maildir mikmod milter mmx mng 
motif mozilla mpeg msn mysql ncurses nls nptl offensive oggvorbis openal 
opengl pam pcre pdflib perl php pic pie png posix ppds python qt quicktime 
readline recode samba sdl slang snmp speex spell sse ssl svg szip tcpd theora 
threads tidy tiff truetype unicode usb vhosts wmf wxwindows x86 xml2 xpm 
xprint xv xvid zlib" 
USER="root" 
USERLAND="GNU" 
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS" 
XARGS="xargs -r" 
XINITRC="/etc/X11/xinit/xinitrc" 
_="/usr/bin/emerge"
Comment 1 Nils Marving 2004-10-22 06:25:48 UTC
The hostap-driver-0.2.5 source available from http://hostap.epitest.fi/ can be built on the same machine without any problems.
Comment 2 Henrik Brix Andersen 2004-10-22 07:40:54 UTC
What does 'ls -ld /usr/src/linux' say?
Comment 3 Henrik Brix Andersen 2004-10-24 04:19:59 UTC
Reporter, please answer the above question so we can help resolving the problem.
Comment 4 Nils Marving 2004-10-25 02:41:53 UTC
# ls -ld /usr/src/linux
lrwxrwxrwx  1 root root 20 Oct 22 13:28 /usr/src/linux -> /usr/src/linux-2.6.9

which is not the currently runnung kernel, I wan't to reach the machine over the hostap network card... The 2.6.9, has had a "make oldconfig" and "make && make modules_install && make install" without complaints, where the oldconfig came from the currently running 2.6.8.1 kernel. The ebuild doesn't work with the symlink pointing to /usr/src/linux-2.6.8.1 anymore, though that's the currently running setup!
Comment 5 Henrik Brix Andersen 2004-10-25 05:25:21 UTC
It is Gentoo policy not to build against the currently running kernel, but to build against the kernel source found in /usr/src/linux/.

Does the kernel found in /usr/src/linux/ build, install and work as it should?
Comment 6 Henrik Brix Andersen 2004-10-25 08:26:35 UTC
Please check if net-wireless/hostap-driver-0.2.5 fixes this issue.
Comment 7 Nils Marving 2004-10-26 03:09:40 UTC
I've tried to emerge ver 0.2.5 and looked a little further. The ebuild modifies the Makefile and while most changes make sense, the line "CC=gcc" is changed to "CC=". This obviously causes sh to complain about the compile commands, althought is wasn't clear at first. Note: I've tried the same emerge on another machine with very similar make.conf (it's a p4 not a p3, and it's got kde desktop as well) also running ~x86, with the same error. It could be a case of bad "'s (g
Comment 8 Nils Marving 2004-10-26 03:09:40 UTC
I've tried to emerge ver 0.2.5 and looked a little further. The ebuild modifies the Makefile and while most changes make sense, the line "CC=gcc" is changed to "CC=". This obviously causes sh to complain about the compile commands, althought is wasn't clear at first. Note: I've tried the same emerge on another machine with very similar make.conf (it's a p4 not a p3, and it's got kde desktop as well) also running ~x86, with the same error. It could be a case of bad "'s (gåseøjne in danish)?

The version 0.2.4 ebuild used to work some time ago, since that is the currently running module, but since then, a new portage has come out along with a lot of other changes.
Comment 9 Henrik Brix Andersen 2004-10-26 03:17:48 UTC
I've removed the $CC substitution in hostap-driver-0.2.5.ebuild version 1.2.

Wait a little while, emerge --sync, and see if this fixes the problem for you.

--
... og hyg dig ovre p
Comment 10 Henrik Brix Andersen 2004-10-26 03:17:48 UTC
I've removed the $CC substitution in hostap-driver-0.2.5.ebuild version 1.2.

Wait a little while, emerge --sync, and see if this fixes the problem for you.

--
... og hyg dig ovre på DTU ;)
Comment 11 Nils Marving 2004-10-27 04:41:10 UTC
0.2.5 is working now. I wonder, should CC be set or is that a change of design in portage these days?
Comment 12 Henrik Brix Andersen 2004-11-02 07:02:53 UTC
Reopening
Comment 13 Henrik Brix Andersen 2004-11-02 07:03:18 UTC
There were some changes in portage, it appears.

*** This bug has been marked as a duplicate of 69281 ***