ALT Linux kernel packages development
 help / color / mirror / Atom feed
* Re: [d-kernel] [Comm] Сборка ndiswrapper под kernel-2.6: NR_IRQS, NR_IRQ_VECTORS undeclared
  @ 2006-07-09  9:37 ` Michael Shigorin
  2006-07-09 11:42   ` Konstantin A. Lepikhov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Shigorin @ 2006-07-09  9:37 UTC (permalink / raw)
  To: community; +Cc: devel-kernel

On Mon, Feb 07, 2005 at 04:11:31AM +0300, oghma@cyberdude.ru wrote:
> Cборка ndiswrapper под ядро 2.6 (std26-up-2.6.10-alt2) вылетает
> с ошибкой NR_IRQS, NR_IRQ_VECTORS undeclared:
> 
> $ make KSRC=~/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/
> make -C driver
> make[1]: Entering directory `/home/vborisoff/src/ndiswrapper-cvs/driver'
> cc  -DNDISWRAPPER_VERSION=\"1.1rc1\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10//include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o hal.o hal.c
> [...skipped...]
> /home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
> /home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/include/asm/hw_irq.h:28: `NR_IRQ_VECTORS' undeclared here (not in a function)
> /home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/include/asm/hw_irq.h:32: `NR_IRQS' undeclared here (not in a function)
> [...skipped...]
> 
> Не подскажете как лечить? 
> Кто-нибудь собирал ndiswrapper под 2.6?
> Может даже у кого-нить готовые спеки есть?

Поймал то же самое на 2.6.12-std26-up-alt{6,10}, 
пытаясь собрать ndiswrapper-1.19 под 3.0 по мотивам
сизифного.

Судя по гуглю "irq_vectors.h: No such file or directory" -- 
ошибка не-alt-specific, не-ndiswrapper-specific и глядя
на asm/irq.h -- вообще непонятно, как это должно было
работать.

В hsh-shell:

$ /usr/sbin/adjust_kernel_headers --list 
2.6.12-std26-up
default
# /usr/sbin/adjust_kernel_headers
#

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


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

* Re: [d-kernel] [Comm] Сборка ndiswrapper под kernel-2.6: NR_IRQS, NR_IRQ_VECTORS undeclared
  2006-07-09  9:37 ` [d-kernel] [Comm] Сборка ndiswrapper под kernel-2.6: NR_IRQS, NR_IRQ_VECTORS undeclared Michael Shigorin
@ 2006-07-09 11:42   ` Konstantin A. Lepikhov
  0 siblings, 0 replies; 2+ messages in thread
From: Konstantin A. Lepikhov @ 2006-07-09 11:42 UTC (permalink / raw)
  To: devel-kernel, community

[-- Attachment #1: Type: text/plain, Size: 1882 bytes --]

Hi Michael!

Sunday 09, at 12:37:37 PM you wrote:

> On Mon, Feb 07, 2005 at 04:11:31AM +0300, oghma@cyberdude.ru wrote:
> > Cборка ndiswrapper под ядро 2.6 (std26-up-2.6.10-alt2) вылетает
> > с ошибкой NR_IRQS, NR_IRQ_VECTORS undeclared:
> > 
> > $ make KSRC=~/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/
> > make -C driver
> > make[1]: Entering directory `/home/vborisoff/src/ndiswrapper-cvs/driver'
> > cc  -DNDISWRAPPER_VERSION=\"1.1rc1\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10//include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o hal.o hal.c
> > [...skipped...]
> > /home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
> > /home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/include/asm/hw_irq.h:28: `NR_IRQ_VECTORS' undeclared here (not in a function)
> > /home/vborisoff/RPM/BUILD/kernel-image-std26-up-2.6.10-alt2/kernel-source-2.6.10/include/asm/hw_irq.h:32: `NR_IRQS' undeclared here (not in a function)
> > [...skipped...]
> > 
> > Не подскажете как лечить? 
> > Кто-нибудь собирал ndiswrapper под 2.6?
> > Может даже у кого-нить готовые спеки есть?
> 
> Поймал то же самое на 2.6.12-std26-up-alt{6,10}, 
> пытаясь собрать ndiswrapper-1.19 под 3.0 по мотивам
> сизифного.
фикс ушел в kernel cvs. Судя по всему, там неправильно определялось, под
какое ядро собирать из-за зависимости на данные, полученные из хост системы -
т.е. для выяснения версии ядра, под которое делать сборку, вызывался uname
-r, что естественно приводило к неожиданным последствиям, если мы собираем
2.6 модуль по модели сборки для 2.4.

-- 
WBR et al.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-07-09 11:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-09  9:37 ` [d-kernel] [Comm] Сборка ndiswrapper под kernel-2.6: NR_IRQS, NR_IRQ_VECTORS undeclared Michael Shigorin
2006-07-09 11:42   ` Konstantin A. Lepikhov

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git