On Tuesday 23 September 2003 21:14, Trog wrote: > I am trying to get my Speedtouch 330 connected and I've > been following the instructions from the speedtouch project. > I'm running RH 7.1 with kernel 2.4.21, which includes the > necessary support, so I don't need to install the entire > speedbundle, I only need to install PPPoA. So, my question is, > from where can I optain an atm aware pppd which I can compile? > Should I use the version supplied with speedbundle, or should I > use another? I've tried to compile the speedbundle version > without success.
Hi Trog, the speedbundle pppd needs the linux-atm package supplied with speedbundle. So you will have to compile them both. What is the "necessary support" supplied by RH 7.1? I find it hard to believe RH 7.1 includes hotplug scripts and ppp scripts for the speedtouch, or the firmware loader or the firmware, in short most of the other stuff provided by speedbundle. Maybe it has the kernel module (I don't know - I don't have RH). I advise you to use the whole of the speedbundle. By the way, the linux-atm package has some problems compiling with some versions of RH. Try the attached Makefile if you run into problems. All the best, Duncan. > Here's what I did: > extracted the speedbundle > cd speedbundle-1.0/ppp > ./configure > make > > and the result is: > # make > cd chat; make all > make[1]: Entering directory `/spare2/speedbundle-1.0/ppp/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 `/spare2/speedbundle-1.0/ppp/chat' > cd pppd/plugins; make all > make[1]: Entering directory `/spare2/speedbundle-1.0/ppp/pppd/plugins' > gcc -o minconn.so -shared -g -O2 -I.. -I../../include -fPIC minconn.c > gcc -o passprompt.so -shared -g -O2 -I.. -I../../include -fPIC > passprompt.c > gcc -o passwordfd.so -shared -g -O2 -I.. -I../../include -fPIC > passwordfd.c > gcc -o pppoatm.so -shared -g -O2 -I.. -I../../include -fPIC pppoatm.c > -latm > pppoatm.c:19:17: atm.h: No such file or directory > pppoatm.c:21:26: linux/atmppp.h: No such file or directory > make[1]: *** [pppoatm.so] Error 1 > make[1]: Leaving directory `/spare2/speedbundle-1.0/ppp/pppd/plugins' > make: *** [all] Error 2 > > > so I copied atmppp.h from my kernel source into ppp/include/linux and > repeated the compilation as above, and the results are: > # make > cd chat; make all > make[1]: Entering directory `/spare2/speedbundle-1.0/ppp/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 `/spare2/speedbundle-1.0/ppp/chat' > cd pppd/plugins; make all > make[1]: Entering directory `/spare2/speedbundle-1.0/ppp/pppd/plugins' > gcc -o minconn.so -shared -g -O2 -I.. -I../../include -fPIC minconn.c > gcc -o passprompt.so -shared -g -O2 -I.. -I../../include -fPIC > passprompt.c > gcc -o passwordfd.so -shared -g -O2 -I.. -I../../include -fPIC > passwordfd.c > gcc -o pppoatm.so -shared -g -O2 -I.. -I../../include -fPIC pppoatm.c > -latm > pppoatm.c:19:17: atm.h: No such file or directory > make[1]: *** [pppoatm.so] Error 1 > make[1]: Leaving directory `/spare2/speedbundle-1.0/ppp/pppd/plugins' > make: *** [all] Error 2 > > so I copied atm.h from speedbundle-1.0/firmware_loader/src to > ppp/include and ppp/include/linux (as I'm unsure were it is going to > look), and repeated the above compilation steps. The results are: > # make > cd chat; make all > make[1]: Entering directory `/spare2/speedbundle-1.0/ppp/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 `/spare2/speedbundle-1.0/ppp/chat' > cd pppd/plugins; make all > make[1]: Entering directory `/spare2/speedbundle-1.0/ppp/pppd/plugins' > gcc -o minconn.so -shared -g -O2 -I.. -I../../include -fPIC minconn.c > gcc -o passprompt.so -shared -g -O2 -I.. -I../../include -fPIC > passprompt.c > gcc -o passwordfd.so -shared -g -O2 -I.. -I../../include -fPIC > passwordfd.c > gcc -o pppoatm.so -shared -g -O2 -I.. -I../../include -fPIC pppoatm.c > -latm > In file included from pppoatm.c:21: > ../../include/linux/atmppp.h:20: parse error before `atm_backend_t' > ../../include/linux/atmppp.h:20: warning: no semicolon at end of struct > or union../../include/linux/atmppp.h:22: parse error before `}' > pppoatm.c: In function `setdevname_pppoatm': > pppoatm.c:71: storage size of `addr' isn't known > pppoatm.c:78: `T2A_PVC' undeclared (first use in this function) > pppoatm.c:78: (Each undeclared identifier is reported only once > pppoatm.c:78: for each function it appears in.) > pppoatm.c:78: `T2A_NAME' undeclared (first use in this function) > pppoatm.c:85: sizeof applied to an incomplete type > pppoatm.c: In function `set_line_discipline_pppoatm': > pppoatm.c:124: storage size of `be' isn't known > pppoatm.c:125: `ATM_BACKEND_PPP' undeclared (first use in this function) > pppoatm.c:132: `ATM_SETBACKEND' undeclared (first use in this function) > pppoatm.c: In function `connect_pppoatm': > pppoatm.c:148: storage size of `qos' isn't known > pppoatm.c:158: `ATM_UBR' undeclared (first use in this function) > pppoatm.c:165: `ATM_AAL5' undeclared (first use in this function) > pppoatm.c:166: `SO_ATMQOS' undeclared (first use in this function) > pppoatm.c:170: sizeof applied to an incomplete type > pppoatm.c: At top level: > pppoatm.c:28: storage size of `pvcaddr' isn't known > make[1]: *** [pppoatm.so] Error 1 > make[1]: Leaving directory `/spare2/speedbundle-1.0/ppp/pppd/plugins' > make: *** [all] Error 2 > > If I copy atm.h from speedbundle-1.0/linux-atm/src/include/atm.h > into the above two places, I get even more error messages. > > I am now completely lost. Any help that anyone can > provide would be much appreciated. > > Thanks heaps! > Trog
all: build configure: configure-stamp configure-stamp: ./configure build: configure-stamp build-stamp build-stamp: cd kernel_module && $(MAKE) cd linux-atm/src/lib && $(MAKE) cd ppp/pppd && $(MAKE) cd ppp/pppd/plugins && $(MAKE) C_INCLUDE_PATH=../../../linux-atm/src/include LIBRARY_PATH=../../../linux-atm/src/lib/.libs cd firmware && $(MAKE) cd firmware_loader && $(MAKE) cd hotplug_scripts && $(MAKE) cd ppp_scripts && $(MAKE) touch build-stamp clean: rm -f build-stamp configure-stamp cd firmware && $(MAKE) clean cd firmware_loader && $(MAKE) clean cd hotplug_scripts && $(MAKE) clean cd kernel_module && $(MAKE) clean cd linux-atm/src/lib && $(MAKE) clean cd ppp/pppd/plugins && $(MAKE) clean cd ppp/pppd && $(MAKE) clean cd ppp_scripts && $(MAKE) clean install: build cd kernel_module && $(MAKE) install cd firmware && $(MAKE) install cd firmware_loader && $(MAKE) modem_run cd hotplug_scripts && $(MAKE) install cd linux-atm/src/lib && $(MAKE) install cd ppp/pppd && $(MAKE) install cd ppp/pppd/plugins && $(MAKE) install cd ppp_scripts && $(MAKE) install
