Решено: не хочет компилиться (поиск пакетов для pppoe, nacctd и ntb)

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Решено: не хочет компилиться

Сообщение raven23 »

чего ему не хватает кроме моих мозгов?
ОС: сусе 10.2

Код:

tulik:/usr/local/src/rp-pppoe-3.8/src # make gcc '-DRP_VERSION="3.8"' -g -O2 -Wall -Wstrict-prototypes -ansi '-DPPPOE_PATH ="/usr/local/ppp/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/et c/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-optio ns"' -Ilibevent -I/usr/local/src/ppp-2.4.3 -c -o plugin/plugin.o -fPIC plugin.c In file included from /usr/include/asm/byteorder.h:59, from /usr/include/linux/if_pppox.h:21, from plugin.c:56: /usr/include/linux/byteorder/little_endian.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le64' /usr/include/linux/byteorder/little_endian.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u64' /usr/include/linux/byteorder/little_endian.h:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le32' /usr/include/linux/byteorder/little_endian.h:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u32' /usr/include/linux/byteorder/little_endian.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le16' /usr/include/linux/byteorder/little_endian.h:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u16' /usr/include/linux/byteorder/little_endian.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be64' /usr/include/linux/byteorder/little_endian.h:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u64' /usr/include/linux/byteorder/little_endian.h:75: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be32' /usr/include/linux/byteorder/little_endian.h:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u32' /usr/include/linux/byteorder/little_endian.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be16' /usr/include/linux/byteorder/little_endian.h:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u16' make: *** [plugin/plugin.o] Ошибка 1
Спасибо сказали:
Аватара пользователя
nesk
Сообщения: 2268
Статус: Линукссаксовец
ОС: MS Windows XP Home SP3

Re: Решено: не хочет компилиться

Сообщение nesk »

1) а что для suse нет готовый эрпеэмки в стандартных депотах?
2) а ./configure прошло успещно? без сообщения об ошибках? мне кажется, просто не определенна глобальная переменная для тегов условной компиляции.
Внимание: У меня под рукой нет машины с Linux. Я не использую эту ОС. Ответы я даю либо по памяти, либо мне помогает гугл. Тщательно читайте маны по тем командам и конфигурационным файлам, которые я упоминаю.

0xDEFEC8ED
Спасибо сказали:
wyldrodney
Сообщения: 93
ОС: Своя-0.1.4.2

Re: Решено: не хочет компилиться

Сообщение wyldrodney »

Может нужно поставить пакет kernel-sources, и конфигурировать с указанием заголовков, типа:

Код: Выделить всё

./configure --with-headers=/usr/src/linux/include
Мазохист...
Спасибо сказали:
Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Re: Решено: не хочет компилиться

Сообщение raven23 »

вот команда ./configure:

Код:

tulik:/usr/local/src/rp-pppoe-3.8/src # PATH=$PATH:/usr/local/ppp/sbin ./configure --prefix=/usr/local/ppp --enable-plugin=/usr/local/src/ppp-2.4.3 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/dlpi.h usability... no checking sys/dlpi.h presence... no checking for sys/dlpi.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking net/if_arp.h usability... yes checking net/if_arp.h presence... yes checking for net/if_arp.h... yes checking netinet/if_ether.h usability... yes checking netinet/if_ether.h presence... yes checking for netinet/if_ether.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for fcntl.h... (cached) yes checking net/bpf.h usability... no checking net/bpf.h presence... no checking for net/bpf.h... no checking netpacket/packet.h usability... yes checking netpacket/packet.h presence... yes checking for netpacket/packet.h... yes checking net/ethernet.h usability... yes checking net/ethernet.h presence... yes checking for net/ethernet.h... yes checking asm/types.h usability... yes checking asm/types.h presence... yes checking for asm/types.h... yes checking linux/if_packet.h usability... yes checking linux/if_packet.h presence... yes checking for linux/if_packet.h... yes checking linux/if_ether.h usability... yes checking linux/if_ether.h presence... yes checking for linux/if_ether.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/cdefs.h usability... yes checking sys/cdefs.h presence... yes checking for sys/cdefs.h... yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking net/if_dl.h usability... no checking net/if_dl.h presence... no checking for net/if_dl.h... no checking net/if_ether.h usability... no checking net/if_ether.h presence... no checking for net/if_ether.h... no checking net/if_types.h usability... no checking net/if_types.h presence... no checking for net/if_types.h... no checking for netinet/if_ether.h... (cached) yes checking for net/if_types.h... (cached) no checking for net/if_dl.h... (cached) no checking for linux/if.h... yes checking for linux/if_pppox.h... yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct sockaddr_ll... yes checking for N_HDLC line discipline... yes checking for working memcmp... yes checking for function prototypes... yes checking whether setvbuf arguments are reversed... no checking return type of signal handlers... void checking for select... yes checking for socket... yes checking for strerror... yes checking for strtol... yes checking for a BSD-compatible install... /usr/bin/install -c checking for unsigned short... yes checking size of unsigned short... 2 checking for unsigned int... yes checking size of unsigned int... 4 checking for unsigned long... yes checking size of unsigned long... 4 checking for pppd... /usr/sbin/pppd checking for echo... /bin/echo checking for setsid... /usr/bin/setsid checking for id... /usr/bin/id checking for Linux 2.4.X kernel-mode PPPoE support... yes checking packing order of bit fields... reversed configure: creating ./config.status config.status: creating Makefile config.status: creating libevent/Makefile config.status: creating ../scripts/pppoe-connect config.status: creating ../scripts/pppoe-start config.status: creating ../scripts/pppoe-stop config.status: creating ../scripts/pppoe-init config.status: creating ../scripts/pppoe-init-suse config.status: creating ../scripts/pppoe-init-turbolinux config.status: creating ../scripts/pppoe-setup config.status: creating ../gui/Makefile config.status: creating ../gui/tkpppoe config.status: creating config.h config.status: config.h is unchanged On this platform, the following targets will be built: pppoe pppoe-server pppoe-sniff pppoe-relay rp-pppoe.so Type 'make' to compile the software.


