Koozali.org: home of the SME Server

Charile, errors building your ppp rpm for 2.2.19-7.0.16 kern

Ryan Duffner

Charile, errors building your ppp rpm for 2.2.19-7.0.16 kern
« on: October 08, 2002, 05:40:26 PM »
I'm using kgcc-1.1.2-40 because I know my gcc-2.96-85 wont work compiling kernels. I got your ppp source rpm and see the spec file already uses kgcc, so I just updated the kernel version. I figured a simple rpm -ba ppp.spec would work ok, but the build keeps dying. It seems to do all the patches ok and configure works, but during make, i get a bunch of assembler messages. Here is the output:

# rpm -ba ppp.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.81810
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf ppp-2.4.0
+ /bin/gzip -dc /usr/src/redhat/SOURCES/ppp-2.4.0.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ppp-2.4.0
++ /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,g-w,o-w .
+ echo 'Patch #0 (ppp-2.3.11-make.patch):'
Patch #0 (ppp-2.3.11-make.patch):
+ patch -p1 -s
+ echo 'Patch #1 (ppp-2.3.6-sample.patch):'
Patch #1 (ppp-2.3.6-sample.patch):
+ patch -p1 -s
+ echo 'Patch #2 (ppp-2.3.9-wtmp.patch):'
Patch #2 (ppp-2.3.9-wtmp.patch):
+ patch -p1 -s
+ echo 'Patch #3 (ppp-2.4.0-reap.patch):'
Patch #3 (ppp-2.4.0-reap.patch):
+ patch -p1 -s
+ echo 'Patch #4 (ppp-2.3.11-pam_session.patch):'
Patch #4 (ppp-2.3.11-pam_session.patch):
+ patch -p1 -s
+ find . -type f -name '*.sample'
+ xargs rm -f
+ echo 'Patch #5 (ppp-2.4.0-mschapv2):'
Patch #5 (ppp-2.4.0-mschapv2):
+ patch -p1 -s
+ echo 'Patch #6 (ppp-2.4.0-mppe):'
Patch #6 (ppp-2.4.0-mppe):
+ patch -p1 -s
+ echo 'Patch #7 (ppp-strip-MSdomain-patch):'
Patch #7 (ppp-strip-MSdomain-patch):
+ patch -p1 -s
+ cp -a /usr/src/redhat/SOURCES/draft-ietf-pppext-mppe-05.txt /usr/src/redhat/SOURCES/draft-ietf-pppext-mppe-keys-03.txt /usr/src/redhat/SOURCES/rfc2433.txt /usr/src/redhat/SOURCES/rfc2759.txt .
+ echo 'Patch #8 (ppp-2.4.0-smbpasswd):'
Patch #8 (ppp-2.4.0-smbpasswd):
+ patch -p1 -s
+ echo 'Patch #9 (ppp-2.4.0-mppe.stateful.fix):'
Patch #9 (ppp-2.4.0-mppe.stateful.fix):
+ patch -p1 -s
+ echo 'Patch #10 (ppp_mppe.pfc_fix):'
Patch #10 (ppp_mppe.pfc_fix):
+ patch -p0 -s
+ echo 'Patch #11 (libsmb.blank_passwd_fix):'
Patch #11 (libsmb.blank_passwd_fix):
+ patch -p0 -s
+ ln -s /usr/src/linux-2.2.19/drivers drivers
+ ln -s /usr/src/linux-2.2.19/net net
+ ln -s /usr/src/linux-2.2.19/fs fs
+ ln include/linux/ppp-comp.h linux
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.77262
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ppp-2.4.0
+ ./configure
Creating links to Makefiles.
  Makefile -> linux/Makefile.top
  pppd/Makefile -> Makefile.linux
  pppstats/Makefile -> Makefile.linux
  chat/Makefile -> Makefile.linux
  pppdump/Makefile -> Makefile.linux
+ make 'RPM_OPT_FLAGS=-O2 -march=i386 -mcpu=i686'
cd chat; make  all
make[1]: Entering directory /usr/src/redhat/BUILD/ppp-2.4.0/chat'
cc -c -O2 -g -pipe -DTERMIOS                     -DSIGTYPE=void                 -UNO_SLEEP                       -DFNDELAY=O_NDELAY              -o chat.o chat.c
cc -o chat chat.o
make[1]: Leaving directory /usr/src/redhat/BUILD/ppp-2.4.0/chat'
cd pppd; make  all
make[1]: Entering directory /usr/src/redhat/BUILD/ppp-2.4.0/pppd'
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c main.c -o main.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c magic.c -o magic.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c fsm.c -o fsm.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c lcp.c -o lcp.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c ipcp.c -o ipcp.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c upap.c -o upap.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c chap.c -o chap.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c md5.c -o md5.o
md5.c: In function MD5Final':
md5.c:197: warning: implicit declaration of function memcpy'
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c ccp.c -o ccp.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c auth.c -o auth.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c options.c -o options.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c demand.c -o demand.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c utils.c -o utils.o
utils.c: In function vslprintf':
utils.c:262: warning: implicit declaration of function time'
utils.c:263: warning: implicit declaration of function ctime'
utils.c:263: warning: assignment makes pointer from integer without a cast
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c sys-linux.c -o sys-linux.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c ipxcp.c -o ipxcp.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c multilink.c -o multilink.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c tdb.c -o tdb.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c tty.c -o tty.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c sha1dgst.c -o sha1dgst.o
sha1dgst.c: In function GetNewKeyFromSHA':
sha1dgst.c:419: warning: implicit declaration of function memcpy'
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c extra_crypto.c -o extra_crypto.o
extra_crypto.c: In function DesEncrypt':
extra_crypto.c:187: warning: implicit declaration of function setkey'
extra_crypto.c:190: warning: implicit declaration of function encrypt'
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c md4.c -o md4.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c chap_ms.c -o chap_ms.o
chap_ms.c: In function ChapMS_v2_Auth':
chap_ms.c:329: warning: implicit declaration of function stpcpy'
chap_ms.c:329: warning: assignment makes pointer from integer without a cast
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN   -c mppe.c -o mppe.o
gcc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -I../include  -DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DLIBSMB=1 -DHAS_SHADOW -DUSE_PAM -DMPPE=1 -DPLUGIN -Wl,-E -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o multilink.o tdb.o tty.o sha1dgst.o extra_crypto.o md4.o chap_ms.o mppe.o -lpam -ldl -lsmbpw -lutil -lcrypt -ldl
make[1]: Leaving directory /usr/src/redhat/BUILD/ppp-2.4.0/pppd'
cd pppstats; make  all
make[1]: Entering directory /usr/src/redhat/BUILD/ppp-2.4.0/pppstats'
gcc -O2 -march=i386 -mcpu=i686 -Wall -D_linux_ -I../include -o pppstats pppstats.c
make[1]: Leaving directory /usr/src/redhat/BUILD/ppp-2.4.0/pppstats'
cd pppdump; make  all
make[1]: Entering directory /usr/src/redhat/BUILD/ppp-2.4.0/pppdump'
cc -O -I../include/net   -c pppdump.c -o pppdump.o
cc -O -I../include/net   -c bsd-comp.c -o bsd-comp.o
cc -O -I../include/net   -c deflate.c -o deflate.o
cc -O -I../include/net   -c zlib.c -o zlib.o
cc -o pppdump pppdump.o bsd-comp.o deflate.o zlib.o
make[1]: Leaving directory /usr/src/redhat/BUILD/ppp-2.4.0/pppdump'
+ N=0
+ S=
+ M=
+ cp /usr/src/linux-2.2.19/configs/kernel-2.2.19-i386.config .config
+ bash /usr/src/linux-2.2.19/scripts/Configure -d /usr/src/linux-2.2.19/arch/i386/config.in
+ kgcc -DMODULE -D__KERNEL__ -D__BOOT_KERNEL_SMP=0 -DMODVERSIONS -include /usr/src/linux-2.2.19/include/linux/modversions.h -Wall -Wstrict-prototypes -O6 -c -Iinclude -I/usr/src/linux-2.2.19/include -Ipppd -o linux/ppp_mppe.o linux/ppp_mppe.c
/tmp/ccml5rUw.s: Assembler messages:
/tmp/ccml5rUw.s:9: Warning: Ignoring changed section attributes for .modinfo
+ kgcc -DMODULE -D__KERNEL__ -D__BOOT_KERNEL_SMP=0 -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux-2.2.19/include/linux/modversions.h -Wall -Wstrict-prototypes -O6 -c -I. -I/usr/src/linux-2.2.19/include -o linux/ppp.o /usr/src/linux-2.2.19/drivers/net/ppp.c
/usr/src/linux-2.2.19/drivers/net/ppp.c:100: warning: static declaration for ppp_unregister_compressor_Ra1b928df' follows non-static
/tmp/cclUuRI9.s: Assembler messages:
/tmp/cclUuRI9.s:9: Warning: Ignoring changed section attributes for .modinfo
+ N=1
+ S=-smp
+ M= -D__SMP__
+ cp /usr/src/linux-2.2.19/configs/kernel-2.2.19-i386-smp.config .config
+ bash /usr/src/linux-2.2.19/scripts/Configure -d /usr/src/linux-2.2.19/arch/i386/config.in
+ kgcc -DMODULE -D__KERNEL__ -D__BOOT_KERNEL_SMP=1 -DMODVERSIONS -D__SMP__ -include /usr/src/linux-2.2.19/include/linux/modversions.h -Wall -Wstrict-prototypes -O6 -c -Iinclude -I/usr/src/linux-2.2.19/include -Ipppd -o linux/ppp_mppe.osmp linux/ppp_mppe.c
/tmp/ccE25Flp.s: Assembler messages:
/tmp/ccE25Flp.s:9: Warning: Ignoring changed section attributes for .modinfo
+ kgcc -DMODULE -D__KERNEL__ -D__BOOT_KERNEL_SMP=1 -DEXPORT_SYMTAB -DMODVERSIONS -D__SMP__ -include /usr/src/linux-2.2.19/include/linux/modversions.h -Wall -Wstrict-prototypes -O6 -c -I. -I/usr/src/linux-2.2.19/include -o linux/ppp.osmp /usr/src/linux-2.2.19/drivers/net/ppp.c
/usr/src/linux-2.2.19/include/asm/smp.h: In function hard_smp_processor_id':
In file included from /usr/src/linux-2.2.19/include/linux/smp.h:11,
                 from /usr/src/linux-2.2.19/include/linux/sched.h:20,
                 from /usr/src/linux-2.2.19/drivers/net/ppp.c:54:
/usr/src/linux-2.2.19/include/asm/smp.h:209: warning: implicit declaration of function GET_APIC_ID'
/usr/src/linux-2.2.19/include/asm/smp.h:209: APIC_BASE' undeclared (first use in this function)
/usr/src/linux-2.2.19/include/asm/smp.h:209: (Each undeclared identifier is reported only once
/usr/src/linux-2.2.19/include/asm/smp.h:209: for each function it appears in.)
/usr/src/linux-2.2.19/include/asm/smp.h:209: APIC_ID' undeclared (first use in this function)
/usr/src/linux-2.2.19/drivers/net/ppp.c: At top level:
/usr/src/linux-2.2.19/drivers/net/ppp.c:100: warning: static declaration for ppp_unregister_compressor_Rsmpa1b928df' follows non-static
error: Bad exit status from /var/tmp/rpm-tmp.77262 (%build)

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


Do you have any suggestions? I have looked around for somewhere to start, but never found anything that fixed this! Has anyone else successfully build this package for kernel 2.2.19-7.0.16?

By the way, in case anyone is wondering, the above is on a very highly modified 4.1.2 box.