The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"
Отправлено shados, 28-Апр-12 14:25 
У меня возникла такая же проблема, но с Centos 5.8:

rpmbuild -ba rp-pppoe.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.13301
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf rp-pppoe-3.5
+ /bin/gzip -dc /usr/src/redhat/SOURCES/rp-pppoe-3.5.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rp-pppoe-3.5
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (rp-pppoe-3.4-redhat.patch):'
Patch #0 (rp-pppoe-3.4-redhat.patch):
+ patch -p1 -b --suffix .config -s
+ echo 'Patch #1 (rp-pppoe-3.5-buildroot.patch):'
Patch #1 (rp-pppoe-3.5-buildroot.patch):
+ patch -p1 -b --suffix .buildroot -s
+ echo 'Patch #2 (rp-pppoe-3.5-firewall.patch):'
Patch #2 (rp-pppoe-3.5-firewall.patch):
+ patch -p1 -b --suffix .ipchains -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.13301
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd rp-pppoe-3.5
+ cd src
+ autoconf
+ CFLAGS=-D_GNU_SOURCE
+ CFLAGS=-D_GNU_SOURCE
+ export CFLAGS
+ CXXFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu --target=i386-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-plugin=/usr/lib/pppd/2.4.4/
checking for i686-redhat-linux-gnu-gcc... no
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 i686-redhat-linux-gnu-ranlib... no
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 linux/if_pppox.h usability... no
checking linux/if_pppox.h presence... yes
configure: WARNING: linux/if_pppox.h: present but cannot be compiled
configure: WARNING: linux/if_pppox.h:     check for missing prerequisite headers?
configure: WARNING: linux/if_pppox.h: see the Autoconf documentation
configure: WARNING: linux/if_pppox.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/if_pppox.h: proceeding with the preprocessor's result
configure: WARNING: linux/if_pppox.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for linux/if_pppox.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 linux/if.h usability... no
checking linux/if.h presence... yes
configure: WARNING: linux/if.h: present but cannot be compiled
configure: WARNING: linux/if.h:     check for missing prerequisite headers?
configure: WARNING: linux/if.h: see the Autoconf documentation
configure: WARNING: linux/if.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/if.h: proceeding with the preprocessor's result
configure: WARNING: linux/if.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for linux/if.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 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 echo... /bin/echo
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 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/adsl-connect
config.status: creating ../scripts/adsl-start
config.status: creating ../scripts/adsl-stop
config.status: creating ../scripts/adsl-init
config.status: creating ../scripts/adsl-init-suse
config.status: creating ../scripts/adsl-init-turbolinux
config.status: creating ../scripts/adsl-setup
config.status: creating ../gui/Makefile
config.status: creating ../gui/tkpppoe
config.status: creating config.h

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.
+ make
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o pppoe.o pppoe.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o if.o if.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o debug.o debug.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o common.o common.c
common.c: In function ‘sendPADT’:
common.c:444: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o ppp.o ppp.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o discovery.o discovery.c
gcc -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o pppoe-server.o pppoe-server.c
pppoe-server.c: In function ‘sendHURLorMOTM’:
pppoe-server.c:2039: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o md5.o md5.c
cd libevent && make
make[1]: Entering directory `/usr/src/redhat/BUILD/rp-pppoe-3.5/src/libevent'
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o event.o event.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o event_tcp.o event_tcp.c
event_tcp.c: In function ‘handle_accept’:
event_tcp.c:59: warning: ISO C forbids conversion of object pointer to function pointer type
event_tcp.c: In function ‘EventTcp_CreateAcceptor’:
event_tcp.c:150: warning: ISO C forbids conversion of function pointer to object pointer type
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o hash.o hash.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic -I.. -c -o event_sig.o event_sig.c
rm -f libevent.a
ar -cq libevent.a event.o event_tcp.o hash.o event_sig.o
ranlib libevent.a
make[1]: Leaving directory `/usr/src/redhat/BUILD/rp-pppoe-3.5/src/libevent'
gcc -o pppoe-server  pppoe-server.o if.o debug.o common.o md5.o   -Llibevent -levent
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o pppoe-sniff.o pppoe-sniff.c
gcc -o pppoe-sniff pppoe-sniff.o if.o common.o debug.o
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o relay.o relay.c
relay.c: In function ‘relaySendError’:
relay.c:1490: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
gcc -o pppoe-relay relay.o if.o debug.o common.o
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o plugin/discovery.o -fPIC discovery.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o plugin/if.o -fPIC if.c
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o plugin/common.o -fPIC common.c
common.c: In function ‘sendPADT’:
common.c:444: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
gcc -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.5"' -c -o plugin/debug.o -fPIC debug.c
ar -rc plugin/libplugin.a plugin/discovery.o plugin/if.o plugin/common.o plugin/debug.o
gcc '-DRP_VERSION="3.5"' -D_GNU_SOURCE -Wall -Wstrict-prototypes -ansi -pedantic    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent -I/usr/lib/pppd/2.4.4/ -c -o plugin/plugin.o -fPIC plugin.c
In file included from /usr/include/linux/if_pppox.h:21,
                 from plugin.c:56:
/usr/include/asm/byteorder.h:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘___arch__swab64’
In file included from /usr/include/linux/byteorder/little_endian.h:12,
                 from /usr/include/asm/byteorder.h:53,
                 from /usr/include/linux/if_pppox.h:21,
                 from plugin.c:56:
/usr/include/linux/byteorder/swab.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘___swab64’
/usr/include/linux/byteorder/swab.h:187: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fswab64’
/usr/include/linux/byteorder/swab.h:197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__swab64p’
/usr/include/linux/byteorder/swab.h:201: error: expected ‘)’ before ‘*’ token
In file included from /usr/include/asm/byteorder.h:53,
                 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 ‘__cpu_to_le64p’
/usr/include/linux/byteorder/little_endian.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__le64_to_cpup’
/usr/include/linux/byteorder/little_endian.h:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cpu_to_be64p’
/usr/include/linux/byteorder/little_endian.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__be64_to_cpup’
plugin.c:72: warning: ISO C forbids conversion of function pointer to object pointer type
plugin.c:423: warning: obsolete use of designated initializer with ‘:’
plugin.c:424: warning: obsolete use of designated initializer with ‘:’
plugin.c:425: warning: obsolete use of designated initializer with ‘:’
plugin.c:426: warning: obsolete use of designated initializer with ‘:’
plugin.c:427: warning: obsolete use of designated initializer with ‘:’
plugin.c:428: warning: obsolete use of designated initializer with ‘:’
plugin.c:429: warning: obsolete use of designated initializer with ‘:’
plugin.c:430: warning: obsolete use of designated initializer with ‘:’
plugin.c:431: warning: obsolete use of designated initializer with ‘:’
plugin.c:432: warning: obsolete use of designated initializer with ‘:’
plugin.c:433: warning: obsolete use of designated initializer with ‘:’
make: *** [plugin/plugin.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.13301 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.13301 (%build)


Что я делаю не так?

 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.

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



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру