URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 50676
[ Назад ]

Исходное сообщение
"Траблы компиляции ppp & kernel 2.6.x"

Отправлено Atlant_ , 18-Ноя-04 18:41 
Приветствую присутствующих!
Если кто может подскажите почему у меня такие проблемы со сборкой ppp
Описание системы дистр когдато был Mandrake 9.1.4
ядро 2.6.9(впрочем было и 2.6.7-8)
пробовал компилировать как ppp 2.4.2 так и новую ppp 2.4.3
если простые ошибки типа отсутствует тип u8, u16 и прочие было легко исправить
то следующая ошибка уходит слишком глубоко в ядро
вот лог компиляции

cd chat; make  all
make[1]: Entering directory `/usr/src/ppp-2.4.3/chat'
make[1]: Цель `all' не требует выполнения команд.
make[1]: Leaving directory `/usr/src/ppp-2.4.3/chat'
cd pppd/plugins; make  all
make[1]: Entering directory `/usr/src/ppp-2.4.3/pppd/plugins'
for d in rp-pppoe pppoatm radius; do make -w -C $d all; done
make[2]: Entering directory `/usr/src/ppp-2.4.3/pppd/plugins/rp-pppoe'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/usr/src/ppp-2.4.3/pppd/plugins/rp-pppoe'
make[2]: Entering directory `/usr/src/ppp-2.4.3/pppd/plugins/pppoatm'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/usr/src/ppp-2.4.3/pppd/plugins/pppoatm'
make[2]: Entering directory `/usr/src/ppp-2.4.3/pppd/plugins/radius'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/usr/src/ppp-2.4.3/pppd/plugins/radius'
make[1]: Leaving directory `/usr/src/ppp-2.4.3/pppd/plugins'
cd pppd; make  all
make[1]: Entering directory `/usr/src/ppp-2.4.3/pppd'
cc -O2 -pipe -Wall -g -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DPPP_FILTER -DMAXOCTETS   -c -o sys-linux.o sys-linux.c
In file included from /usr/include/linux/jiffies.h:6,
                 from /usr/include/net/dst.h:14,
                 from /usr/include/net/route.h:28,
                 from sys-linux.c:109:
/usr/include/linux/spinlock.h: In function `bit_spin_lock':
/usr/include/linux/spinlock.h:479: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_trylock':
/usr/include/linux/spinlock.h:502: error: invalid type argument of `->'
/usr/include/linux/spinlock.h: In function `bit_spin_unlock':
/usr/include/linux/spinlock.h:517: error: invalid type argument of `->'
/usr/include/linux/spinlock.h:517: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/spinlock.h:517: error: (Each undeclared identifier is reported only once
/usr/include/linux/spinlock.h:517: error: for each function it appears in.)
/usr/include/linux/spinlock.h: In function `bit_spin_is_locked':
/usr/include/linux/spinlock.h:528: error: invalid type argument of `->'
In file included from /usr/include/linux/jiffies.h:7,
                 from /usr/include/net/dst.h:14,
                 from /usr/include/net/route.h:28,
                 from sys-linux.c:109:
/usr/include/linux/seqlock.h: In function `write_seqlock':
/usr/include/linux/seqlock.h:52: error: invalid type argument of `->'
/usr/include/linux/seqlock.h: In function `write_sequnlock':
/usr/include/linux/seqlock.h:61: error: invalid type argument of `->'
/usr/include/linux/seqlock.h:61: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/seqlock.h: In function `write_tryseqlock':
/usr/include/linux/seqlock.h:66: error: invalid type argument of `->'
/usr/include/linux/seqlock.h:66: error: invalid type argument of `->'
/usr/include/linux/seqlock.h:66: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
In file included from /usr/include/net/dst.h:14,
                 from /usr/include/net/route.h:28,
                 from sys-linux.c:109:
/usr/include/linux/jiffies.h: At top level:
/usr/include/linux/jiffies.h:16: error: parse error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: parse error before "get_jiffies_64"
In file included from /usr/include/net/route.h:28,
                 from sys-linux.c:109:
/usr/include/net/dst.h:57: error: parse error before "u32"
/usr/include/net/dst.h:80: error: parse error before '}' token
/usr/include/net/dst.h:95: error: parse error before "u32"
/usr/include/net/dst.h:96: error: parse error before "u32"
/usr/include/net/dst.h:100: error: parse error before "kmem_cache_t"
In file included from /usr/include/net/route.h:29,
                 from sys-linux.c:109:
