public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc error trying to compile the madwifi driver
@ 2006-04-14  7:40 tom arnall
  2006-04-14  7:47 ` Niklaus
       [not found] ` <200604160404.48373.kloro@cox.net>
  0 siblings, 2 replies; 5+ messages in thread
From: tom arnall @ 2006-04-14  7:40 UTC (permalink / raw)
  To: gcc-help

while trying to compile the madwifi driver, i encountered the following error:

make[2]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
  CC [M]  /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o
In file included from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.c:46:
include/asm/processor.h:87: error: array type has incomplete element type
make[3]: *** [/home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o] Error 1
make[2]: *** [_module_/home/kloro/linux/madwifi-ng/ath_hal] Error 2
make[2]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/kloro/linux/madwifi-ng/ath_hal'
make: *** [modules] Error 1

the offending line - in processor.h  - is:

	extern struct tss_struct init_tss[NR_CPUS];

thanks in advance for your help,

tom arnall
north spit, ca



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc error trying to compile the madwifi driver
  2006-04-14  7:40 gcc error trying to compile the madwifi driver tom arnall
@ 2006-04-14  7:47 ` Niklaus
  2006-04-14  8:03   ` tom arnall
       [not found] ` <200604160404.48373.kloro@cox.net>
  1 sibling, 1 reply; 5+ messages in thread
From: Niklaus @ 2006-04-14  7:47 UTC (permalink / raw)
  To: tom arnall; +Cc: gcc-help

On 4/14/06, tom arnall <kloro@cox.net> wrote:
> while trying to compile the madwifi driver, i encountered the following error:
>
> make[2]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
>   CC [M]  /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o
> In file included from include/asm/thread_info.h:16,
>                  from include/linux/thread_info.h:21,
>                  from include/linux/spinlock.h:12,
>                  from include/linux/capability.h:45,
>                  from include/linux/sched.h:7,
>                  from include/linux/module.h:10,
>                  from /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.c:46:
> include/asm/processor.h:87: error: array type has incomplete element type
> make[3]: *** [/home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o] Error 1
> make[2]: *** [_module_/home/kloro/linux/madwifi-ng/ath_hal] Error 2
> make[2]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/kloro/linux/madwifi-ng/ath_hal'
> make: *** [modules] Error 1
>
> the offending line - in processor.h  - is:
>
>         extern struct tss_struct init_tss[NR_CPUS];
>
> thanks in advance for your help,

I suggest you get the latest headers like 2.6.15

>
> tom arnall
> north spit, ca
>
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc error trying to compile the madwifi driver
  2006-04-14  7:47 ` Niklaus
@ 2006-04-14  8:03   ` tom arnall
  2006-04-14  8:13     ` Niklaus
  0 siblings, 1 reply; 5+ messages in thread
From: tom arnall @ 2006-04-14  8:03 UTC (permalink / raw)
  To: gcc-help

On Friday 14 April 2006 12:47 am, Niklaus wrote:
> On 4/14/06, tom arnall <kloro@cox.net> wrote:
> > while trying to compile the madwifi driver, i encountered the following
> > error:
> >
> > make[2]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
> >   CC [M]  /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o
> > In file included from include/asm/thread_info.h:16,
> >                  from include/linux/thread_info.h:21,
> >                  from include/linux/spinlock.h:12,
> >                  from include/linux/capability.h:45,
> >                  from include/linux/sched.h:7,
> >                  from include/linux/module.h:10,
> >                  from /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.c:46:
> > include/asm/processor.h:87: error: array type has incomplete element type
> > make[3]: *** [/home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o] Error 1
> > make[2]: *** [_module_/home/kloro/linux/madwifi-ng/ath_hal] Error 2
> > make[2]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/home/kloro/linux/madwifi-ng/ath_hal'
> > make: *** [modules] Error 1
> >
> > the offending line - in processor.h  - is:
> >
> >         extern struct tss_struct init_tss[NR_CPUS];
> >
> > thanks in advance for your help,
>
> I suggest you get the latest headers like 2.6.15
>
>

