LINUX.ORG.RU
ФорумAdmin

rshaper не ставится


0

0

gate rshaper # make KERNELDIR=/usr/src/linux
cc -Wall -O -ggdb -DRSHAPER_DEBUG -I/usr/src/linux/include   -c -o rshaper.o rshaper.c
In file included from /usr/src/linux/include/linux/rwsem.h:24,
                 from /usr/src/linux/include/asm/semaphore.h:42,
                 from /usr/src/linux/include/linux/sched.h:57,
                 from /usr/src/linux/include/linux/module.h:9,
                 from rshaper.c:30:
/usr/src/linux/include/asm/rwsem.h: In function '__down_read':
/usr/src/linux/include/asm/rwsem.h:104: error: expected ':' or ')' before 'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__down_write_nested':
/usr/src/linux/include/asm/rwsem.h:156: error: expected ':' or ')' before 'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__up_read':
/usr/src/linux/include/asm/rwsem.h:198: error: expected ':' or ')' before 'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h:192: warning: unused variable 'tmp'
/usr/src/linux/include/asm/rwsem.h: In function '__up_write':
/usr/src/linux/include/asm/rwsem.h:224: error: expected ':' or ')' before 'KBUILD_BASENAME'
/usr/src/linux/include/asm/rwsem.h: In function '__downgrade_write':
/usr/src/linux/include/asm/rwsem.h:249: error: expected ':' or ')' before 'KBUILD_BASENAME'
In file included from /usr/src/linux/include/linux/sched.h:57,
                 from /usr/src/linux/include/linux/module.h:9,
                 from rshaper.c:30:
/usr/src/linux/include/asm/semaphore.h: In function 'down':
/usr/src/linux/include/asm/semaphore.h:105: error: expected ':' or ')' before 'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: expected ':' or ')' before 'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: expected ':' or ')' before 'KBUILD_BASENAME'
/usr/src/linux/include/asm/semaphore.h: In function 'up':
/usr/src/linux/include/asm/semaphore.h:179: error: expected ':' or ')' before 'KBUILD_BASENAME'
In file included from /usr/src/linux/include/asm/smp.h:17,
                 from /usr/src/linux/include/linux/smp.h:18,
                 from /usr/src/linux/include/linux/sched.h:63,
                 from /usr/src/linux/include/linux/module.h:9,
                 from rshaper.c:30:
/usr/src/linux/include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:17,
                 from /usr/src/linux/include/linux/smp.h:18,
                 from /usr/src/linux/include/linux/sched.h:63,
                 from /usr/src/linux/include/linux/module.h:9,
                 from rshaper.c:30:
/usr/src/linux/include/asm/mpspec.h: At top level:
/usr/src/linux/include/asm/mpspec.h:8: error: 'MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:22: error: 'MAX_IRQ_SOURCES' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/smp.h:18,
                 from /usr/src/linux/include/linux/sched.h:63,
                 from /usr/src/linux/include/linux/module.h:9,
                 from rshaper.c:30:
/usr/src/linux/include/asm/smp.h:76:26: error: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux/include/linux/smp.h:18,
                 from /usr/src/linux/include/linux/sched.h:63,
                 from /usr/src/linux/include/linux/module.h:9,
                 from rshaper.c:30:
/usr/src/linux/include/asm/smp.h: In function 'hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:80: warning: implicit declaration of function 'GET_APIC_ID'
In file included from /usr/src/linux/include/linux/irq.h:22,
                 from /usr/src/linux/include/asm/hardirq.h:5,
                 from /usr/src/linux/include/linux/hardirq.h:7,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from rshaper.c:37:
/usr/src/linux/include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:5,
                 from /usr/src/linux/include/linux/hardirq.h:7,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from rshaper.c:37:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:169: error: 'NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:182,
                 from /usr/src/linux/include/asm/hardirq.h:5,
                 from /usr/src/linux/include/linux/hardirq.h:7,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from rshaper.c:37:
/usr/src/linux/include/asm/hw_irq.h:31: error: 'NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/if_ether.h:111,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from rshaper.c:39:
/usr/src/linux/include/linux/skbuff.h: In function 'skb_add_data':
/usr/src/linux/include/linux/skbuff.h:1203: warning: pointer targets in passing argument 1 of 'csum_and_copy_from_user' differ in signedness
In file included from /usr/src/linux/include/linux/tcp.h:164,
                 from rshaper.c:43:
/usr/src/linux/include/net/sock.h: In function 'skb_copy_to_page':
/usr/src/linux/include/net/sock.h:1070: warning: pointer targets in passing argument 1 of 'csum_and_copy_from_user' differ in signedness
make: *** [rshaper.o] Error 1


Чего ему не нравится?

Как минимум:
/usr/src/linux/include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such file or directory
/usr/src/linux/include/asm/smp.h:76:26: error: mach_apicdef.h: No such file or directory
/usr/src/linux/include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory

spirit ★★★★★
()
Ответ на: комментарий от spirit

Наверно надо обновить asm, emerge asm не помагает.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.