Gentoo Archives: gentoo-amd64

From: Miguel Filipe <miguel.filipe@×××××.com>
To: gentoo-amd64@l.g.o
Cc: Richard Fish <bigfish@××××××××××.org>
Subject: Re: [gentoo-amd64] nvidia-kernel doesn't emerge: thinks I have rivafb on my kernel.
Date: Wed, 08 Mar 2006 01:38:38
Message-Id: f058a9c30603071736v37af7dc9xda0b43aedb9e12fa@mail.gmail.com
In Reply to: Re: [gentoo-amd64] nvidia-kernel doesn't emerge: thinks I have rivafb on my kernel. by Richard Fish
Hi richard, sorry for the big delay... I just came around to this problem now...

Sorry for mailing you directly, but since you were really helpfull I'm
trying once again a helpfull hand of yours :D

On 2/7/06, Richard Fish <bigfish@××××××××××.org> wrote:
> On 1/4/06, Miguel Filipe <miguel.filipe@×××××.com> wrote: > > Hi ppl, > > > > I cannot emerge nvidia-kernel because it thinks: > > "Your kernel was configured to include rivafb support!" > > this is what emerge complains about: > > <snip> > > > I think its thinking IPV6_PRIVACY which contains the string RIVA, is FB_RIVA. > > The detection in 8178 is not so simple to be confused by IPV6_PRIVACY. > The code that does the detection is: > > rivafb_sanity_check) > # > # Check if the kernel was compiled with rivafb support. If so, then > # exit, since our driver no longer works with rivafb. > # > RET=1 > VERBOSE=$6 > FILE="linux/autoconf.h" > > if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE ]; then > # > # We are looking at a configured source tree; verify > # that its configuration doesn't include rivafb using > # a compile check. > # > echo "#include <linux/autoconf.h> > #ifdef CONFIG_FB_RIVA > #error CONFIG_FB_RIVA defined!! > #endif > " > conftest$$.c > > $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1 > rm -f conftest$$.c > > if [ -f conftest$$.o ]; then > rm -f conftest$$.o > RET=0 > fi > else > CONFIG=$HEADERS/../.config > if [ -f $CONFIG ]; then > if [ -z "$(grep "^CONFIG_FB_RIVA=y" $CONFIG)" ]; then > RET=0 > fi > fi > fi > > What this code does is: > > if /usr/src/linux/include/linux/autoconf.h exists, it tries to compile > a small program to detect if CONFIG_FB_RIVA is defined there. If it > is defined there, the detection fails. > > If /usr/include/linux/autoconf.h does not exist, it greps the > /usr/src/linux/.config file for CONFIG_FB_RIVA. > > So it looks initially like your .config and autoconf.h files do not > agree. I'm not sure how that happens, since the autoconf.h file > should be created by saving the configuration from make > menuconfig/xconfig/et al. It would not be updated if you edited your > .config by hand though! >
I had the IPV6 privacy thing removed by hand.. but I now ran make oldconfig and disabled all the possible problematic settings.. I just tried emerge nvidia-kernel once again.. the problem persists: ----- " * Preparing nvidia module Your kernel was configured to include rivafb support!" -----
> Maybe you can do an "ls -l /usr/src/linux/.config > /usr/src/linux/include/linux/autoconf.h" and post the results? >
here are the results: feynman linux # ls -l /usr/src/linux/.config -rw-rw---- 1 root root 39049 Mar 8 01:31 /usr/src/linux/.config feynman linux # ll /usr/src/linux/include/linux/autoconf.h -rw-rw---- 1 root root 43082 Mar 8 01:31 /usr/src/linux/include/linux/autoconf.h I do not know wha you are looking for, but I have allready disabled ipv6 privacy and certified that nvidiafb and riva_fb aren't enabled. for instance: feynman linux # fgrep RIVA /usr/src/linux/include/linux/autoconf.h #undef CONFIG_IPV6_PRIVACY #undef CONFIG_FB_RIVA feynman linux # fgrep NVIDIA /usr/src/linux/include/linux/autoconf.h #undef CONFIG_FB_NVIDIA please help :D
> -Richard > > -- > gentoo-amd64@g.o mailing list > >
-- Miguel Sousa Filipe -- gentoo-amd64@g.o mailing list