а маке ругается...
Спасибо сказали:
Olegator
Сообщения: 2493
ОС: SuseLinux 11.2 KDE 4.3

Re: Решено: не хочет компилиться

Сообщение Olegator »

http://download.opensuse.org/repositories/...3.8-65.i586.rpm , или мы лёгких путей не ищем ? :) настоящие герои всегда идут в обход :)))
Спасибо сказали:
Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Re: Решено: не хочет компилиться

Сообщение raven23 »

большое спасибо!
а пакетов nacctd и ntb(со скриптом запуска), там случайно нет? :)
Спасибо сказали:
Olegator
Сообщения: 2493
ОС: SuseLinux 11.2 KDE 4.3

Re: Решено: не хочет компилиться

Сообщение Olegator »

ну так поищите http://software.opensuse.org/search
Спасибо сказали:
stampoon
Сообщения: 702
ОС: Mandrake/Mandriva Cooker

Re: Решено: не хочет компилиться

Сообщение stampoon »

http://rpm.pbone.net/
Вот еще хороший ресурсик.
Интеллект — это способность избегать выполнения работы, но так, чтобы она при этом была сделана.
Спасибо сказали:
Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Re: Решено: не хочет компилиться

Сообщение raven23 »

жаль... там такого нет... подскажите пожалуйста, где можно найти такие пакеты?
ну хоть примерно..
заранее благодарен.
Спасибо сказали:
wyldrodney
Сообщения: 93
ОС: Своя-0.1.4.2

Re: Решено: не хочет компилиться

Сообщение wyldrodney »

http://www.rpmfind.net/ , ибо ФАЙНД:D
Мазохист...
Спасибо сказали:
Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Re: Решено: не хочет компилиться

Сообщение raven23 »

может там нужно полностью указывать имя файла?
а то просто запросы ntb и nacctd ничего не дали... :)
Спасибо сказали:
Аватара пользователя
Goodvin
Ведущий рубрики
Сообщения: 4333
Статус: ⚝⚠⚒⚑⚖☭☞☣☤&

Re: Решено: не хочет компилиться

Сообщение Goodvin »

raven23 писал(а):
14.11.2007 06:06
может там нужно полностью указывать имя файла?
а то просто запросы ntb и nacctd ничего не дали... :)
Враньё !
Зачем вы морочите людям голову ?

Поиск на http://rpm.pbone.net выдаёт отличные результаты:

по слову "nacctd"
Search results for nacctd :OpenSuSE ftp.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/x86_64/netacct-0.71-574.x86_64.rpm
OpenSuSE ftp.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/i586/netacct-0.71-574.i586.rpm
OpenSuSE ftp.opensuse.org/distribution/10.3/repo/oss/suse/x86_64/netacct-0.71-570.x86_64.rpm
OpenSuSE ftp.opensuse.org/distribution/10.3/repo/oss/suse/i586/netacct-0.71-570.i586.rpm
OpenSuSE ftp.opensuse.org/distribution/10.2/repo/oss/suse/x86_64/netacct-0.71-529.x86_64.rpm
OpenSuSE ftp.opensuse.org/distribution/10.2/repo/oss/suse/i586/netacct-0.71-529.i586.rpm
OpenSuSE ftp.opensuse.org/distribution/SL-10.1/inst-source/suse/x86_64/netacct-0.71-509.x86_64.rpm
OpenSuSE ftp.opensuse.org/distribution/SL-10.1/inst-source/suse/i586/netacct-0.71-509.i586.rpm
OpenSuSE ftp.opensuse.org/distribution/SL-10.0-OSS/inst-source/suse/x86_64/netacct-0.71-500.x86_64.rpm
OpenSuSE ftp.opensuse.org/distribution/SL-10.0-OSS/inst-source/suse/i586/netacct-0.71-500.i586.rpm


