Recently I built the linux-atm software, which is an atm utility which allows me to use my pci ADSL card on linux.
The latest release is version 2.4.1 which I pulled down off of sourceforge, and I then tried to compile it. This is what I fell fowl of..
1. The source has four compilation errors which are at lines with default: in the case statements these need ; after them, you can either edit the four bits of source code yourself or get a patched version of the code from here.
2. Then I kept getting the error ‘storage size of req is not know’ and ‘invalid application of sizeof to incomplete type atmif_soic’ which I realised that I had the paths to my kernel source incorrect. Now I put in a symbolic link to the source so /usr/src/linux pointed to /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include [ which is where the source really was ]. So to correct this error I typed this before running the configure of linux-atm.
CFLAGS=-I/usr/src/linux ./configure
and that got me over that problem.
3. Then I got the error ‘config.h:6:2 error including kernel header in userspace use the glibc headers instead’ in atmdev.h to get around this I changed the line config.h to autoconf.h
Then it all worked and everything was installed into /usr/local/bin and /usr/local/sbin.
Hope that has helped someone. The linux-atm package has been around for sometime but I didnt think the documentation or notes about how to change the path to pick up your distributions source code was that clear.