The OpenNET Project / Index page

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

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"
Вариант для распечатки  
Пред. тема | След. тема 
Форум Открытые системы на сервере (Dialup, PPP)
Изначальное сообщение [ Отслеживать ]

"Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от Link email(??) on 04-Мрт-07, 14:19 
Привет ВСЕМ
уже не один день безуспешно пытаюсь запустить указанную связку на FC6.
Пробывал все возможные сочетания версий rp-pppoe (3.5, 3.8) и ppp (2.4.2, 2.4.3, 2.4.4) - одна и таже ошибка - не компилируется pppoe с поддержкой kernel mode.

В user mode pppoe-server конфликтует с syslogd.
ПОМОГИТЕ, ПЛИЗ !!!
А то я уже на гране самоубийства :)

=======================================================================
uname -r
2.6.18-1.2798.fc6


cd /usr/local/src
ls
ppp-2.4.4.tar.gz    rp-pppoe-3.8.tar.gz

tar -zxf ppp-2.4.4.tar.gz
tar -zxf rp-pppoe-3.8.tar.gz

# компиляция и установка ppp - kernel-mode PPPoE support... yes
cd /usr/local/src/ppp-2.4.4
./configure --prefix=/usr/local/ppp
---------------------------------------------------------------------------

...
...
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
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
make install

# компиляция pppoe
cd /usr/local/src/rp-pppoe-3.8/src
./configure --prefix=/usr/local/ppp --enable-plugin=/usr/local/src/ppp-2.4.4
make
================================================
ar -rc plugin/libplugin.a plugin/discovery.o plugin/if.o plugin/common.o plugin/debug.o
gcc '-DRP_VERSION="3.8"' -g -O2 -Wall -Wstrict-prototypes -ansi    '-DPPPOE_PATH="/usr/local/ppp/sbin/pppoe"' '-DPPPD_PATH="/usr/local/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent -I/usr/local/src/ppp-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:159: error: expected '=', ',', ';', 'asm' or '__attribute__' before '___arch__swab64'before '__fswab64'
/usr/include/linux/byteorder/swab.h:169: error: expected '=', ',', ';', 'asm' or '__attribute__' before '___arch__swab64' before '__swab64p'
/usr/include/linux/byteorder/swab.h:173: 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 '___arch__swab64' before '__cpu_to_le64p'
/usr/include/linux/byteorder/little_endian.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '___arch__swab64' before '__le64_to_cpup'
/usr/include/linux/byteorder/little_endian.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before '___arch__swab64' before '__cpu_to_be64p'
/usr/include/linux/byteorder/little_endian.h:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before '___arch__swab64' before '__be64_to_cpup'
make: *** [plugin/plugin.o] Error 1

Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от exn on 04-Мрт-07, 16:56 
неприходилось ставить rp-ppoe, но могу посоветовать проверить пакеты kern|glibc*headers
и ссылки в /usr/src/, чтоб все версии совпадали, и в документации на rp-pppoe

>checking for Linux 2.4.X
а в федоре разве не 2.6.x ? может нужно указать при configure

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от linke email(ok) on 04-Мрт-07, 18:40 
./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/bin', `/usr/lib' etc.  You can specify
an installation prefix other than `/usr' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-plugin=pppd_src_path   build pppd plugin
  --disable-debugging             disable debugging code
  --enable-licenses=lic_path      build commercial version

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

>неприходилось ставить rp-ppoe, но могу посоветовать проверить пакеты kern|glibc*headers
>и ссылки в /usr/src/, чтоб все версии совпадали, и в документации на
>rp-pppoe
т.е. вы хотите сказать, что у меня EPREFIX не туда указывает??
если так, то откуда должны браться заголовочные файлы и библиотеки, необходимые для компиляции???

>>checking for Linux 2.4.X
>а в федоре разве не 2.6.x ? может нужно указать при configure
нет параметра, который позволял бы указать версию ядра.


Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору

3. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от exn on 04-Мрт-07, 19:30 
удали 2.6.x headers а вместо их поставь 2.4'e
так все работает хорошо(правда на слаке проверял)
Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору

4. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от Lify on 21-Мрт-07, 11:51 
>удали 2.6.x headers а вместо их поставь 2.4'e
>так все работает хорошо(правда на слаке проверял)

А как будет работать PPPOE на ядре 2.6.x , если я соберу его с 2.4.x headers ?
помоему, это заведомо неверный подход!

Ответить | Правка | ^ к родителю #3 | Наверх | Cообщить модератору

5. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от EXuDHA email on 25-Мрт-07, 19:10 
Не заморачивайся,
есть несколько вариантов:
1. Удали syslog и поставь syslog-ng
2. Используй ppp-2.4.2
3. А вообще все написано тут http://www.voy.com/41165/

Ответить | Правка | ^ к родителю #4 | Наверх | Cообщить модератору

6. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от QVirus on 23-Янв-08, 16:43 
Вроде как работает:
http://www.voy.com/41165/4088.html
Ответить | Правка | ^ к родителю #5 | Наверх | Cообщить модератору

7. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от Heggi on 04-Мрт-08, 22:38 
>Не заморачивайся,
>есть несколько вариантов:
>1. Удали syslog и поставь syslog-ng
>2. Используй ppp-2.4.2
>3. А вообще все написано тут http://www.voy.com/41165/

с syslog-ng тоже конфликтует... у меня gentoo, 2.6.23 rp-pppoe принципиально не собирается в кернел моде (хотя конфигурация ядра все как надо) и я 2 недели скакал с бубном, пока не увидел, что он конфликтует с сислогом

Ответить | Правка | ^ к родителю #5 | Наверх | Cообщить модератору

8. "Fedora 6 + ppp-2.4.4 + rp-pppoe-3.8 + kernel mode = ERROR"  +/
Сообщение от shados (ok) on 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)


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

Ответить | Правка | ^ к родителю #7 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Спонсоры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

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