when i do 'apt-get install kernel-headers' i get:

    kernel-headers-2.6.8-2-k7-smp 2.6.8-16sarge1
    kernel-headers-2.6.8-2-k7 2.6.8-16sarge1
    kernel-headers-2.6.8-2-686-smp 2.6.8-16sarge1
    kernel-headers-2.6.8-2-686 2.6.8-16sarge1
    kernel-headers-2.6.8-2-386 2.6.8-16sarge1
    kernel-headers-2.6.8-2 2.6.8-16sarge1
    kernel-headers-2.6.8-11-em64t-p4-smp 2.6.8-16sarge1
    kernel-headers-2.6.8-11-em64t-p4 2.6.8-16sarge1
    kernel-headers-2.6.8-11-amd64-k8-smp 2.6.8-16sarge1
    kernel-headers-2.6.8-11-amd64-k8 2.6.8-16sarge1
    kernel-headers-2.6.8-11-amd64-generic 2.6.8-16sarge1
    kernel-headers-2.6.8-11 2.6.8-16sarge1
    You should explicitly select one to install.
	 
it seems then that from the debian pools there is no way to get something as 
recent as 2.6.15. also, doesn't the version of the headers need to sync with 
the kernel version? how do i find out what version of linux i am running?

thanks,

tom arnall
north spit, ca



	


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc error trying to compile the madwifi driver
  2006-04-14  8:03   ` tom arnall
@ 2006-04-14  8:13     ` Niklaus
  0 siblings, 0 replies; 5+ messages in thread
From: Niklaus @ 2006-04-14  8:13 UTC (permalink / raw)
  To: tom arnall; +Cc: gcc-help

On 4/14/06, tom arnall <kloro@cox.net> wrote:
> On Friday 14 April 2006 12:47 am, Niklaus wrote:
> > On 4/14/06, tom arnall <kloro@cox.net> wrote:
> > > while trying to compile the madwifi driver, i encountered the following
> > > error:
> > >
> > > make[2]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
> > >   CC [M]  /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o
> > > In file included from include/asm/thread_info.h:16,
> > >                  from include/linux/thread_info.h:21,
> > >                  from include/linux/spinlock.h:12,
> > >                  from include/linux/capability.h:45,
> > >                  from include/linux/sched.h:7,
> > >                  from include/linux/module.h:10,
> > >                  from /home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.c:46:
> > > include/asm/processor.h:87: error: array type has incomplete element type
> > > make[3]: *** [/home/kloro/linux/madwifi-ng/ath_hal/ah_osdep.o] Error 1
> > > make[2]: *** [_module_/home/kloro/linux/madwifi-ng/ath_hal] Error 2
> > > make[2]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
> > > make[1]: *** [all] Error 2
> > > make[1]: Leaving directory `/home/kloro/linux/madwifi-ng/ath_hal'
> > > make: *** [modules] Error 1
> > >
> > > the offending line - in processor.h  - is:
> > >
> > >         extern struct tss_struct init_tss[NR_CPUS];
> > >
> > > thanks in advance for your help,
> >
> > I suggest you get the latest headers like 2.6.15
> >
> >
>
> when i do 'apt-get install kernel-headers' i get:
>
>     kernel-headers-2.6.8-2-k7-smp 2.6.8-16sarge1
>     kernel-headers-2.6.8-2-k7 2.6.8-16sarge1
>     kernel-headers-2.6.8-2-686-smp 2.6.8-16sarge1
>     kernel-headers-2.6.8-2-686 2.6.8-16sarge1
>     kernel-headers-2.6.8-2-386 2.6.8-16sarge1
>     kernel-headers-2.6.8-2 2.6.8-16sarge1
>     kernel-headers-2.6.8-11-em64t-p4-smp 2.6.8-16sarge1
>     kernel-headers-2.6.8-11-em64t-p4 2.6.8-16sarge1
>     kernel-headers-2.6.8-11-amd64-k8-smp 2.6.8-16sarge1
>     kernel-headers-2.6.8-11-amd64-k8 2.6.8-16sarge1
>     kernel-headers-2.6.8-11-amd64-generic 2.6.8-16sarge1
>     kernel-headers-2.6.8-11 2.6.8-16sarge1
>     You should explicitly select one to install.
>
> it seems then that from the debian pools there is no way to get something as
> recent as 2.6.15.

Download it from kernel.org, compile the kernel for you PC. The
headers will also work fine or you will have to try out the other
kernels that sarge offers.

>also, doesn't the version of the headers need to sync with
> the kernel version?
Yes it needs to be in sync.

Well sarge may not have it but etch(unstable) has 2.6.13.


>how do i find out what version of linux i am running?
uname -a
>
> thanks,
>
> tom arnall
> north spit, ca
>
>
>
>
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc error trying to compile the madwifi driver
       [not found]   ` <85e0e3140604160417s175b279fwb3f3ac98d925e78c@mail.gmail.com>
