* [sisyphus] Сборка драйверов cronyx
@ 2003-11-19 4:57 Oleg Sukhanov
2003-11-19 5:10 ` [sisyphus] óÂÏÒËÁ ÄÒÁÊ×ÅÒÏ× cronyx Dmitry Vodennikov
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Oleg Sukhanov @ 2003-11-19 4:57 UTC (permalink / raw)
To: sisyphus
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
Возникла проблема со сборкой драйверов для cronyx tau pci.
Драйвера последние с ихнего сайта. Вывод сообщения об ошибках в
аттаче.
От смены компилятора результат не меняется.
Судя по всему, мне нужно правильно настроить
kernel-headers-alternatives, но я не знаю как.
[-- Attachment #2: errors.4.3.4 --]
[-- Type: text/plain, Size: 14407 bytes --]
cc -Wall -g -O sconfig.c -o sconfig
cc -c -o cisco.o cisco.c
In file included from /usr/include/linux/sched.h:14,
from module.h:15,
from cisco.c:17:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/asm/pgalloc.h:6,
from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:27,
from module.h:19,
from cisco.c:17:
/usr/include/asm/fixmap.h:77: `FIX_ACPI_PAGES' undeclared here (not in a function)
/usr/include/asm/fixmap.h:77: enumerator value for `FIX_ACPI_END' not integer constant
/usr/include/asm/fixmap.h:88: syntax error before `pgprot_t'
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:27,
from module.h:19,
from cisco.c:17:
/usr/include/asm/pgalloc.h:59: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/include/asm/pgalloc.h:61: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:61: (Each undeclared identifier is reported only once
/usr/include/asm/pgalloc.h:61: for each function it appears in.)
/usr/include/asm/pgalloc.h:61: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:61: syntax error before `)'
/usr/include/asm/pgalloc.h:64: `USER_PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:66: `swapper_pg_dir' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:67: `PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:74: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:84: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:84: syntax error before `)'
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:87: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:89: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:94: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/include/asm/pgalloc.h:103: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:107: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/include/asm/pgalloc.h:109: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:109: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:111: syntax error before `)'
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:117: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:127: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:127: syntax error before `)'
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:130: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:137: syntax error before `*'
/usr/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/include/asm/pgalloc.h:139: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_mm':
/usr/include/asm/pgalloc.h:183: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:188: warning: `struct vm_area_struct' declared inside parameter list
/usr/include/asm/pgalloc.h:188: warning: its scope is only this definition or declaration, which is probably not what you want.
/usr/include/asm/pgalloc.h: In function `flush_tlb_page':
/usr/include/asm/pgalloc.h:190: dereferencing pointer to incomplete type
/usr/include/asm/pgalloc.h:190: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_range':
/usr/include/asm/pgalloc.h:197: `current' undeclared (first use in this function)
In file included from /usr/include/linux/skbuff.h:27,
from module.h:19,
from cisco.c:17:
/usr/include/linux/highmem.h: In function `bh_kmap':
/usr/include/linux/highmem.h:20: dereferencing pointer to incomplete type
/usr/include/linux/highmem.h:20: warning: return makes pointer from integer without a cast
/usr/include/linux/highmem.h: In function `bh_kunmap':
/usr/include/linux/highmem.h:25: dereferencing pointer to incomplete type
/usr/include/linux/highmem.h: In function `bh_kmap_irq':
/usr/include/linux/highmem.h:41: dereferencing pointer to incomplete type
/usr/include/linux/highmem.h:42: dereferencing pointer to incomplete type
/usr/include/linux/highmem.h:48: dereferencing pointer to incomplete type
/usr/include/linux/highmem.h: In function `clear_user_highpage':
/usr/include/linux/highmem.h:86: warning: initialization makes pointer from integer without a cast
/usr/include/linux/highmem.h: In function `memclear_highpage_flush':
/usr/include/linux/highmem.h:106: warning: assignment makes pointer from integer without a cast
/usr/include/linux/highmem.h: In function `copy_user_highpage':
/usr/include/linux/highmem.h:117: warning: assignment makes pointer from integer without a cast
/usr/include/linux/highmem.h:118: warning: assignment makes pointer from integer without a cast
/usr/include/linux/highmem.h: In function `copy_highpage':
/usr/include/linux/highmem.h:128: warning: assignment makes pointer from integer without a cast
/usr/include/linux/highmem.h:129: warning: assignment makes pointer from integer without a cast
In file included from module.h:52,
from cisco.c:17:
/usr/include/asm/uaccess.h: In function `verify_area':
/usr/include/asm/uaccess.h:106: `current' undeclared (first use in this function)
/usr/include/asm/uaccess.h: In function `__constant_copy_to_user':
/usr/include/asm/uaccess.h:669: `current' undeclared (first use in this function)
/usr/include/asm/uaccess.h: In function `__constant_copy_from_user':
/usr/include/asm/uaccess.h:677: `current' undeclared (first use in this function)
In file included from cisco.c:20:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:17: field `list' has incomplete type
cisco.c:32: field `dev' has incomplete type
cisco.c:84: syntax error before `cisco_tab'
cisco.c:84: warning: data definition has no type or storage class
cisco.c: In function `cisco_slarp_packet':
cisco.c:96: `jiffies' undeclared (first use in this function)
cisco.c:99: warning: assignment makes pointer from integer without a cast
cisco.c: In function `cisco_slarp_reply':
cisco.c:134: `chan_t' undeclared (first use in this function)
cisco.c:134: `h' undeclared (first use in this function)
cisco.c:134: syntax error before `)'
cisco.c:148: dereferencing pointer to incomplete type
cisco.c:149: dereferencing pointer to incomplete type
cisco.c:150: dereferencing pointer to incomplete type
cisco.c: In function `cisco_slarp_timer':
cisco.c:161: `chan_t' undeclared (first use in this function)
cisco.c:161: `h' undeclared (first use in this function)
cisco.c:161: dereferencing pointer to incomplete type
cisco.c:162: syntax error before `*'
cisco.c:169: `p' undeclared (first use in this function)
cisco.c:173: `delay' undeclared (first use in this function)
cisco.c:177: `jiffies' undeclared (first use in this function)
cisco.c: At top level:
cisco.c:197: syntax error before `*'
cisco.c: In function `cisco_slarp_receive':
cisco.c:199: `h' undeclared (first use in this function)
cisco.c:200: `skb' undeclared (first use in this function)
cisco.c:214: `jiffies' undeclared (first use in this function)
cisco.c:219: `KERN_NOTICE' undeclared (first use in this function)
cisco.c:219: syntax error before string constant
cisco.c:235: syntax error before string constant
cisco.c:235: syntax error before `)'
cisco.c:239: syntax error before string constant
cisco.c:246: syntax error before string constant
cisco.c: In function `cisco_dev_transmit':
cisco.c:262: `chan_t' undeclared (first use in this function)
cisco.c:262: `h' undeclared (first use in this function)
cisco.c:262: dereferencing pointer to incomplete type
cisco.c:263: syntax error before `*'
cisco.c:272: `jiffies' undeclared (first use in this function)
cisco.c:272: dereferencing pointer to incomplete type
cisco.c:274: `KERN_ERR' undeclared (first use in this function)
cisco.c:274: syntax error before string constant
cisco.c:275: `p' undeclared (first use in this function)
cisco.c:281: dereferencing pointer to incomplete type
cisco.c:306: dereferencing pointer to incomplete type
cisco.c: In function `cisco_dev_header':
cisco.c:315: `chan_t' undeclared (first use in this function)
cisco.c:315: `h' undeclared (first use in this function)
cisco.c:315: dereferencing pointer to incomplete type
cisco.c: In function `cisco_dev_getstats':
cisco.c:339: `chan_t' undeclared (first use in this function)
cisco.c:339: `h' undeclared (first use in this function)
cisco.c:339: dereferencing pointer to incomplete type
cisco.c:340: syntax error before `*'
cisco.c:342: `p' undeclared (first use in this function)
cisco.c: In function `cisco_dev_open':
cisco.c:347: `chan_t' undeclared (first use in this function)
cisco.c:347: `h' undeclared (first use in this function)
cisco.c:347: dereferencing pointer to incomplete type
cisco.c:348: syntax error before `*'
cisco.c:352: `err' undeclared (first use in this function)
cisco.c:356: `p' undeclared (first use in this function)
cisco.c:364: `jiffies' undeclared (first use in this function)
cisco.c: In function `cisco_dev_close':
cisco.c:373: `chan_t' undeclared (first use in this function)
cisco.c:373: `h' undeclared (first use in this function)
cisco.c:373: dereferencing pointer to incomplete type
cisco.c:374: syntax error before `*'
cisco.c:384: `p' undeclared (first use in this function)
cisco.c: In function `cisco_dev_init':
cisco.c:391: `chan_t' undeclared (first use in this function)
cisco.c:391: `h' undeclared (first use in this function)
cisco.c:391: dereferencing pointer to incomplete type
cisco.c:393: dereferencing pointer to incomplete type
cisco.c:394: dereferencing pointer to incomplete type
cisco.c:395: dereferencing pointer to incomplete type
cisco.c:396: dereferencing pointer to incomplete type
cisco.c:397: dereferencing pointer to incomplete type
cisco.c:398: dereferencing pointer to incomplete type
cisco.c:399: dereferencing pointer to incomplete type
cisco.c:404: dereferencing pointer to incomplete type
cisco.c:405: dereferencing pointer to incomplete type
cisco.c:406: dereferencing pointer to incomplete type
cisco.c:407: dereferencing pointer to incomplete type
cisco.c:408: dereferencing pointer to incomplete type
cisco.c: At top level:
cisco.c:417: syntax error before `*'
cisco.c: In function `cisco_receive':
cisco.c:419: `h' undeclared (first use in this function)
cisco.c:423: `skb' undeclared (first use in this function)
cisco.c: At top level:
cisco.c:459: syntax error before `*'
cisco.c: In function `cisco_receive_error':
cisco.c:461: `h' undeclared (first use in this function)
cisco.c: At top level:
cisco.c:466: syntax error before `*'
cisco.c: In function `cisco_transmit_done':
cisco.c:468: `h' undeclared (first use in this function)
cisco.c: At top level:
cisco.c:482: syntax error before `*'
cisco.c: In function `cisco_attach':
cisco.c:486: `h' undeclared (first use in this function)
cisco.c:487: `GFP_KERNEL' undeclared (first use in this function)
cisco.c:487: warning: assignment makes pointer from integer without a cast
cisco.c:501: `KERN_ERR' undeclared (first use in this function)
cisco.c:501: syntax error before string constant
cisco.c: At top level:
cisco.c:511: syntax error before `*'
cisco.c: In function `cisco_detach':
cisco.c:513: `h' undeclared (first use in this function)
cisco.c:522: `KERN_ERR' undeclared (first use in this function)
cisco.c:522: syntax error before string constant
cisco.c: At top level:
cisco.c:532: syntax error before `cisco_tab'
cisco.c:533: warning: initialization makes integer from pointer without a cast
cisco.c:533: warning: excess elements in scalar initializer
cisco.c:533: warning: (near initialization for `cisco_tab')
cisco.c:536: warning: excess elements in scalar initializer
cisco.c:536: warning: (near initialization for `cisco_tab')
cisco.c:537: warning: excess elements in scalar initializer
cisco.c:537: warning: (near initialization for `cisco_tab')
cisco.c:538: warning: excess elements in scalar initializer
cisco.c:538: warning: (near initialization for `cisco_tab')
cisco.c:539: warning: excess elements in scalar initializer
cisco.c:539: warning: (near initialization for `cisco_tab')
cisco.c:542: warning: excess elements in scalar initializer
cisco.c:542: warning: (near initialization for `cisco_tab')
cisco.c:542: warning: excess elements in scalar initializer
cisco.c:542: warning: (near initialization for `cisco_tab')
cisco.c:542: warning: excess elements in scalar initializer
cisco.c:542: warning: (near initialization for `cisco_tab')
cisco.c:542: warning: excess elements in scalar initializer
cisco.c:542: warning: (near initialization for `cisco_tab')
cisco.c:542: warning: excess elements in scalar initializer
cisco.c:542: warning: (near initialization for `cisco_tab')
cisco.c:542: warning: excess elements in scalar initializer
cisco.c:542: warning: (near initialization for `cisco_tab')
cisco.c:545: warning: excess elements in scalar initializer
cisco.c:545: warning: (near initialization for `cisco_tab')
cisco.c:546: warning: excess elements in scalar initializer
cisco.c:546: warning: (near initialization for `cisco_tab')
cisco.c:547: warning: excess elements in scalar initializer
cisco.c:547: warning: (near initialization for `cisco_tab')
cisco.c:548: warning: data definition has no type or storage class
cisco.c: In function `init_module':
cisco.c:557: `KERN_DEBUG' undeclared (first use in this function)
cisco.c:557: syntax error before string constant
cisco.c: In function `cleanup_module':
cisco.c:564: `KERN_DEBUG' undeclared (first use in this function)
cisco.c:564: syntax error before string constant
make: *** [cisco.o] ïÛÉÂËÁ 1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] óÂÏÒËÁ ÄÒÁÊ×ÅÒÏ× cronyx
2003-11-19 4:57 [sisyphus] Сборка драйверов cronyx Oleg Sukhanov
@ 2003-11-19 5:10 ` Dmitry Vodennikov
2003-11-19 12:46 ` [sisyphus] Сборка драйверов cronyx Sergey
2003-11-19 7:16 ` [sisyphus] " Michael Shigorin
2003-11-19 8:02 ` [sisyphus] " Sergey Vlasov
2 siblings, 1 reply; 5+ messages in thread
From: Dmitry Vodennikov @ 2003-11-19 5:10 UTC (permalink / raw)
To: Oleg Sukhanov; +Cc: sisyphus
Добрый день.
Wednesday, November 19, 2003, 9:57:25 AM, Вы писали:
OS> Возникла проблема со сборкой драйверов для cronyx tau pci.
OS> Драйвера последние с ихнего сайта. Вывод сообщения об ошибках в
OS> аттаче.
OS> От смены компилятора результат не меняется.
OS> Судя по всему, мне нужно правильно настроить
OS> kernel-headers-alternatives, но я не знаю как.
Я извиняюсь, что не по теме, просто увидел знакомые слова "cronyx"
Вы траффик чем считаете? Работает ли у вас на cronyx - интерфейсе
что-нибудь типа ntop, iptraf???
У меня у самого стоит Sigma 22, но с этими и подобными пакетами ничего
не вышло...
--
Воденников Д.Ю. http://www.dlv.rt.ru
MCP+Internet
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sisyphus] Re: Сборка драйверов cronyx
2003-11-19 4:57 [sisyphus] Сборка драйверов cronyx Oleg Sukhanov
2003-11-19 5:10 ` [sisyphus] óÂÏÒËÁ ÄÒÁÊ×ÅÒÏ× cronyx Dmitry Vodennikov
@ 2003-11-19 7:16 ` Michael Shigorin
2003-11-19 8:02 ` [sisyphus] " Sergey Vlasov
2 siblings, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2003-11-19 7:16 UTC (permalink / raw)
To: sisyphus; +Cc: devel-kernel
[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]
On Wed, Nov 19, 2003 at 01:57:25PM +0900, Oleg Sukhanov wrote:
> Возникла проблема со сборкой драйверов для cronyx tau pci.
> Драйвера последние с ихнего сайта. Вывод сообщения об ошибках в
> аттаче. От смены компилятора результат не меняется.
2 d-k: кстати, могут иметь смысл в дистрибутиве.
В http://www.cronyx.ru/pub/cronyx/adapters/clinux434.tgz
какая-либо лицензия не указана; с вопросами предлагается на
info аt cronyx.ru.
> Судя по всему, мне нужно правильно настроить
> kernel-headers-alternatives, но я не знаю как.
adjust_kernel_headers auto и проверить правильность
цепочки ссылок /usr/include/linux ?
> cc -Wall -g -O sconfig.c -o sconfig
> cc -c -o cisco.o cisco.c
> In file included from /usr/include/linux/sched.h:14,
> from module.h:15,
> from cisco.c:17:
> /usr/include/linux/timex.h:173: field `time' has incomplete type
> In file included from /usr/include/asm/pgalloc.h:6,
> from /usr/include/linux/highmem.h:5,
> from /usr/include/linux/skbuff.h:27,
> from module.h:19,
> from cisco.c:17:
> /usr/include/asm/fixmap.h:77: `FIX_ACPI_PAGES' undeclared here (not in a function)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sisyphus] Сборка драйверов cronyx
2003-11-19 4:57 [sisyphus] Сборка драйверов cronyx Oleg Sukhanov
2003-11-19 5:10 ` [sisyphus] óÂÏÒËÁ ÄÒÁÊ×ÅÒÏ× cronyx Dmitry Vodennikov
2003-11-19 7:16 ` [sisyphus] " Michael Shigorin
@ 2003-11-19 8:02 ` Sergey Vlasov
2 siblings, 0 replies; 5+ messages in thread
From: Sergey Vlasov @ 2003-11-19 8:02 UTC (permalink / raw)
To: sisyphus
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
On Wed, Nov 19, 2003 at 01:57:25PM +0900, Oleg Sukhanov wrote:
>
> Возникла проблема со сборкой драйверов для cronyx tau pci.
> Драйвера последние с ихнего сайта. Вывод сообщения об ошибках в
> аттаче.
> От смены компилятора результат не меняется.
> Судя по всему, мне нужно правильно настроить
> kernel-headers-alternatives, но я не знаю как.
>
> cc -Wall -g -O sconfig.c -o sconfig
> cc -c -o cisco.o cisco.c
Опции сборки неправильные.
Под какое ядро собираете? Если под сизифовское - нужно поставить
пакеты kernel-headers-std-up, kernel-headers-modules-std-up (или
другие, соответствующие используемому варианту ядра) и собирать так:
make KSRC=/usr/src/linux-2.4.22-std-up CC=gcc-2.96 configure
make KSRC=/usr/src/linux-2.4.22-std-up CC=gcc-2.96 depend
make KSRC=/usr/src/linux-2.4.22-std-up CC=gcc-2.96
(Кстати, попутно обнаружился баг в зависимостях
kernel-headers-modules: пропущена зависимость на соответствующий
kernel-headers.)
adjust_kernel_headers можно не трогать - этого для их makefile всё
равно недостаточно, там требуется .config от ядра и т.п.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-11-19 12:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 4:57 [sisyphus] Сборка драйверов cronyx Oleg Sukhanov
2003-11-19 5:10 ` [sisyphus] óÂÏÒËÁ ÄÒÁÊ×ÅÒÏ× cronyx Dmitry Vodennikov
2003-11-19 12:46 ` [sisyphus] Сборка драйверов cronyx Sergey
2003-11-19 7:16 ` [sisyphus] " Michael Shigorin
2003-11-19 8:02 ` [sisyphus] " Sergey Vlasov
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git