Quoting Jonathan Israel T Natividad <[EMAIL PROTECTED]>: > i tried compiling a driver for my modem but it terminates > with this error... > > > gcc -02 -Wall -pipe -DMODULE -D__KERNEL__ -I/usr/src/linux-2.4/include > -Wstrict-prototypes -fomit-f > rame-pointer -fno-strength-reduce -c clmodem.c -o clmodem.o
The usual way to compile a driver of a modem is to apply the modem source code to the /usr/src/linux kernel tree as a patch, using a method like this: cd /usr/src patch -p0 < modem_code_patch.diff cd /usr/src/linux make mrproper make menuconfig # here choose the new modem code as a module make dep ; make clean ; make bzImage make modules make modules_install cp arch/i386/boot/bzImage /boot/vmlinuz cp System.map /boot vi /etc/lilo.conf #enter data about the new kernel lilo -v shutdown -r -t0 now In effect you are actually building aa new kernel with the modem code as a module. There must be an easier way of doing this, but the way given here always works for me. P~Manalastas _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