@ 2006-04-16 12:01     ` tom arnall
  0 siblings, 0 replies; 5+ messages in thread
From: tom arnall @ 2006-04-16 12:01 UTC (permalink / raw)
  To: gcc-help

> >
> > thanks all of you for your moral support. for the first time i compiled a
> > kernel! from the 2.6.16.4 sources. and then compiled the madwifi driver.
> > everything worked exactly as described in various sources of 
documentation,
> > until 'iwconfig': no 'ath0' or 'wifi0', only:
> >
> >         lo        no wireless extensions.
> >         eth0      no wireless extensions.
> >         sit0      no wireless extensions.
> >
> You need to compile wireless support into your kernel.

> > i found next that under the new kernel there was no PCMCIA module loaded.
> > digging into this situation i got the message (i've forgotten from exactly
> > where) that in order to get a PCMCIA module loaded i would have to 
'recompile
> > the kernel with PCMCIA support enabled'. (this astounded me because i had
> > pcmcia support under my previous kernel [stock from the debian stable
> > installer] and had done the configuration for the new kernel with 'make
> > oldconfig'.) fumbling around a bit more i did an 'apt-get install
> > pcmcia-modules' which resulted in my new kernel getting toasted. when i 
tried
> > to reboot with it i got:
> >
> >         VFS: cannot open root device "hda1" or unknown block (0,0).
> >         Please append a correct root=boot option. Kernel panic ...
> >         VFS: unable to mount root fs on unknown block(0,0)
> >
> This needn't be because of PCMCIA , it is because your new kernel
> doesn't have the filesystem compiled in the kernel or root device
> being wrong (sda1 instead of hda1 or something similar )and it is
> unable to boot it.  When i changed the kernel i had to change the
> kernel command line from root=/dev/hda1 to root=/dev/sda1 in 2.6
> kernels .
 
the new kernel booted fine (repeatedly) until  i did the 'apt-get install 
pcmcia-modules'. doesn't this mean that it was the 'apt-get' that caused the 
problem?

> > fortunately the old kernel booted properly.
> >
> It is good that you always have a backup. If you are using grub, you
> can always access these files from command line.
> > my questions:
> >
> >         how do i make sure that PCMCIA support is enabled for my
> >         next shot at compiling the 2.6.16 kernel? (btw, i did
> >         'make oldconfig' for the configuration.)
> >
>  while doing a make menuconfig or make xconfig you select the PCMCIA
> and other necessary things. Also you can verify it one make menuconfig
> or make xconfig are completed. The options are stored in the file
> .config (note : it is .config) in the directory /usr/src/linux or
> whereever the linux-2.6.16 is unpacked.

is there any way to get 'make menuconfig/xconfig' to use the old kernel's 
settings except where i change them? also, where is a good place to start 
reading about using kernel recompile to optimise my system, e.g., by 
selecting cpu type more precisely?

also, at 'http://pcmcia-cs.sourceforge.net/' i found:

	IMPORTANT: The Linux pcmcia-cs package is officially deprecated. 
	It can only be used with 2.4 and older kernels. Current information on 
	PCMCIA support for recent 2.6 kernels is available >here<.

and at >here< (http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html):

	PCMCIAutils contains the initialization tools necessary to allow the 
	PCMCIA subsystem to behave (almost) as every other hotpluggable bus system 
	(e.g. USB, IEEE1394). This is made possible either by hotplug  scripts or 
	udev rules.

	Please note that the kernel support for this new feature is only present 
	since 2.6.13-rc1. Also, you need sysfsutils 1.3.0 as well 
	as module-init-tools 3.2-pre4 or later, and either hotplug or udev 
	installed on your system. 

does this mean that there is a way to setup pcmcia support without having to 
enable the support when i configure for the kernel build? in any case, is 
there anything i should do to make sure that the new pcmcia support is 
enabled and not the pre-2.6.13?


thanks,

tom arnall
north spit, ca


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-16 12:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-14  7:40 gcc error trying to compile the madwifi driver tom arnall
2006-04-14  7:47 ` Niklaus
2006-04-14  8:03   ` tom arnall
2006-04-14  8:13     ` Niklaus
     [not found] ` <200604160404.48373.kloro@cox.net>
     [not found]   ` <85e0e3140604160417s175b279fwb3f3ac98d925e78c@mail.gmail.com>
2006-04-16 12:01     ` tom arnall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).