Discussion:
wlan-ng compile problem, no <linux/config.h> in 2.6.19 kernel source
Yiqun Wang
2006-10-28 20:55:04 UTC
Permalink
I tried to compile wlan-ng, but recently 2.6.19 kernel source no longer
has file "linux/config.h". I borrowed one from older kernel to make the
compilation go ahead. Here is what the file says:

/* This file is no longer in use and kept only for backward compatibility.
* autoconf.h is now included via -imacros on the commandline
*/

Maybe wlan-ng should be updated to reflect the fact. Thanks!

Yiqun Wang
Solomon Peachy
2006-11-03 12:56:45 UTC
Permalink
Post by Yiqun Wang
I tried to compile wlan-ng, but recently 2.6.19 kernel source no longer
has file "linux/config.h". I borrowed one from older kernel to make the
I committed a fix for this yesterday. PCI/PLX support is still broken
due to a change in the interrupt handler prototype.

Unfortunately, my would-be 2.6.19-rc kernel test machine just broke, so
I can't promise a time for having the latter fixed. Hopefully by early
next week.

- Solomon
--
Solomon Peachy ***@linux-wlan.com
AbsoluteValue Systems http://www.linux-wlan.com
721-D North Drive +1 (321) 259-0737 (office)
Melbourne, FL 32934 +1 (321) 259-0286 (fax)
Victor Seva
2006-11-08 16:34:39 UTC
Permalink
This is the patch in order to get built linux-wlan-ng (svn rev 1805) in kernels < 2.6.19

Please, if you change something for new kernels try to don't broke the older ones.
- --
-----------------------------------------------------------------
| ,''`. Victor Seva |
| : :' : ***@torreviejawireless.org |
| `. `' PGP Key ID: 0xDD12F253 |
| `- Debian user, admin and contributor |
-----------------------------------------------------------------
Solomon Peachy
2006-11-08 19:33:43 UTC
Permalink
Post by Victor Seva
This is the patch in order to get built linux-wlan-ng (svn rev 1805) in kernels < 2.6.19
Please, if you change something for new kernels try to don't broke the older ones.
I just compiled r1805 successfully on 2.6.16.11, 2.6.17.23, and
2.6.18.1. I've also built it against 2.4.27.

Which kernel were you having problems with?

Note that I have't actually built it against 2.6.19-rc yet.

- Solomon
--
Solomon Peachy ***@linux-wlan.com
AbsoluteValue Systems http://www.linux-wlan.com
721-D North Drive +1 (321) 259-0737 (office)
Melbourne, FL 32934 +1 (321) 259-0286 (fax)
Pavel Roskin
2006-11-08 22:15:42 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is the patch in order to get built linux-wlan-ng (svn rev 1805) in kernels < 2.6.19
Please, if you change something for new kernels try to don't broke the older ones.
+#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18))
+#include <linux/config.h>
+#endif
MadWifi uses this construct:

#ifndef AUTOCONF_INCLUDED
#include <linux/config.h>
#endif

I don't know which kernels need that.
--
Regards,
Pavel Roskin
Loading...