по слову "nbt"
Search results for nbt :Filename Distribution File size
nbtscan-1.5.1-1.guru.suse93.src.rpm SuSE Other 84 kB
nbtscan-1.5.1-1.guru.suse93.i686.rpm SuSE Other 23 kB Info available.
nbtscan-1.5.1-1.guru.suse92.i686.rpm SuSE Other 23 kB Info available.
nbtscan-1.5.1-1.guru.suse91.i686.rpm SuSE Other 24 kB Info available.
nbtscan-1.5.1-1.guru.suse90.i686.rpm SuSE Other 24 kB Info available.
nbtscan-1.5.1-1.guru.suse82.i686.rpm SuSE Other 23 kB Info available.
Спасибо сказали:
Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Re: Решено: не хочет компилиться

Сообщение raven23 »

Goodvin писал(а):
14.11.2007 17:18
Враньё !
Зачем вы морочите людям голову ?


Уважаемый Goodvin!
пакет nacctd там действительно имеется, а вот насчет nbt - он мне не нужен! мне нужен ntb!

З.Ы. и почему так категорично? я что пишу не в том разделе? если вы считаете себя выше того чтобы помогать новичкам, то попрошу больше не отвечать на мои вопросы.

Горячим финским парням просьба учиться договариваться между собой, а не обижаться друг на друга. :girl_hospital: (J)
Спасибо сказали:
wyldrodney
Сообщения: 93
ОС: Своя-0.1.4.2

Re: Решено: не хочет компилиться

Сообщение wyldrodney »

Гугль в помощь! Дело двух минут: http://www.cns.unibe.ch/tools/neurotrace/NTB.tar.gz

А вот тут что-то похожее: http://www.cns.unibe.ch/tools/details.php?tool_id=3
Мазохист...
Спасибо сказали:
Аватара пользователя
Goodvin
Ведущий рубрики
Сообщения: 4333
Статус: ⚝⚠⚒⚑⚖☭☞☣☤&

Re: Решено: не хочет компилиться

Сообщение Goodvin »

raven23 писал(а):
15.11.2007 07:40
Goodvin писал(а):
14.11.2007 17:18
Враньё !
Зачем вы морочите людям голову ?


Уважаемый Goodvin!
пакет nacctd там действительно имеется, а вот насчет nbt - он мне не нужен! мне нужен ntb!

За ntb таки да, приношу извинения, моя оплошность, перепутал буквы.
Насчет nacctd - всё остаётся в силе, никак Вы, батенька, его не искали и, видимо, не собо-то и желали отыскать.
А нам морочите головы.

raven23 писал(а):
15.11.2007 07:40
З.Ы. и почему так категорично? я что пишу не в том разделе? если вы считаете себя выше того чтобы помогать новичкам, то попрошу больше не отвечать на мои вопросы.

Да потому что Вы держите форумчан за идиотов.
Вам дают конкретное место, где расположен пакет - а вы даже не удосуживаетесь совершить минимальные телодвижения, ожидая пока положат ложку в рот.
И рассказываете басни про то, что там "нету".
Про гугль вообще уже молчу.
Имейте уж достоинство сказать честно "я ничего делать не хочу, дайте мне готовое" или хоть "я не умею искать, на тех страничках всё по-аглицки, ни бельмеса там не понял, переводить не хочу, найдите мне пакет".
Так и то лучше будет.

raven23 писал(а):
15.11.2007 07:40
Горячим финским парням просьба учиться договариваться между собой, а не обижаться друг на друга. :girl_hospital: (J)
Ми ушше дагафарИллись.. :)
Спасибо сказали:
Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Re: Решено: не хочет компилиться

Сообщение raven23 »

большое всем спасибо за помощь, все нашлось и как ни странно работает!
я ожидал что все будет гораздо сложнее...

сегодня отмечу это дело... :drinks:
Спасибо сказали:
Аватара пользователя
Goodvin
Ведущий рубрики
Сообщения: 4333
Статус: ⚝⚠⚒⚑⚖☭☞☣☤&

Re: Решено: не хочет компилиться

Сообщение Goodvin »

raven23 писал(а):
15.11.2007 12:50
большое всем спасибо за помощь, все нашлось и как ни странно работает!
я ожидал что все будет гораздо сложнее...

сегодня отмечу это дело... :drinks:

Если не затруднит - оставьте здесь конкретные ссылки, где и что было найдено.
Это поможет Вашим последователям, которые будут решать тот же вопрос.
Спасибо сказали:
Аватара пользователя
raven23
Сообщения: 34
ОС: suse 10.2 Enterprise Server

Re: Решено: не хочет компилиться

Сообщение raven23 »

Goodvin писал(а):
17.11.2007 11:10
Если не затруднит - оставьте здесь конкретные ссылки, где и что было найдено.
Это поможет Вашим последователям, которые будут решать тот же вопрос.

ссылки по теме см. выше. :)
Эти пакеты мне нужны были для этого:

http://www.opennet.ru/base/net/pppoe_gate.txt.html

замечательная статья по настройке шлюзового сервера :)
все описано достаточного подробно даже для человека только что увидевшего Линукс...
Спасибо сказали: