Re: LCP log of problems with PPP and 2.1.109 (was: PPP trashed in 2.1.109) (fwd)

Bruce A. Locke (blocke@lizard.org)
Sun, 19 Jul 1998 04:38:29 -0400 (EDT)


Sorry for the email goofup... this should have been sent to the list also :)

Ok... this email is a large because it contains a recap of all the old info
I sent to this list with the new stuff requested.

This is the line I'm trying to use to start pppd:

pppd connect 'chat -v "" ATDT2232000 CONNECT "" ogin: myuserid word: \
mypassword' /dev/ttyS2 115200 debug crtscts modem defaultroute passive \
noipdefault

It works prefectly in 2.1.106 but does the following in 2.1.109:

Jul 18 06:40:03 capsize pppd[459]: pppd 2.3.5 started by root, uid 0
Jul 18 06:40:30 capsize pppd[459]: Serial connection established.
Jul 18 06:40:31 capsize pppd[459]: Using interface ppp0
Jul 18 06:40:31 capsize pppd[459]: Connect: ppp0 <--> /dev/ttyS2
Jul 18 06:40:31 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:33 capsize pppd[459]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:33 capsize pppd[459]: sent [LCP ConfAck id=0x2 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:34 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:36 capsize pppd[459]: rcvd [LCP ConfReq id=0x3 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:36 capsize pppd[459]: sent [LCP ConfAck id=0x3 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:37 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:39 capsize pppd[459]: rcvd [LCP ConfReq id=0x4 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:39 capsize pppd[459]: sent [LCP ConfAck id=0x4 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:40 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:42 capsize pppd[459]: rcvd [LCP ConfReq id=0x5 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:42 capsize pppd[459]: sent [LCP ConfAck id=0x5 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:43 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:45 capsize pppd[459]: rcvd [LCP ConfReq id=0x6 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:45 capsize pppd[459]: sent [LCP ConfAck id=0x6 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:46 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:48 capsize pppd[459]: rcvd [LCP ConfReq id=0x7 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:48 capsize pppd[459]: sent [LCP ConfAck id=0x7 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:49 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:51 capsize pppd[459]: rcvd [LCP ConfReq id=0x8 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:51 capsize pppd[459]: sent [LCP ConfAck id=0x8 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:52 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:54 capsize pppd[459]: rcvd [LCP ConfReq id=0x9 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:54 capsize pppd[459]: sent [LCP ConfAck id=0x9 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:55 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:40:57 capsize pppd[459]: rcvd [LCP ConfReq id=0xa <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:57 capsize pppd[459]: sent [LCP ConfAck id=0xa <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:40:58 capsize pppd[459]: sent [LCP ConfReq id=0x1 <magic
0xffff8081>
<pcomp> <accomp>]
Jul 18 06:41:00 capsize pppd[459]: rcvd [LCP ConfReq id=0xb <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:00 capsize pppd[459]: sent [LCP ConfAck id=0xb <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:01 capsize pppd[459]: LCP: timeout sending Config-Requests
Jul 18 06:41:03 capsize pppd[459]: rcvd [LCP ConfReq id=0xc <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:03 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:03 capsize pppd[459]: sent [LCP ConfAck id=0xc <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:06 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:06 capsize pppd[459]: rcvd [LCP ConfReq id=0xd <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:06 capsize pppd[459]: sent [LCP ConfAck id=0xd <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:09 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:09 capsize pppd[459]: rcvd [LCP ConfReq id=0xe <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:09 capsize pppd[459]: sent [LCP ConfAck id=0xe <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:12 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:12 capsize pppd[459]: rcvd [LCP ConfReq id=0xf <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:12 capsize pppd[459]: sent [LCP ConfAck id=0xf <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:15 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:15 capsize pppd[459]: rcvd [LCP ConfReq id=0x10 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:15 capsize pppd[459]: sent [LCP ConfAck id=0x10 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:18 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:18 capsize pppd[459]: rcvd [LCP ConfReq id=0x11 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:18 capsize pppd[459]: sent [LCP ConfAck id=0x11 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:21 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:21 capsize pppd[459]: rcvd [LCP ConfReq id=0x12 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:21 capsize pppd[459]: sent [LCP ConfAck id=0x12 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:24 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:24 capsize pppd[459]: rcvd [LCP ConfReq id=0x13 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:24 capsize pppd[459]: sent [LCP ConfAck id=0x13 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:27 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:27 capsize pppd[459]: rcvd [LCP ConfReq id=0x14 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:27 capsize pppd[459]: sent [LCP ConfAck id=0x14 <asyncmap 0x0>
<magic 0x10ccf11a> <pcomp> <accomp>]
Jul 18 06:41:30 capsize pppd[459]: sent [LCP ConfReq id=0x2 <magic 0x2cfa>
<pcomp> <accomp>]
Jul 18 06:41:31 capsize pppd[459]: Hangup (SIGHUP)
Jul 18 06:41:31 capsize pppd[459]: Modem hangup
Jul 18 06:41:31 capsize pppd[459]: Connection terminated.
Jul 18 06:41:32 capsize pppd[459]: Exit.

It does the above every time I try it with 2.1.109.

Again it works fine with 2.1.106 but doesn't work at all with 2.1.109. The
only thing that had originally changed was the kernel.

As suggested by a few people on this list I updated my pppd to a precompiled
rpm of 2.3.5 and added the "passive" param. This made no difference.

Someone suggested that I compile 2.3.5 myself with the 2.1.109 kernel. For
some reason it refuses to compile. Info is below:

First a little background info:

System is a RedHat 5.1 system with a 2.1.109 kernel tree in /usr/src/linux

[root@capsize ppp-2.3.5]# rpm -q gcc
gcc-2.7.2.3-11
[root@capsize ppp-2.3.5]# rpm -q egcs
egcs-1.0.2-8
[root@capsize ppp-2.3.5]# egcs --version
egcs-2.90.27 980315 (egcs-1.0.2 release)

Heavily modularized kernel (ppp as a module, etc)

The following is when I tried to compile ppp-2.3.5 with 2.1.109:

[make kernel in /usr/src/redhat/SOURCES/ppp-2.3.5] :

It is perfectly legal for this script to run without making any changes
to your system. This means that the system currently contains the
necessary changes to support this package. Please do not attempt to
force this script to replace any file nor make any patch. If you do so
then it is probable that you are actually putting older, buggier, code
over the newer, fixed, code. Thank you.

Installing into kernel version 2.1.109 in /usr/src/linux

/usr/src/linux/drivers/net/bsd_comp.c is newer than bsd_comp.c, skipping
/usr/src/linux/drivers/net/ppp_deflate.c is newer than ppp_deflate.c,
skipping
/usr/src/linux/drivers/net/zlib.c is newer than zlib.c, skipping
/usr/src/linux/drivers/net/zlib.h is newer than zlib.h, skipping
/usr/src/linux/include/linux/if_ppp.h is newer than if_ppp.h, skipping
/usr/src/linux/include/linux/if_pppvar.h is newer than if_pppvar.h, skipping
/usr/src/linux/include/linux/ppp-comp.h is newer than ppp-comp.h, skipping
/usr/src/linux/include/linux/ppp_defs.h is newer than ppp_defs.h, skipping
/usr/src/linux/drivers/net/ppp.c is newer than ppp.c, skipping
Adding BSD compression module to drivers makefile...(already
there--skipping)
Adding Deflate compression module to drivers makefile...(already
there--skipping)
Installing stub include file in /usr/include/net/if_pppvar.h
Kernel driver files installation done.

[ make (after make clean and make kernel) ]:

[root@capsize ppp-2.3.5]# make
cd chat; make all
make[1]: Entering directory /usr/src/redhat/SOURCES/ppp-2.3.5/chat'
cc -c -O2 -pipe -DTERMIOS -DSIGTYPE=void
-UNO_SLEEP -DFNDELAY=O_NDELAY -o chat.o
chat.c
cc -s -O2 -o chat chat.o
make[1]: Leaving directory /usr/src/redhat/SOURCES/ppp-2.3.5/chat'
cd pppd; make all
make[1]: Entering directory /usr/src/redhat/SOURCES/ppp-2.3.5/pppd'
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c main.c -o main.o
main.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c magic.c -o
magic.o
magic.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c fsm.c -o fsm.o
fsm.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c lcp.c -o lcp.o
lcp.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c ipcp.c -o ipcp.o
ipcp.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c upap.c -o upap.o
upap.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c chap.c -o chap.o
chap.c:37: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c md5.c -o md5.o
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c ccp.c -o ccp.o
ccp.c:29: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c auth.c -o auth.o
auth.c:36: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c options.c -o
options.o
options.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c demand.c -o
demand.o
demand.c:21: warning: csid' defined but not used
cc -O2 -pipe -Wall -g -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -I../include
-DCHAPMS=1 -DUSE_CRYPT=1 -DHAVE_CRYPT_H=1 -DHAS_SHADOW -c sys-linux.c -o
sys-linux.o
In file included from sys-linux.c:68:
../include/linux/ppp_defs.h:97: parse error before xt_accm'
../include/linux/ppp_defs.h:97: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:113: parse error before _u32'
../include/linux/ppp_defs.h:113: warning: no semicolon at end of struct or
union
../include/linux/ppp_defs.h:115: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:116: parse error before pp_ioctects'
../include/linux/ppp_defs.h:116: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:117: parse error before pp_ipackets'
../include/linux/ppp_defs.h:117: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:118: parse error before pp_ierrors'
../include/linux/ppp_defs.h:118: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:119: parse error before pp_ilqrs'
../include/linux/ppp_defs.h:119: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:121: parse error before pp_obytes'
../include/linux/ppp_defs.h:121: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:122: parse error before pp_ooctects'
../include/linux/ppp_defs.h:122: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:123: parse error before pp_opackets'
../include/linux/ppp_defs.h:123: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:124: parse error before pp_oerrors'
../include/linux/ppp_defs.h:124: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:125: parse error before pp_olqrs'
../include/linux/ppp_defs.h:125: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:129: parse error before _u32'
../include/linux/ppp_defs.h:129: warning: no semicolon at end of struct or
union
../include/linux/ppp_defs.h:130: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:131: parse error before js_searches'
../include/linux/ppp_defs.h:131: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:132: parse error before js_misses'
../include/linux/ppp_defs.h:132: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:133: parse error before js_uncompressedin'
../include/linux/ppp_defs.h:133: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:134: parse error before js_compressedin'
../include/linux/ppp_defs.h:134: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:135: parse error before js_errorin'
../include/linux/ppp_defs.h:135: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:136: parse error before js_tossed'
../include/linux/ppp_defs.h:136: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:140: parse error before _u32'
../include/linux/ppp_defs.h:140: warning: no semicolon at end of struct or
union
../include/linux/ppp_defs.h:141: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:142: parse error before omp_bytes'
../include/linux/ppp_defs.h:142: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:143: parse error before omp_packets'
../include/linux/ppp_defs.h:143: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:144: parse error before nc_bytes'
../include/linux/ppp_defs.h:144: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:145: parse error before nc_packets'
../include/linux/ppp_defs.h:145: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:148: parse error before n_count'
../include/linux/ppp_defs.h:148: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:149: parse error before ytes_out'
../include/linux/ppp_defs.h:149: warning: data definition has no type or
storage class
../include/linux/ppp_defs.h:152: parse error before }'
../include/linux/ppp_defs.h:155: field ' has incomplete type
../include/linux/ppp_defs.h:156: field j' has incomplete type
../include/linux/ppp_defs.h:160: field ' has incomplete type
../include/linux/ppp_defs.h:161: field ' has incomplete type
In file included from sys-linux.c:69:
../include/linux/if_ppp.h:92: parse error before _u8'
../include/linux/if_ppp.h:92: warning: no semicolon at end of struct or
union
../include/linux/if_ppp.h:93: warning: data definition has no type or
storage class
../include/linux/if_ppp.h:95: parse error before }'
In file included from sys-linux.c:71:
pppd.h:266: parse error before xt_accm'
sys-linux.c:983: parse error before xt_accm'
sys-linux.c: In function pp_set_xaccm':
sys-linux.c:988: ccm' undeclared (first use this function)
sys-linux.c:988: (Each undeclared identifier is reported only once
sys-linux.c:988: for each function it appears in.)
sys-linux.c: In function cp_test':
sys-linux.c:1047: storage size of ata' isn't known
sys-linux.c:1054: sizeof applied to an incomplete type
sys-linux.c:1047: warning: unused variable ata'
make[1]: *** [sys-linux.o] Error 1
make[1]: Leaving directory /usr/src/redhat/SOURCES/ppp-2.3.5/pppd'
make: *** [all] Error 2

If anyone needs more info please let me know and I will post it.

----------------------------------------------------------------------
Bruce A. Locke blocke@lizard.org
http://www.lizard.org/blocke/
http://www.lizard.org/dragonlinux

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html