/usr/include/net/inetpeer.h: In function `inet_putpeer':
/usr/include/net/inetpeer.h:43: error: invalid type argument of `->'
/usr/include/net/inetpeer.h:51: error: invalid type argument of `->'
/usr/include/net/inetpeer.h:51: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/net/inetpeer.h: In function `inet_getid':
/usr/include/net/inetpeer.h:60: error: invalid type argument of `->'
/usr/include/net/inetpeer.h:63: error: invalid type argument of `->'
/usr/include/net/inetpeer.h:63: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
In file included from /usr/include/net/route.h:30,
                 from sys-linux.c:109:
/usr/include/net/flow.h: At top level:
/usr/include/net/flow.h:80: error: `BITS_PER_LONG' undeclared here (not in a function)
/usr/include/net/flow.h:80: error: requested alignment is not a constant
/usr/include/net/flow.h:86: error: parse error before "u16"
/usr/include/net/flow.h:89: error: parse error before "u16"
In file included from /usr/include/linux/route.h:26,
                 from /usr/include/net/route.h:33,
                 from sys-linux.c:109:
/usr/include/linux/if.h:95: error: redefinition of `struct ifmap'
/usr/include/linux/if.h:131: error: redefinition of `struct ifreq'
/usr/include/linux/if.h:181: error: redefinition of `struct ifconf'
In file included from sys-linux.c:109:
/usr/include/net/route.h:38:2: warning: #warning This file is not supposed to be used outside of kernel.
In file included from sys-linux.c:109:
/usr/include/net/route.h:54: error: field `dst' has incomplete type
/usr/include/net/route.h:114: error: parse error before "old_gw"
/usr/include/net/route.h:121: error: parse error before "u32"
/usr/include/net/route.h:125: error: parse error before "addr"
/usr/include/net/route.h:128: error: parse error before '*' token
/usr/include/net/route.h:141: error: parse error before "tos"
/usr/include/net/route.h: In function `rt_tos2priority':
/usr/include/net/route.h:143: error: `tos' undeclared (first use in this function)
/usr/include/net/route.h: At top level:
/usr/include/net/route.h:146: error: parse error before "u32"
/usr/include/net/route.h: In function `ip_route_connect':
/usr/include/net/route.h:150: error: `oif' undeclared (first use in this function)
/usr/include/net/route.h:151: error: `dst' undeclared (first use in this function)
/usr/include/net/route.h:152: error: `src' undeclared (first use in this function)
/usr/include/net/route.h:153: error: `tos' undeclared (first use in this function)
/usr/include/net/route.h:154: error: `protocol' undeclared (first use in this function)
/usr/include/net/route.h:156: error: `sport' undeclared (first use in this function)
/usr/include/net/route.h:157: error: `dport' undeclared (first use in this function)
/usr/include/net/route.h:161: error: `rp' undeclared (first use in this function)
/usr/include/net/route.h:169: error: `sk' undeclared (first use in this function)
/usr/include/net/route.h: At top level:
/usr/include/net/route.h:172: error: parse error before "u16"
/usr/include/net/route.h: In function `ip_route_newports':
/usr/include/net/route.h:175: error: `sport' undeclared (first use in this function)
/usr/include/net/route.h:175: error: `rp' undeclared (first use in this function)
/usr/include/net/route.h:176: error: `dport' undeclared (first use in this function)
/usr/include/net/route.h:184: error: `sk' undeclared (first use in this function)
In file included from sys-linux.c:118:
/usr/include/netinet/in.h: At top level:
/usr/include/netinet/in.h:34: error: parse error before numeric constant
/usr/include/netinet/in.h:56: error: parse error before numeric constant
/usr/include/netinet/in.h:68: error: parse error before numeric constant
/usr/include/netinet/in.h:191: error: redefinition of `struct in6_addr'
/usr/include/netinet/in.h:231: error: redefinition of `struct sockaddr_in6'
/usr/include/netinet/in.h:241: error: redefinition of `struct ipv6_mreq'
In file included from sys-linux.c:124:
pppd.h:512: error: `info' redeclared as different kind of symbol
/usr/include/net/dst.h:79: error: previous declaration of `info'
pppd.h:515: error: `error' redeclared as different kind of symbol
/usr/include/net/dst.h:63: error: previous declaration of `error'
pppd.h:603: error: `output' redeclared as different kind of symbol
/usr/include/net/dst.h:70: error: previous declaration of `output'
/usr/include/net/dst.h:77: error: storage size of `rcu_head' isn't known
make[1]: *** [sys-linux.o] Ошибка 1
make[1]: Leaving directory `/usr/src/ppp-2.4.3/pppd'
make: *** [all] Ошибка 2


Содержание

Сообщения в этом обсуждении
"Траблы компиляции ppp & kernel 2.6.x"
Отправлено Atlant , 19-Ноя-04 11:48 
Неужто никто не компилировал под 2.6??? :(