Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Perl: Общие вопросы > Помогите разобраться с ошибкой


Автор: Serjilcg 4.8.2009, 11:08
Устанавливаю библиотеку Net::Libdnet 0.92 c CPAN.
Столкнулся с проблемой, истоки которой никак понять не могу. Прилагаю
вывод sudo make:
Код

administrator@ubuntu:~/Desktop/Perl/Net-Libdnet-0.92$ sudo make
cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.92\" -DXS_VERSION=\"0.92\" -fPIC "-I/usr/lib/perl/5.10/CORE" Libdnet.c
Libdnet.xs:46: error: expected =', ,', ;', asm' or __attribute__' before TunHandle'
Libdnet.c: In function XS_Net__Libdnet_dnet_tun_open':
Libdnet.c:1963: error: TunHandle' undeclared (first use in this function)
Libdnet.c:1963: error: (Each undeclared identifier is reported only once
Libdnet.c:1963: error: for each function it appears in.)
Libdnet.c:1963: error: RETVAL' undeclared (first use in this function)
Libdnet.c: In function XS_Net__Libdnet_dnet_tun_fileno':
Libdnet.c:1994: error: TunHandle' undeclared (first use in this function)
Libdnet.c:1994: error: handle' undeclared (first use in this function)
Libdnet.c:2000: error: expected expression before )' token
Libdnet.c: In function XS_Net__Libdnet_dnet_tun_name':
Libdnet.c:2028: error: TunHandle' undeclared (first use in this function)
Libdnet.c:2028: error: handle' undeclared (first use in this function)
Libdnet.c:2034: error: expected expression before )' token
Libdnet.xs:1208: warning: assignment makes pointer from integer without a cast
Libdnet.c: In function XS_Net__Libdnet_dnet_tun_send':
Libdnet.c:2062: error: TunHandle' undeclared (first use in this function)
Libdnet.c:2062: error: handle' undeclared (first use in this function)
Libdnet.c:2070: error: expected expression before )' token
Libdnet.c: In function XS_Net__Libdnet_dnet_tun_recv':
Libdnet.c:2098: error: TunHandle' undeclared (first use in this function)
Libdnet.c:2098: error: handle' undeclared (first use in this function)
Libdnet.c:2108: error: expected expression before )' token
Libdnet.c: In function XS_Net__Libdnet_dnet_tun_close':
Libdnet.c:2142: error: TunHandle' undeclared (first use in this function)
Libdnet.c:2142: error: handle' undeclared (first use in this function)
Libdnet.c:2143: error: RETVAL' undeclared (first use in this function)
Libdnet.c:2147: error: expected expression before )' token
make: *** [Libdnet.o] Error 1

Автор: arto 4.8.2009, 13:03
libdnet стоит?

Автор: Serjilcg 4.8.2009, 15:06
да, libdnet1 и libdnet-dev

Добавлено через 4 минуты и 10 секунд
Проблема похоже только с TunHandle, убрал его везде где упоминается и все установил...
только не могу понять почему с ним проблема?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)