Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] emerge don't see my kernel .config...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pajter
n00b
n00b


Joined: 14 Apr 2005
Posts: 24

PostPosted: Sat Jan 12, 2008 6:45 pm    Post subject: [SOLVED] emerge don't see my kernel .config... Reply with quote

Code:

radem piotr # emerge -av ipw3945                                                                                                                                                                       [19:41]

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-wireless/ipw3945-1.2.2  USE="-debug" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-wireless/ipw3945-1.2.2 to /
 * ipw3945-1.2.2.tgz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                     [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                     [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                    [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                   [ ok ]
 * checking ipw3945-1.2.2.tgz ;-) ...                                                                                                                                                                    [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.22-suspend2-r2-radem
/usr/portage/eclass/linux-info.eclass: line 200: [: 26: integer expression expected
/usr/portage/eclass/linux-info.eclass: line 200: [: 2622: integer expression expected
/usr/portage/eclass/linux-info.eclass: line 200: [: 26: integer expression expected
 * Checking for suitable kernel configuration options...
 *   CONFIG_WIRELESS_EXT:        is not set when it should be.
 *   ipw3945-1.2.2 requires Hotplug firmware loading support (CONFIG_FW_LOADER).
 *   ipw3945-1.2.2 requires support for Generic IEEE 802.11 Networking Stack (CONFIG_IEEE80211).
 *   CONFIG_IEEE80211_CRYPT_CCMP:        is not set when it should be.
 *   CONFIG_IEEE80211_CRYPT_TKIP:        is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Once you have satisfied these options, please try merging
 * this package again.
 *
 * ERROR: net-wireless/ipw3945-1.2.2 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called pkg_setup
 *    ipw3945-1.2.2.ebuild, line   42:  Called linux-mod_pkg_setup
 *        linux-mod.eclass, line  465:  Called linux-info_pkg_setup
 *       linux-info.eclass, line  576:  Called check_extra_config
 *       linux-info.eclass, line  475:  Called die
 * The specific snippet of code:
 *              die "Incorrect kernel configuration options"
 *  The die message:
 *   Incorrect kernel configuration options
 *
 * 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:ipw3945-1.2.2:20080112-184241.log'.
 * The ebuild environment file is located at '/tmp/portage/portage/net-wireless/ipw3945-1.2.2/temp/die.env'.
 *

 * Messages for package net-wireless/ipw3945-1.2.2:

 *   CONFIG_WIRELESS_EXT:        is not set when it should be.
 *   ipw3945-1.2.2 requires Hotplug firmware loading support (CONFIG_FW_LOADER).
 *   ipw3945-1.2.2 requires support for Generic IEEE 802.11 Networking Stack (CONFIG_IEEE80211).
 *   CONFIG_IEEE80211_CRYPT_CCMP:        is not set when it should be.
 *   CONFIG_IEEE80211_CRYPT_TKIP:        is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Once you have satisfied these options, please try merging
 * this package again.
 *
 * ERROR: net-wireless/ipw3945-1.2.2 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called pkg_setup
 *    ipw3945-1.2.2.ebuild, line   42:  Called linux-mod_pkg_setup
 *        linux-mod.eclass, line  465:  Called linux-info_pkg_setup
 *       linux-info.eclass, line  576:  Called check_extra_config
 *       linux-info.eclass, line  475:  Called die
 * The specific snippet of code:
 *              die "Incorrect kernel configuration options"
 *  The die message:
 *   Incorrect kernel configuration options
 *
 * 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:ipw3945-1.2.2:20080112-184241.log'.
 * The ebuild environment file is located at '/tmp/portage/portage/net-wireless/ipw3945-1.2.2/temp/die.env'.
 *




and:
Code:

radem piotr # cd /usr/src/linux                                                                                                                                                                        [19:44]
radem linux # grep "CONFIG_WIRELESS_EXT\|CONFIG_IEEE80211_CRYPT_CCMP\|CONFIG_IEEE80211_CRYPT_TKIP" .config                                                                                             [19:44]
CONFIG_WIRELESS_EXT=y
CONFIG_IEEE80211_CRYPT_CCMP=y
CONFIG_IEEE80211_CRYPT_TKIP=y

radem piotr # emerge --info                                                                                                                                                                            [19:42]
Portage 2.1.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.7-r0, 2.6.22-suspend2-r2-radem i686)
=================================================================
System uname: 2.6.22-suspend2-r2-radem i686 Intel(R) Core(TM) Duo CPU T2350 @ 1.86GHz
Timestamp of tree: Sat, 12 Jan 2008 17:16:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.4-r6, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.romnet.org/gentoo/ http://mirror.bih.net.ba/gentoo/"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j 4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog kde lm_sensors midi mmx mmxext mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl truetype truetype-fonts type1 type1-fonts unicode wifi x86 xorg zlib" ALSA_CARDS="hda-intel" 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" 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 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" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="vesa vga fbdev i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

radem piotr # readlink /usr/src/linux                                                                                                                                                                  [19:44]
linux-2.6.22-suspend2-r2
radem piotr # uname -a                                                                                                                                                                                 [19:44]
Linux radem 2.6.22-suspend2-r2-radem #1 SMP Sat Jan 12 19:22:22 CET 2008 i686 Intel(R) Core(TM) Duo CPU T2350 @ 1.86GHz GenuineIntel GNU/Linux



I can't emerge anything that checking .config kernel - ipw3945 / alsa / bluez... nothing. :/


Last edited by pajter on Sun Jan 13, 2008 9:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Jan 12, 2008 7:34 pm    Post subject: Reply with quote

Code:
 *  CONFIG_WIRELESS_EXT:        is not set when it should be.
 *   CONFIG_IEEE80211_CRYPT_CCMP:        is not set when it should be.
 *   CONFIG_IEEE80211_CRYPT_TKIP:        is not set when it should be.

That means you need to change your kernel config and enable those options.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sat Jan 12, 2008 7:52 pm    Post subject: Reply with quote

Have a look at his second code tag - the options are set.
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9005
Location: beyond the rim

PostPosted: Sat Jan 12, 2008 8:42 pm    Post subject: Reply with quote

Code:
/usr/portage/eclass/linux-info.eclass: line 200: [: 26: integer expression expected
/usr/portage/eclass/linux-info.eclass: line 200: [: 2622: integer expression expected
/usr/portage/eclass/linux-info.eclass: line 200: [: 26: integer expression expected

Those errors are likely the real issue.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Jan 12, 2008 8:47 pm    Post subject: Reply with quote

schachti wrote:
Have a look at his second code tag - the options are set.

:oops: my bad
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
pajter
n00b
n00b


Joined: 14 Apr 2005
Posts: 24

PostPosted: Sun Jan 13, 2008 9:55 am    Post subject: Reply with quote

Genone wrote:
Code:
/usr/portage/eclass/linux-info.eclass: line 200: [: 26: integer expression expected
/usr/portage/eclass/linux-info.eclass: line 200: [: 2622: integer expression expected
/usr/portage/eclass/linux-info.eclass: line 200: [: 26: integer expression expected

Those errors are likely the real issue.


Yeah.. line 200 is:
[ ${test} ${operator} ${value} ] && return 0 || return 1

i have add before this line:
echo "debug: ${test} ${operator} ${value}" >> /tmp/txt

then i try emerge ipw3945 - still the same error, and:
Code:

radem piotr # cat /tmp/txt                                                                                                                                                                             [10:45]
debug: 26 -eq 002004
debug: 2622 -lt 002006018
debug: 26 -eq 002004

- "test" and "value" are integers. Well.. i don't understand error 'integer expression expected'.

I look little in linux-info.eclass and i found some wird thing:

There is a function 'check_extra_config'. In line:
Code:

else
     echo "error before: ${error}" >> /tmp/txt        # line added by me for debug ;)
     linux_chkconfig_preset ${config} || error=1
     echo "error after: ${error}" >> /tmp/txt        # line added by me for debug ;)
fi

now, when i try emerge i get:
Code:

radem piotr # cat /tmp/txt
debug: 26 -eq 002004
debug: 2622 -lt 002006018
debug: 26 -eq 002004
error before: 0
error after: 1
error before: 0
error after: 1
error before: 0
error after: 1
error before: 0
error after: 1
error before: 0
error after: 1


Ok! Well - function linux_chkconfig_preset returns error. ;)

Let's go further.

Code:

linux_chkconfig_present() {
local   RESULT
        RESULT="$(getfilevar CONFIG_${1} ${KV_OUT_DIR}/.config)"
        echo "Result in linux_chkconfig_present is: .${RESULT}." >>/tmp/txt         # my line for small debug
        [ "${RESULT}" = "m" -o "${RESULT}" = "y" ] && echo "return 0" >>/tmp/txt || echo "return 1" >>/tmp/txt       # my line for small debug
        [ "${RESULT}" = "m" -o "${RESULT}" = "y" ] && return 0 || return 1
}

Again try to emerge ipw3945, and in /tmp/txt is now:
Code:

radem piotr # cat /tmp/txt
debug: 26 -eq 002004
debug: 2622 -lt 002006018
debug: 26 -eq 002004
error before: 0
Result in linux_chkconfig_present is: .y.
return 1
error after: 1
error before: 0
Result in linux_chkconfig_present is: .y.
return 1
error after: 1
error before: 0
Result in linux_chkconfig_present is: .y.
return 1
error after: 1
error before: 0
Result in linux_chkconfig_present is: .y.
return 1
error after: 1
error before: 0
Result in linux_chkconfig_present is: .y.
return 1
error after: 1


Wtf? Why if checking is ${RESULT}=y OR =m return 1?
And why when $test and $value are integers i get error : "/usr/portage/eclass/linux-info.eclass: line 200: [: 26: integer expression expected " ?

As far as i know bash haven't type variable like example java/C.

Help.. ;)
Back to top
View user's profile Send private message
pajter
n00b
n00b


Joined: 14 Apr 2005
Posts: 24

PostPosted: Sun Jan 13, 2008 9:03 pm    Post subject: Reply with quote

Omfg.

Resolved.

I have some feature - http://forums.gentoo.org/viewtopic-t-492660-start-0-postdays-0-postorder-asc-highlight-.html - i installed this in May 2007 i forget.

today i remember this, removed and compile without any problems. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum