Problems Installing Ralink RT2561/RT61 Driver [SOLVED]

Kernels & Hardware, configuring network, installing services

Problems Installing Ralink RT2561/RT61 Driver [SOLVED]

Postby jordi » 2007-02-16 15:30

I have been recently trying to compile the drivers for my WLAN WiFi PCI card, model C54Ri (Conceptronic). I use the official package rt2500-source (both testing and unstable versions) under Debian sarge and in a i686 (P4) machine.

I use module-assistant to prepare the necessary headers for the kernel and the same utility to build the driver. The compilation process stops unexpectedly with both versions of the driver, warning about implicit function declarations. Is it a problem with the C compiler? Do you know the possible reason? I append the build log.

Code: Select all
touch config.mk \
&& /usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/rt2500'
make[1]: Leaving directory `/usr/src/modules/rt2500'
dh_clean
/usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/rt2500'
touch config.mk \
&& /usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/rt2500'
make[2]: Leaving directory `/usr/src/modules/rt2500'
dh_clean
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.4.27-2-386/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.4.27-2-386/g ;s/#KVERS#/2.4.27-2-386/g ; s/_KVERS_/2.4.27-2-386/g ; s/##KDREV##/2.4.27-10sarge1/g ; s/#KDREV#/2.4.27-10sarge1/g ; s/_KDREV_/2.4.27-10sarge1/g' < $templ > ${templ%.modules.in}; \
  done
# Install module
dh_installdirs lib/modules/2.4.27-2-386/kernel/drivers/net/wireless
# Build modules
/usr/bin/make KERNDIR=/usr/src/linux PATCHLEVEL=4 CC=gcc-3.3
make[2]: Entering directory `/usr/src/modules/rt2500'
make[3]: Entering directory `/usr/src/kernel-headers-2.4.27-2-386'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include.c:22:23: sys/types.h: El fitxer o directori no existeix
scripts/split-include.c:23:22: sys/stat.h: El fitxer o directori no existeix
scripts/split-include.c:25:19: ctype.h: El fitxer o directori no existeix
scripts/split-include.c:26:19: errno.h: El fitxer o directori no existeix
scripts/split-include.c:27:19: fcntl.h: El fitxer o directori no existeix
scripts/split-include.c:28:19: stdio.h: El fitxer o directori no existeix
scripts/split-include.c:29:20: stdlib.h: El fitxer o directori no existeix
scripts/split-include.c:30:20: string.h: El fitxer o directori no existeix
scripts/split-include.c:31:20: unistd.h: El fitxer o directori no existeix
scripts/split-include.c: En la funció "main":
scripts/split-include.c:50: error: `FILE' undeclared (first use in this function)
scripts/split-include.c:50: error: (Each undeclared identifier is reported only once
scripts/split-include.c:50: error: for each function it appears in.)
scripts/split-include.c:50: error: `fp_config' undeclared (first use in this function)
scripts/split-include.c:51: error: `fp_target' undeclared (first use in this function)
scripts/split-include.c:52: error: `fp_find' undeclared (first use in this function)
scripts/split-include.c:61: error: storage size of `stat_buf' isn't known
scripts/split-include.c:66: avís: implicit declaration of function `fprintf'
scripts/split-include.c:66: error: `stderr' undeclared (first use in this function)
scripts/split-include.c:67: avís: implicit declaration of function `exit'
scripts/split-include.c:75: avís: implicit declaration of function `stat'
scripts/split-include.c:76: error: `errno' undeclared (first use in this function)
scripts/split-include.c:76: avís: implicit declaration of function `perror'
scripts/split-include.c:80: avís: implicit declaration of function `malloc'
scripts/split-include.c:80: avís: assignació crea un punter des d'un enter sense una conversió
scripts/split-include.c:81: error: `NULL' undeclared (first use in this function)
scripts/split-include.c:81: avís: assignació crea un punter des d'un enter sense una conversió
scripts/split-include.c:82: avís: assignació crea un punter des d'un enter sense una conversió
scripts/split-include.c:86: avís: implicit declaration of function `fopen'
scripts/split-include.c:92: avís: implicit declaration of function `mkdir'
scripts/split-include.c:97: avís: implicit declaration of function `chdir'
scripts/split-include.c:105: avís: implicit declaration of function `fgets'
scripts/split-include.c:113: avís: implicit declaration of function `strstr'
scripts/split-include.c:118: avís: implicit declaration of function `isspace'
scripts/split-include.c:121: avís: implicit declaration of function `isupper'
scripts/split-include.c:121: avís: implicit declaration of function `tolower'
scripts/split-include.c:134: avís: implicit declaration of function `fclose'
scripts/split-include.c:136: avís: implicit declaration of function `strcmp'
scripts/split-include.c:159: avís: implicit declaration of function `fputs'
scripts/split-include.c:160: avís: implicit declaration of function `ferror'
scripts/split-include.c:191: avís: implicit declaration of function `popen'
scripts/split-include.c:205: avís: implicit declaration of function `strlen'
scripts/split-include.c:222: avís: implicit declaration of function `pclose'
scripts/split-include.c:61: avís: unused variable `stat_buf'
make[3]: *** [scripts/split-include] Error 1
make[3]: Leaving directory `/usr/src/kernel-headers-2.4.27-2-386'
rt2500.o failed to build!
make[2]: *** [module] Error 1
make[2]: Leaving directory `/usr/src/modules/rt2500'
make[1]: *** [binary_modules] Error 2
make[1]: Leaving directory `/usr/src/modules/rt2500'
make: *** [kdist_build] Error 2


Thanks for the help.
Last edited by jordi on 2007-03-24 22:41, edited 5 times in total.
Never trust a computer you can't throw out a window. (S. Wozniak)
Registered (GNU/)Linux User 464200.
User avatar
jordi
 
Posts: 39
Joined: 2006-12-25 20:03
Location: Catalan Countries

Postby chealer » 2007-02-16 17:40

First, you should upgrade to 2.4.27-3. Second, please publish the output in English (using $ LANG=C foo;).
Is libc6-dev installed?
chealer
 
Posts: 671
Joined: 2005-09-24 16:11
Location: Kebekia, Kanada

Postby jordi » 2007-02-18 20:22

Ok, libc6-dev wasn't installed.

After upgrading to 2.4.27-3-686 and installing the headers the building of the unstable version of rt2500-source seems successful but the interface doesn't appear through ifconfig -a.

The building of the testing version can not be finished due to a problem with pointers stated in the build log that escapes from my knowledge.

What can I do?
Never trust a computer you can't throw out a window. (S. Wozniak)
Registered (GNU/)Linux User 464200.
User avatar
jordi
 
Posts: 39
Joined: 2006-12-25 20:03
Location: Catalan Countries

Postby chealer » 2007-02-18 23:27

Was the rt2500 LKM loaded when you performed # ifconfig -a; ?
chealer
 
Posts: 671
Joined: 2005-09-24 16:11
Location: Kebekia, Kanada

Postby Mrbigshot08 » 2007-02-19 05:32

Have you done

Code: Select all
depmod -a


and

Code: Select all
modprobe rt2500


(I'm not sure of the order so I usually do depmod then modprobe and then another depmod just to be sure :wink:)


If that does not work what does iwconfig show? :?
User avatar
Mrbigshot08
 
Posts: 243
Joined: 2006-09-07 01:30
Location: PA, USA

Postby jordi » 2007-02-24 13:57

As you see within the code I provide, it is no possible to put the module in probe mode. How do I correct the insmod errors?. Iwconfig recognize no wireless extensions and lspci actually sees the device in question.

Is a incompatibility with the device? Could it be fixed using another Debian version?

Sequence:

apt-get install module-assistant
apt-get install libc6-dev
apt-get install kernel-image-2.4.27-3-686 (then reboot)

module-assistant prepare
dpkg --install rt2500-source_1.1.0+cvs20061231-2_all.deb (unstable)
module-assistant auto-install rt2500-source
depmod -a
modprobe rt2500
Code: Select all
/lib/modules/2.4.27-3-686/kernel/drivers/net/wireless/rt2500.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.27-3-686/kernel/drivers/net/wireless/rt2500.o: insmod /lib/modules/2.4.27-3-686/kernel/drivers/net/wireless/rt2500.o failed
/lib/modules/2.4.27-3-686/kernel/drivers/net/wireless/rt2500.o: insmod rt2500 failed

iwconfig
Code: Select all
lo        no wireless extensions.

eth0      no wireless extensions.

lspci
Code: Select all
...
0000:02:03.0 Network controller: RaLink: Unknown device 0302
...
Last edited by jordi on 2007-02-25 11:44, edited 1 time in total.
Never trust a computer you can't throw out a window. (S. Wozniak)
Registered (GNU/)Linux User 464200.
User avatar
jordi
 
Posts: 39
Joined: 2006-12-25 20:03
Location: Catalan Countries

Postby chealer » 2007-02-25 03:34

I would make sure the the card is recognized first, presumably using update-pciids.
chealer
 
Posts: 671
Joined: 2005-09-24 16:11
Location: Kebekia, Kanada

Postby jordi » 2007-03-04 10:32

After the update of the pci.ids file through manually downloading it from http://pciids.sourceforge.net (I have to switch to windows to connect to the Internet...) the response of the system is hopefully:

lspci
Code: Select all
...
0000:02:03.0 Network controller: RaLink RT2561/RT61 rev B 802.11g
...


I have considered the possibility of installing the official Ralink drivers from http://www.ralinktech.com/ralink/Home/S ... Linux.html I do the following:

Code: Select all
cd /home/jordi/compilat/RT61-Linux-STA-1.1.0.0/Module
make && make install


I recieve a huge amount of errors from the compiler, cagum l'ós pedrer. How do I have to compile this driver properly??
Never trust a computer you can't throw out a window. (S. Wozniak)
Registered (GNU/)Linux User 464200.
User avatar
jordi
 
Posts: 39
Joined: 2006-12-25 20:03
Location: Catalan Countries

Postby chealer » 2007-03-04 18:28

jordi wrote:[...]
Is a incompatibility with the device?

It's not really an "incompatibility", but the driver doesn't support that card. You need to use rt61 instead, which is not in Debian at all, or rt2x00.
jordi wrote:Could it be fixed using another Debian version?
[...]

Not really.
chealer
 
Posts: 671
Joined: 2005-09-24 16:11
Location: Kebekia, Kanada

Postby jordi » 2007-03-05 18:23

The doubts I had before are clear now. I know the chipset and the question is how to compile properly the driver RT61-Linux-STA-1.1.0.0 from RalinkTech, result exposed in the last post I made.

I don't know the exact commands I must use.

Thank you.
Never trust a computer you can't throw out a window. (S. Wozniak)
Registered (GNU/)Linux User 464200.
User avatar
jordi
 
Posts: 39
Joined: 2006-12-25 20:03
Location: Catalan Countries

Postby goweropolis » 2007-03-05 19:08

I run the RT61 driver from RaLink. I recently recompiled it, and I received those errors as well, but the modules still seemed to be built properly. When I finished installing them they looked fine.

Inside the tar.gz file from RaLink is a readme file with installation instructions. Did you follow those? There's also this page http://ubuntuforums.org/showthread.php?t=296822
~ G O W E R O P O L I S ~
goweropolis
 
Posts: 136
Joined: 2004-09-15 21:35
Location: Vancouver, Canada

Postby Mrbigshot08 » 2007-03-06 04:09

If the "official" linux driver for your card are not existant or do not work properly it may be easier to try ndiswrapper.

ndiswrapper allows you to use windows wireless drivers for your card on linux.

I mean, I hate to suggest something completely new, but it may be worth a shot. :?
User avatar
Mrbigshot08
 
Posts: 243
Joined: 2006-09-07 01:30
Location: PA, USA

Postby jordi » 2007-03-10 20:40

I have followed the instructions of the thread in Ubuntu Forums, thanks goweropolis. I use the kernel 2.4.27-3-686 and the headers are installed:

Code: Select all
tar xvfz RT61_Linux_STA_Drv1.1.0.0.tar.gz
cd RT61_Linux_STA_Drv1.1.0.0/Module/
cp -f Makefile.4 Makefile
make all


The compiler gives a huge amount of errors, almost with every line of source code and therefore generates no rt61.ko file. Do you know the reason?
Never trust a computer you can't throw out a window. (S. Wozniak)
Registered (GNU/)Linux User 464200.
User avatar
jordi
 
Posts: 39
Joined: 2006-12-25 20:03
Location: Catalan Countries

Postby goweropolis » 2007-03-10 20:55

I'm not a master programmer. When I get those sorts of problems, I usually check out some of the error messages to see if there are any clues. Sometimes, there will be error messages that will point to missing programs. I check out http://packages.debian.org/ to see if I can find the appropriate package and install if need be and then try compiling again.

Perhaps you can post the error output when you compile?
~ G O W E R O P O L I S ~
goweropolis
 
Posts: 136
Joined: 2004-09-15 21:35
Location: Vancouver, Canada

Postby jordi » 2007-03-18 13:02

Ok, here it goes. Packages make, gcc, build-essential, libc6 and kernel-headers-2.4.27-3-686 installed.

Code: Select all
montsant:/home/jordi/ralink-official/RT61_Linux_STA_Drv1.1.0.0/Module# make all
cc -D__KERNEL__ -I/usr/src/linux-2.4.18-3/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.18-3/include/linux/modversions.h -DAGGREGATION_SUPPORT -DWMM_SUPPORT -Wall -Wstrict-prototypes -Wno-trigraphs   -c -o rtmp_main.o rtmp_main.c
<command line>:138477713:216: /usr/src/linux-2.4.18-3/include/linux/modversions.h: No such file or directory
In file included from /usr/include/asm/system.h:5,
                 from /usr/include/asm/processor.h:18,
                 from /usr/include/asm/thread_info.h:13,
                 from /usr/include/linux/thread_info.h:21,
                 from /usr/include/linux/spinlock.h:19,
                 from /usr/include/linux/capability.h:45,
                 from /usr/include/linux/sched.h:7,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/kernel.h:72: error: syntax error before "size_t"
/usr/include/linux/kernel.h:74: error: syntax error before "size_t"
In file included from /usr/include/linux/timex.h:186,
                 from /usr/include/linux/sched.h:11,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/time.h:14: error: syntax error before "time_t"
/usr/include/linux/time.h:16: error: syntax error before '}' token
/usr/include/linux/time.h:20: error: syntax error before "time_t"
In file included from /usr/include/linux/timex.h:186,
                 from /usr/include/linux/sched.h:11,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/time.h: In function `timespec_to_jiffies':
/usr/include/linux/time.h:198: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:199: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h: In function `jiffies_to_timespec':
/usr/include/linux/time.h:219: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:219: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h: In function `timeval_to_jiffies':
/usr/include/linux/time.h:237: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:238: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h: In function `jiffies_to_timeval':
/usr/include/linux/time.h:257: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:257: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:258: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h: In function `timespec_equal':
/usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h:263: error: dereferencing pointer to incomplete type
/usr/include/linux/time.h: In function `get_seconds':
/usr/include/linux/time.h:305: error: invalid use of undefined type `struct timespec'
/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:329: error: syntax error before "time_t"
/usr/include/linux/time.h: In function `set_normalized_timespec':
/usr/include/linux/time.h:331: error: `nsec' undeclared (first use in this function)
/usr/include/linux/time.h:331: error: (Each undeclared identifier is reported only once
/usr/include/linux/time.h:331: error: for each function it appears in.)
/usr/include/linux/time.h:333: error: `sec' undeclared (first use in this function)
/usr/include/linux/time.h:339: error: `ts' undeclared (first use in this function)
/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:359: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:360: error: field `it_value' has incomplete type
/usr/include/linux/time.h:364: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:365: error: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:11,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/timex.h:203: error: field `time' has incomplete type
In file included from /usr/include/linux/string.h:23,
                 from /usr/include/linux/bitmap.h:11,
                 from /usr/include/linux/cpumask.h:8,
                 from /usr/include/linux/sched.h:15,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/asm/string.h:41: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `strncpy':
/usr/include/asm/string.h:55: error: `src' undeclared (first use in this function)
/usr/include/asm/string.h:55: error: `dest' undeclared (first use in this function)
/usr/include/asm/string.h:55: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:77: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `strncat':
/usr/include/asm/string.h:94: error: `src' undeclared (first use in this function)
/usr/include/asm/string.h:94: error: `dest' undeclared (first use in this function)
/usr/include/asm/string.h:94: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:121: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `strncmp':
/usr/include/asm/string.h:139: error: `cs' undeclared (first use in this function)
/usr/include/asm/string.h:139: error: `ct' undeclared (first use in this function)
/usr/include/asm/string.h:139: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:180: error: syntax error before "strlen"
/usr/include/asm/string.h:193: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `__memcpy':
/usr/include/asm/string.h:206: error: `n' undeclared (first use in this function)
/usr/include/asm/string.h:206: error: `to' undeclared (first use in this function)
/usr/include/asm/string.h:206: error: `from' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:215: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `__constant_memcpy':
/usr/include/asm/string.h:217: error: `n' undeclared (first use in this function)
/usr/include/asm/string.h:218: error: `to' undeclared (first use in this function)
/usr/include/asm/string.h:218: error: `from' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:299: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `memmove':
/usr/include/asm/string.h:302: error: `dest' undeclared (first use in this function)
/usr/include/asm/string.h:302: error: `src' undeclared (first use in this function)
/usr/include/asm/string.h:307: error: `n' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:326: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `memchr':
/usr/include/asm/string.h:330: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h:338: error: `c' undeclared (first use in this function)
/usr/include/asm/string.h:338: error: `cs' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:342: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `__memset_generic':
/usr/include/asm/string.h:349: error: `c' undeclared (first use in this function)
/usr/include/asm/string.h:349: error: `s' undeclared (first use in this function)
/usr/include/asm/string.h:349: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:362: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `__constant_c_memset':
/usr/include/asm/string.h:375: error: `c' undeclared (first use in this function)
/usr/include/asm/string.h:375: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h:375: error: `s' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:382: error: syntax error before "strnlen"
/usr/include/asm/string.h:382: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `strnlen':
/usr/include/asm/string.h:397: error: `s' undeclared (first use in this function)
/usr/include/asm/string.h:397: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:410: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `__constant_c_and_count_memset':
/usr/include/asm/string.h:412: error: `count' undeclared (first use in this function)
/usr/include/asm/string.h:414: error: `s' undeclared (first use in this function)
/usr/include/asm/string.h:416: error: `pattern' undeclared (first use in this function)
/usr/include/asm/string.h: At top level:
/usr/include/asm/string.h:469: error: syntax error before "size_t"
/usr/include/asm/string.h: In function `memscan':
/usr/include/asm/string.h:471: error: `size' undeclared (first use in this function)
/usr/include/asm/string.h:472: error: `addr' undeclared (first use in this function)
/usr/include/asm/string.h:478: error: `c' undeclared (first use in this function)
In file included from /usr/include/linux/bitmap.h:11,
                 from /usr/include/linux/cpumask.h:8,
                 from /usr/include/linux/sched.h:15,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/string.h: At top level:
/usr/include/linux/string.h:32: error: syntax error before "strlcpy"
/usr/include/linux/string.h:32: error: syntax error before "size_t"
/usr/include/linux/string.h:41: error: syntax error before "strlcat"
In file included from /usr/include/asm/smp.h:18,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/include/asm/smp.h:18,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/include/asm/smp.h:20,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory
In file included from /usr/include/linux/sem.h:4,
                 from /usr/include/linux/sched.h:24,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/ipc.h:61: error: syntax error before "key_t"
/usr/include/linux/ipc.h:63: error: syntax error before "gid"
/usr/include/linux/ipc.h:64: error: syntax error before "cuid"
/usr/include/linux/ipc.h:65: error: syntax error before "cgid"
/usr/include/linux/ipc.h:66: error: syntax error before "mode"
/usr/include/linux/ipc.h:69: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:24,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/sem.h:90: error: field `sem_perm' has incomplete type
/usr/include/linux/sem.h:91: error: syntax error before "time_t"
/usr/include/linux/sem.h:98: error: syntax error before '}' token
/usr/include/linux/sem.h:137: error: syntax error before "key"
In file included from /usr/include/linux/signal.h:6,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/asm/signal.h:176: error: syntax error before "size_t"
In file included from /usr/include/asm/siginfo.h:4,
                 from /usr/include/linux/signal.h:7,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/asm-generic/siginfo.h:45: error: syntax error before "pid_t"
/usr/include/asm-generic/siginfo.h:51: error: syntax error before "timer_t"
/usr/include/asm-generic/siginfo.h:53: error: `uid_t' undeclared here (not in a function)
/usr/include/asm-generic/siginfo.h:53: error: size of array `_pad' is too large
/usr/include/asm-generic/siginfo.h:56: error: syntax error before '}' token
/usr/include/asm-generic/siginfo.h:60: error: syntax error before "pid_t"
/usr/include/asm-generic/siginfo.h:63: error: syntax error before '}' token
/usr/include/asm-generic/siginfo.h:67: error: syntax error before "pid_t"
/usr/include/asm-generic/siginfo.h:70: error: syntax error before "_utime"
/usr/include/asm-generic/siginfo.h:71: error: syntax error before "_stime"
/usr/include/asm-generic/siginfo.h:87: error: syntax error before '}' token
/usr/include/asm-generic/siginfo.h:88: error: syntax error before '}' token
/usr/include/asm-generic/siginfo.h: In function `copy_siginfo':
/usr/include/asm-generic/siginfo.h:274: error: dereferencing pointer to incomplete type
/usr/include/asm-generic/siginfo.h:275: error: dereferencing pointer to incomplete type
/usr/include/asm-generic/siginfo.h:275: error: dereferencing pointer to incomplete type
/usr/include/asm-generic/siginfo.h:275: error: dereferencing pointer to incomplete type
/usr/include/asm-generic/siginfo.h:278: error: dereferencing pointer to incomplete type
/usr/include/asm-generic/siginfo.h:278: error: dereferencing pointer to incomplete type
/usr/include/asm-generic/siginfo.h:278: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/signal.h: At top level:
/usr/include/linux/signal.h:18: error: syntax error before "siginfo_t"
/usr/include/linux/signal.h:215: error: syntax error before '*' token
In file included from /usr/include/linux/gfp.h:4,
                 from /usr/include/linux/slab.h:15,
                 from /usr/include/linux/percpu.h:4,
                 from /usr/include/linux/sched.h:31,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/mmzone.h:286: error: syntax error before "size_t"
In file included from /usr/include/linux/percpu.h:4,
                 from /usr/include/linux/sched.h:31,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/slab.h:58: error: syntax error before "int"
/usr/include/linux/slab.h:59: error: syntax error before "size_t"
/usr/include/linux/slab.h:60: error: `kmem_cache_create' declared as function returning a function
/usr/include/linux/slab.h:61: error: syntax error before "void"
/usr/include/linux/slab.h:70: error: syntax error before "size_t"
/usr/include/linux/slab.h:73: error: syntax error before '}' token
/usr/include/linux/slab.h:75: error: syntax error before "int"
/usr/include/linux/slab.h:77: error: syntax error before "size"
/usr/include/linux/slab.h: In function `kmalloc':
/usr/include/linux/slab.h:79: error: `size' undeclared (first use in this function)
In file included from /usr/include/linux/percpu.h:4,
                 from /usr/include/linux/sched.h:31,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/slab.h:93: error: `flags' undeclared (first use in this function)
/usr/include/linux/slab.h:94: error: invalid use of undefined type `struct cache_sizes'
/usr/include/linux/slab.h:95: error: invalid use of undefined type `struct cache_sizes'
In file included from /usr/include/linux/sched.h:31,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/percpu.h: At top level:
/usr/include/linux/percpu.h:36: error: syntax error before "size"
In file included from /usr/include/linux/sched.h:101,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/resource.h:22: error: field `ru_utime' has incomplete type
/usr/include/linux/resource.h:23: error: field `ru_stime' has incomplete type
In file included from /usr/include/linux/sched.h:183,
                 from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/aio.h:64: error: syntax error before "loff_t"
/usr/include/linux/aio.h:67: error: syntax error before '}' token
/usr/include/linux/aio.h:143: error: syntax error before "wait_on_sync_kiocb"
/usr/include/linux/aio.h: In function `list_kiocb':
/usr/include/linux/aio.h:166: error: dereferencing pointer to incomplete type
/usr/include/linux/aio.h:166: error: `size_t' undeclared (first use in this function)
/usr/include/linux/aio.h:166: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:299: error: syntax error before "uid_t"
/usr/include/linux/sched.h:315: error: syntax error before "clockid_t"
/usr/include/linux/sched.h:327: error: syntax error before '}' token
/usr/include/linux/sched.h:368: error: syntax error before "pid_t"
/usr/include/linux/sched.h:370: error: syntax error before "tty_old_pgrp"
/usr/include/linux/sched.h:371: error: syntax error before "session"
/usr/include/linux/sched.h:372: error: syntax error before "tgid"
/usr/include/linux/sched.h:405: error: syntax error before "uid"
/usr/include/linux/sched.h:406: error: syntax error before "gid"
/usr/include/linux/sched.h:408: error: syntax error before "groups"
/usr/include/linux/sched.h:410: error: syntax error before ':' token
/usr/include/linux/sched.h:437: error: syntax error before "sas_ss_size"
/usr/include/linux/sched.h:466: error: syntax error before '*' token
/usr/include/linux/sched.h:467: error: syntax error before '}' token
/usr/include/linux/sched.h:469: error: syntax error before "process_group"
/usr/include/linux/sched.h: In function `process_group':
/usr/include/linux/sched.h:471: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:560: error: syntax error before "session"
/usr/include/linux/sched.h:561: error: syntax error before "session"
In file included from /usr/include/linux/module.h:10,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/sched.h:580: error: syntax error before "pid"
/usr/include/linux/sched.h:588: error: syntax error before "siginfo_t"
/usr/include/linux/sched.h:590: error: syntax error before "siginfo_t"
/usr/include/linux/sched.h: In function `dequeue_signal_lock':
/usr/include/linux/sched.h:595: error: `tsk' undeclared (first use in this function)
/usr/include/linux/sched.h:596: error: `mask' undeclared (first use in this function)
/usr/include/linux/sched.h:596: error: `info' undeclared (first use in this function)
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:609: error: syntax error before "pid_t"
/usr/include/linux/sched.h:610: error: syntax error before "pid_t"
/usr/include/linux/sched.h:611: error: syntax error before "pid_t"
/usr/include/linux/sched.h:612: error: syntax error before "pid_t"
/usr/include/linux/sched.h:619: error: syntax error before "int"
/usr/include/linux/sched.h:620: error: syntax error before "int"
/usr/include/linux/sched.h:621: error: syntax error before "int"
/usr/include/linux/sched.h:627: error: syntax error before '*' token
/usr/include/linux/sched.h: In function `on_sig_stack':
/usr/include/linux/sched.h:638: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h:638: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `sas_ss_flags':
/usr/include/linux/sched.h:643: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `capable':
/usr/include/linux/sched.h:654: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h:655: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `thread_group_empty':
/usr/include/linux/sched.h:749: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `task_lock':
/usr/include/linux/sched.h:766: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h:766: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `task_unlock':
/usr/include/linux/sched.h:771: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `get_task_mm':
/usr/include/linux/sched.h:785: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `set_tsk_thread_flag':
/usr/include/linux/sched.h:799: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `clear_tsk_thread_flag':
/usr/include/linux/sched.h:804: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `test_and_set_tsk_thread_flag':
/usr/include/linux/sched.h:809: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `test_and_clear_tsk_thread_flag':
/usr/include/linux/sched.h:814: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `test_tsk_thread_flag':
/usr/include/linux/sched.h:819: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `task_cpu':
/usr/include/linux/sched.h:883: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function `set_task_cpu':
/usr/include/linux/sched.h:888: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/module.h:13,
                 from rt_config.h:68,
                 from rtmp_main.c:39:
/usr/include/linux/stat.h: At top level:
/usr/include/linux/stat.h:61: error: syntax error before "dev_t"
/usr/include/linux/stat.h:62: error: conflicting types for `mode'
/usr/include/linux/ipc.h:66: error: previous declaration of `mode'
/usr/include/linux/stat.h:63: error: syntax error before "nlink"
/usr/include/linux/stat.h:64: error: syntax error before "uid"
/usr/include/linux/stat.h:65: error: syntax error before "gid"
/usr/include/linux/stat.h:66: error: syntax error before "rdev"
/usr/include/linux/stat.h:67: error: syntax error before "size"
/usr/include/linux/stat.h:67: error: `size' used prior to declaration
/usr/include/linux/stat.h:73: error: syntax error before '}' token
In file included from /usr/include/linux/irq.h:20,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from rt_config.h:77,
                 from rtmp_main.c:39:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from rt_config.h:77,
                 from rtmp_main.c:39:
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from rt_config.h:77,
                 from rtmp_main.c:39:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/asm/hardirq.h:80,
                 from /usr/include/linux/interrupt.h:11,
                 from rt_config.h:77,
                 from rtmp_main.c:39:
/usr/include/linux/smp_lock.h: In function `release_kernel_lock':
/usr/include/linux/smp_lock.h:22: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `reacquire_kernel_lock':
/usr/include/linux/smp_lock.h:31: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `lock_kernel':
/usr/include/linux/smp_lock.h:44: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h:47: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `unlock_kernel':
/usr/include/linux/smp_lock.h:52: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h:54: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/kobject.h:20,
                 from /usr/include/linux/device.h:16,
                 from /usr/include/linux/pci.h:347,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/sysfs.h: At top level:
/usr/include/linux/sysfs.h:18: error: syntax error before "mode_t"
/usr/include/linux/sysfs.h:22: error: field `attr' has incomplete type
/usr/include/linux/sysfs.h:23: error: syntax error before "size_t"
/usr/include/linux/sysfs.h:24: error: syntax error before '*' token
/usr/include/linux/sysfs.h:24: error: syntax error before "loff_t"
/usr/include/linux/sysfs.h:24: error: `ssize_t' declared as function returning a function
/usr/include/linux/sysfs.h:25: error: syntax error before '*' token
/usr/include/linux/sysfs.h:25: error: syntax error before "loff_t"
/usr/include/linux/sysfs.h:25: error: `ssize_t' declared as function returning a function
/usr/include/linux/sysfs.h:32: error: syntax error before "ssize_t"
/usr/include/linux/sysfs.h:33: error: syntax error before '*' token
/usr/include/linux/sysfs.h:33: error: syntax error before "size_t"
/usr/include/linux/sysfs.h:33: error: `ssize_t' declared as function returning a function
In file included from /usr/include/linux/device.h:16,
                 from /usr/include/linux/pci.h:347,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/kobject.h: In function `to_kset':
/usr/include/linux/kobject.h:108: error: `size_t' undeclared (first use in this function)
/usr/include/linux/kobject.h: In function `subsys_get':
/usr/include/linux/kobject.h:206: error: `size_t' undeclared (first use in this function)
/usr/include/linux/kobject.h: At top level:
/usr/include/linux/kobject.h:215: error: field `attr' has incomplete type
/usr/include/linux/kobject.h:216: error: syntax error before "ssize_t"
/usr/include/linux/kobject.h:217: error: syntax error before '*' token
/usr/include/linux/kobject.h:217: error: syntax error before "size_t"
/usr/include/linux/kobject.h:217: error: `ssize_t' declared as function returning a function
In file included from /usr/include/linux/pci.h:347,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/device.h:87: error: field `attr' has incomplete type
/usr/include/linux/device.h:88: error: syntax error before "ssize_t"
/usr/include/linux/device.h:89: error: syntax error before '*' token
/usr/include/linux/device.h:89: error: syntax error before "size_t"
/usr/include/linux/device.h:89: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h:128: error: field `attr' has incomplete type
/usr/include/linux/device.h:129: error: syntax error before "ssize_t"
/usr/include/linux/device.h:130: error: syntax error before '*' token
/usr/include/linux/device.h:130: error: syntax error before "size_t"
/usr/include/linux/device.h:130: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h:168: error: field `attr' has incomplete type
/usr/include/linux/device.h:169: error: syntax error before "ssize_t"
/usr/include/linux/device.h:170: error: syntax error before '*' token
/usr/include/linux/device.h:170: error: syntax error before "size_t"
/usr/include/linux/device.h:170: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h:220: error: field `attr' has incomplete type
/usr/include/linux/device.h:221: error: syntax error before "ssize_t"
/usr/include/linux/device.h:222: error: syntax error before '*' token
/usr/include/linux/device.h:222: error: syntax error before "size_t"
/usr/include/linux/device.h:222: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h: In function `list_to_dev':
/usr/include/linux/device.h:285: error: `size_t' undeclared (first use in this function)
/usr/include/linux/device.h: At top level:
/usr/include/linux/device.h:324: error: field `attr' has incomplete type
/usr/include/linux/device.h:325: error: syntax error before "ssize_t"
/usr/include/linux/device.h:326: error: syntax error before '*' token
/usr/include/linux/device.h:326: error: syntax error before "size_t"
/usr/include/linux/device.h:326: error: `ssize_t' declared as function returning a function
In file included from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/pci.h:690: error: syntax error before "size_t"
In file included from /usr/include/linux/fs.h:14,
                 from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/kdev_t.h:21: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `old_valid_dev':
/usr/include/linux/kdev_t.h:23: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:26: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `old_encode_dev':
/usr/include/linux/kdev_t.h:28: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:31: error: syntax error before "old_decode_dev"
/usr/include/linux/kdev_t.h:36: error: syntax error before "dev"
/usr/include/linux/kdev_t.h:41: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `new_encode_dev':
/usr/include/linux/kdev_t.h:43: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:48: error: syntax error before "new_decode_dev"
/usr/include/linux/kdev_t.h:55: error: syntax error before "dev"
/usr/include/linux/kdev_t.h:60: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `huge_encode_dev':
/usr/include/linux/kdev_t.h:62: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:65: error: syntax error before "huge_decode_dev"
/usr/include/linux/kdev_t.h:70: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `sysv_valid_dev':
/usr/include/linux/kdev_t.h:72: error: `dev' undeclared (first use in this function)
/usr/include/linux/kdev_t.h: At top level:
/usr/include/linux/kdev_t.h:75: error: syntax error before "dev"
/usr/include/linux/kdev_t.h: In function `sysv_encode_dev':
/usr/include/linux/kdev_t.h:77: error: `dev' undeclared (first use in this function)
In file included from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:226: error: syntax error before "loff_t"
/usr/include/linux/fs.h:259: error: syntax error before "uid_t"
/usr/include/linux/fs.h:261: error: syntax error before "ia_size"
/usr/include/linux/fs.h:266: error: syntax error before '}' token
In file included from /usr/include/linux/fs.h:280,
                 from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/quota.h:151: error: syntax error before "time_t"
/usr/include/linux/quota.h:223: error: syntax error before "loff_t"
/usr/include/linux/quota.h:227: error: syntax error before '}' token
In file included from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/fs.h:315: error: syntax error before "loff_t"
/usr/include/linux/fs.h:342: error: syntax error before "dev_t"
/usr/include/linux/fs.h:356: error: syntax error before '}' token
/usr/include/linux/fs.h:377: error: syntax error before "uid_t"
/usr/include/linux/fs.h:379: error: syntax error before "i_rdev"
/usr/include/linux/fs.h:380: error: syntax error before "i_size"
/usr/include/linux/fs.h:422: error: syntax error before '}' token
/usr/include/linux/fs.h:434: error: syntax error before "i_size_read"
/usr/include/linux/fs.h: In function `i_size_read':
/usr/include/linux/fs.h:437: error: `loff_t' undeclared (first use in this function)
/usr/include/linux/fs.h:437: error: syntax error before "i_size"
/usr/include/linux/fs.h:441: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h:442: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h:443: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:458: error: syntax error before "loff_t"
/usr/include/linux/fs.h: In function `i_size_write':
/usr/include/linux/fs.h:461: error: `inode' undeclared (first use in this function)
/usr/include/linux/fs.h: In function `iminor':
/usr/include/linux/fs.h:475: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: In function `imajor':
/usr/include/linux/fs.h:480: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:486: error: syntax error before "uid_t"
/usr/include/linux/fs.h:489: error: syntax error before '}' token
/usr/include/linux/fs.h:513: error: syntax error before "mode_t"
/usr/include/linux/fs.h:529: error: syntax error before '}' token
In file included from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/fs.h:581: error: syntax error before "loff_t"
/usr/include/linux/fs.h:594: error: syntax error before '}' token
In file included from /usr/include/linux/fcntl.h:4,
                 from /usr/include/linux/fs.h:605,
                 from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/asm/fcntl.h:72: error: syntax error before "off_t"
/usr/include/asm/fcntl.h:74: error: syntax error before "l_pid"
/usr/include/asm/fcntl.h:80: error: syntax error before "loff_t"
/usr/include/asm/fcntl.h:82: error: syntax error before "l_pid"
In file included from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/fs.h:631: error: syntax error before "loff_t"
/usr/include/linux/fs.h:632: error: syntax error before "loff_t"
/usr/include/linux/fs.h:668: error: syntax error before "dev_t"
/usr/include/linux/fs.h:709: error: syntax error before '}' token
/usr/include/linux/fs.h: In function `lock_super':
/usr/include/linux/fs.h:716: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: In function `unlock_super':
/usr/include/linux/fs.h:721: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:729: error: syntax error before "dev_t"
/usr/include/linux/fs.h:758: error: syntax error before "loff_t"
/usr/include/linux/fs.h:779: error: syntax error before "size_t"
/usr/include/linux/fs.h:780: error: `count' used prior to declaration
/usr/include/linux/fs.h:783: error: syntax error before '}' token
/usr/include/linux/fs.h:785: error: syntax error before '*' token
/usr/include/linux/fs.h:794: error: syntax error before "loff_t"
/usr/include/linux/fs.h:795: error: syntax error before '*' token
/usr/include/linux/fs.h:795: error: syntax error before "size_t"
/usr/include/linux/fs.h:795: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:796: error: syntax error before '*' token
/usr/include/linux/fs.h:796: error: syntax error before "size_t"
/usr/include/linux/fs.h:796: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:797: error: syntax error before '*' token
/usr/include/linux/fs.h:797: error: syntax error before "size_t"
/usr/include/linux/fs.h:797: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:798: error: syntax error before '*' token
/usr/include/linux/fs.h:798: error: syntax error before "size_t"
/usr/include/linux/fs.h:798: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:810: error: syntax error before '*' token
/usr/include/linux/fs.h:810: error: syntax error before "loff_t"
/usr/include/linux/fs.h:810: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:811: error: syntax error before '*' token
/usr/include/linux/fs.h:811: error: syntax error before "loff_t"
/usr/include/linux/fs.h:811: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:812: error: syntax error before '*' token
/usr/include/linux/fs.h:812: error: syntax error before "loff_t"
/usr/include/linux/fs.h:812: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:813: error: syntax error before '*' token
/usr/include/linux/fs.h:813: error: syntax error before "size_t"
/usr/include/linux/fs.h:813: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:815: error: syntax error before '}' token
/usr/include/linux/fs.h:825: error: syntax error before "dev_t"
/usr/include/linux/fs.h:834: error: syntax error before "size_t"
/usr/include/linux/fs.h:836: error: syntax error before '*' token
/usr/include/linux/fs.h:836: error: syntax error before "size_t"
/usr/include/linux/fs.h:836: error: `ssize_t' declared as function returning a function
/usr/include/linux/fs.h:838: error: syntax error before '}' token
/usr/include/linux/fs.h:842: error: syntax error before "vfs_read"
/usr/include/linux/fs.h:842: error: syntax error before "size_t"
/usr/include/linux/fs.h:843: error: syntax error before "vfs_write"
/usr/include/linux/fs.h:843: error: syntax error before "size_t"
/usr/include/linux/fs.h:844: error: syntax error before "vfs_readv"
/usr/include/linux/fs.h:845: error: syntax error before "loff_t"
/usr/include/linux/fs.h:846: error: syntax error before "vfs_writev"
/usr/include/linux/fs.h:847: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1059: error: syntax error before "loff_t"
/usr/include/linux/fs.h: In function `locks_verify_locked':
/usr/include/linux/fs.h:1070: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h:1070: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:1076: error: syntax error before "loff_t"
/usr/include/linux/fs.h: In function `locks_verify_area':
/usr/include/linux/fs.h:1079: error: `inode' undeclared (first use in this function)
/usr/include/linux/fs.h:1080: error: `read_write' undeclared (first use in this function)
/usr/include/linux/fs.h:1080: error: `filp' undeclared (first use in this function)
/usr/include/linux/fs.h:1080: error: `offset' undeclared (first use in this function)
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:1086: error: syntax error before "loff_t"
/usr/include/linux/fs.h: In function `locks_verify_truncate':
/usr/include/linux/fs.h:1088: error: `inode' undeclared (first use in this function)
/usr/include/linux/fs.h:1090: error: `filp' undeclared (first use in this function)
/usr/include/linux/fs.h: In function `break_lease':
/usr/include/linux/fs.h:1100: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:1109: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1131: error: syntax error before "unsigned"
/usr/include/linux/fs.h:1139: error: syntax error before "mode_t"
/usr/include/linux/fs.h:1146: error: syntax error before '*' token
/usr/include/linux/fs.h:1147: error: syntax error before "unsigned"
/usr/include/linux/fs.h:1151: error: syntax error before "unsigned"
/usr/include/linux/fs.h:1156: error: syntax error before "char"
/usr/include/linux/fs.h:1162: error: syntax error before "dev_t"
/usr/include/linux/fs.h:1192: error: syntax error before "pgoff_t"
/usr/include/linux/fs.h: In function `invalidate_remote_inode':
/usr/include/linux/fs.h:1196: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h:1196: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h:1197: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h:1198: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: In function `put_write_access':
/usr/include/linux/fs.h:1220: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: In function `allow_write_access':
/usr/include/linux/fs.h:1225: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:1237: error: syntax error before "find_inode_number"
In file included from /usr/include/linux/mm.h:14,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/fs.h:1242: error: syntax error before "default_llseek"
/usr/include/linux/fs.h:1242: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1247: error: syntax error before "iunique"
/usr/include/linux/fs.h:1247: error: syntax error before "ino_t"
/usr/include/linux/fs.h: In function `iget':
/usr/include/linux/fs.h:1263: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h:1264: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: In function `insert_inode_hash':
/usr/include/linux/fs.h:1280: error: dereferencing pointer to incomplete type
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:1295: error: syntax error before '*' token
/usr/include/linux/fs.h:1296: error: syntax error before '*' token
/usr/include/linux/fs.h:1297: error: syntax error before "generic_file_read"
/usr/include/linux/fs.h:1297: error: syntax error before "size_t"
/usr/include/linux/fs.h:1299: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1300: error: syntax error before "generic_file_write"
/usr/include/linux/fs.h:1300: error: syntax error before "size_t"
/usr/include/linux/fs.h:1301: error: syntax error before "generic_file_aio_read"
/usr/include/linux/fs.h:1301: error: syntax error before "size_t"
/usr/include/linux/fs.h:1302: error: syntax error before "__generic_file_aio_read"
/usr/include/linux/fs.h:1302: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1303: error: syntax error before "generic_file_aio_write"
/usr/include/linux/fs.h:1303: error: syntax error before "size_t"
/usr/include/linux/fs.h:1304: error: syntax error before "generic_file_aio_write_nolock"
/usr/include/linux/fs.h:1305: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1306: error: syntax error before "do_sync_read"
/usr/include/linux/fs.h:1306: error: syntax error before "size_t"
/usr/include/linux/fs.h:1307: error: syntax error before "do_sync_write"
/usr/include/linux/fs.h:1307: error: syntax error before "size_t"
/usr/include/linux/fs.h:1308: error: syntax error before "generic_file_write_nolock"
/usr/include/linux/fs.h:1309: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1310: error: syntax error before "generic_file_sendfile"
/usr/include/linux/fs.h:1310: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1312: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1315: error: syntax error before "generic_file_direct_IO"
/usr/include/linux/fs.h:1316: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1318: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1320: error: syntax error before "generic_file_readv"
/usr/include/linux/fs.h:1321: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1322: error: syntax error before "generic_file_writev"
/usr/include/linux/fs.h:1323: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1324: error: syntax error before "no_llseek"
/usr/include/linux/fs.h:1324: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1325: error: syntax error before "generic_file_llseek"
/usr/include/linux/fs.h:1325: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1326: error: syntax error before "remote_llseek"
/usr/include/linux/fs.h:1326: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1329: error: syntax error before "loff_t"
/usr/include/linux/fs.h: In function `do_generic_file_read':
/usr/include/linux/fs.h:1333: error: `filp' undeclared (first use in this function)
/usr/include/linux/fs.h:1336: error: `ppos' undeclared (first use in this function)
/usr/include/linux/fs.h:1337: error: `desc' undeclared (first use in this function)
/usr/include/linux/fs.h:1338: error: `actor' undeclared (first use in this function)
/usr/include/linux/fs.h: At top level:
/usr/include/linux/fs.h:1353: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1354: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1355: error: syntax error before "inode_get_bytes"
/usr/include/linux/fs.h:1356: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1371: error: syntax error before "dcache_dir_lseek"
/usr/include/linux/fs.h:1371: error: syntax error before "loff_t"
/usr/include/linux/fs.h:1388: error: syntax error before "generic_read_dir"
/usr/include/linux/fs.h:1388: error: syntax error before "size_t"
/usr/include/linux/fs.h:1401: error: syntax error before "parent_ino"
/usr/include/linux/fs.h: In function `parent_ino':
/usr/include/linux/fs.h:1403: error: `ino_t' undeclared (first use in this function)
/usr/include/linux/fs.h:1403: error: syntax error before "res"
/usr/include/linux/fs.h:1406: error: `res' undeclared (first use in this function)
/usr/include/linux/fs.h:1406: error: dereferencing pointer to incomplete type
In file included from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/linux/mm.h: At top level:
/usr/include/linux/mm.h:409: error: syntax error before "loff_t"
/usr/include/linux/mm.h:427: error: syntax error before "loff_t"
/usr/include/linux/mm.h:429: error: syntax error before "loff_t"
/usr/include/linux/mm.h:439: error: syntax error before "loff_t"
/usr/include/linux/mm.h:518: error: `get_unmapped_area' redeclared as different kind of symbol
/usr/include/linux/fs.h:814: error: previous declaration of `get_unmapped_area'
/usr/include/linux/mm.h:537: error: syntax error before "size_t"
/usr/include/linux/mm.h:563: error: syntax error before "loff_t"
/usr/include/linux/mm.h:584: error: syntax error before "pgoff_t"
In file included from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/asm/pci.h:80: error: syntax error before "size_t"
In file included from /usr/include/linux/dma-mapping.h:13,
                 from /usr/include/asm-generic/pci-dma-compat.h:7,
                 from /usr/include/asm/pci.h:92,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/asm/dma-mapping.h:9: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h:12: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h:16: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h: In function `dma_map_single':
/usr/include/asm/dma-mapping.h:19: error: `direction' undeclared (first use in this function)
/usr/include/asm/dma-mapping.h:21: error: `ptr' undeclared (first use in this function)
/usr/include/asm/dma-mapping.h: At top level:
/usr/include/asm/dma-mapping.h:25: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h: In function `dma_unmap_single':
/usr/include/asm/dma-mapping.h:28: error: `direction' undeclared (first use in this function)
/usr/include/asm/dma-mapping.h: At top level:
/usr/include/asm/dma-mapping.h:51: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h: In function `dma_map_page':
/usr/include/asm/dma-mapping.h:53: error: `direction' undeclared (first use in this function)
/usr/include/asm/dma-mapping.h:54: error: `page' undeclared (first use in this function)
/usr/include/asm/dma-mapping.h:54: error: `offset' undeclared (first use in this function)
/usr/include/asm/dma-mapping.h: At top level:
/usr/include/asm/dma-mapping.h:58: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h: In function `dma_unmap_page':
/usr/include/asm/dma-mapping.h:61: error: `direction' undeclared (first use in this function)
/usr/include/asm/dma-mapping.h: At top level:
/usr/include/asm/dma-mapping.h:73: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h:81: error: syntax error before "size_t"
/usr/include/asm/dma-mapping.h:131: error: syntax error before "size_t"
In file included from /usr/include/asm/pci.h:92,
                 from /usr/include/linux/pci.h:704,
                 from rt_config.h:78,
                 from rtmp_main.c:39:
/usr/include/asm-generic/pci-dma-compat.h:19: error: syntax error before "size_t"
/usr/include/asm-generic/pci-dma-compat.h: In function `pci_alloc_consistent':
/usr/include/asm-generic/pci-dma-compat.h:22: error: `hwdev' undeclared (first use in this function)
/usr/include/asm-generic/pci-dma-compat.h:22: error: `dma_handle' undeclared (first use in this function)
/usr/include/asm-generic/pci-dma-compat.h: At top level:
/usr/include/asm-generic/pci-dma-compat.h:26: error: syntax error before "size_t"
/usr/include/asm-generic/pci-dma-compat.h: In function `pci_free_consistent':


(follows in the next post)
Last edited by jordi on 2007-03-18 13:23, edited 1 time in total.
Never trust a computer you can't throw out a window. (S. Wozniak)
Registered (GNU/)Linux User 464200.
User avatar
jordi
 
Posts: 39
Joined: 2006-12-25 20:03
Location: Catalan Countries

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable