(vmware module patch included) Re: GCC-2.95.1 posix_types.h and

Derek Wildstar (dwild@linux.com)
Tue, 24 Aug 1999 22:18:09 -0400 (EDT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--17432833-1147111951-935547489=:32712
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 25 Aug 1999, Binaire wrote:

> Hi ,
> I have a problem with gcc-2.95.1 , it's come with a wrapper around posix_types.h :

*snip*

> The problem is when I would like to compile a kernel module like vmware or gart-glx : these modules call
> linux/types.h which will include asm/posix_types.h ; as gcc-2.95.1 call the wrapper before
> asm/posix_types.h : it will include features.h

*snip*

> As __KERNEL_STRICT_NAMES is defined by features.h : there is a tone on typedef that will not be
> declared by linux/types.h and so the compilation of these modules will fail unless i remove the #include
> <features.h> but this include is need for the definition of __GLIBC__
>
> So what is the solution ? fixing kernel tree or gcc-2.95.1 ?

My solution was neither...

I fixed it by adding #define __KERNEL_LOOSE_NAMES to the vmware module
code, as the attached patch indicates. I already sent vmware the patch
and they have not responded, so I would hang on to it until they release a
working module without having to hack on it =)

-dwild

--17432833-1147111951-935547489=:32712
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="vmware-1.3-driver_linux-2.2.11.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9908242218090.32712@shiftq.linux.com>
Content-Description: vmware-1.3-driver_linux-2.2.11.patch
Content-Disposition: attachment; filename="vmware-1.3-driver_linux-2.2.11.patch"

ZGlmZiAtdXIgZHJpdmVyLW9ubHkvY29tbW9uL21lbXRyYWNrLmMgZHJpdmVy
LW9ubHktZml4ZWQvY29tbW9uL21lbXRyYWNrLmMNCi0tLSBkcml2ZXItb25s
eS9jb21tb24vbWVtdHJhY2suYwlNb24gSnVsIDE5IDIwOjE0OjUyIDE5OTkN
CisrKyBkcml2ZXItb25seS1maXhlZC9jb21tb24vbWVtdHJhY2suYwlUaHUg
QXVnIDE5ID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c3RyaW5nLmg+DQpkaWZmIC11ciBkcml2ZXItb25seS9s
aW51eC9kcml2ZXItY29uZmlnLmggZHJpdmVyLW9ubHktZml4ZWQvbGludXgv
ZHJpdmVyLWNvbmZpZy5oDQotLS0gZHJpdmVyLW9ubHkvbGludXgvZHJpdmVy
LWNvbmZpZy5oCU1vbiBKdWwgMTkgMjA6MTQ6NTIgMTk5OQ0KKysrIGRyaXZl
ci1vbmx5LWZpeGVkL2xpbnV4L2RyaXZlci1jb25maWcuaAlUaHUgQXVnIDE5
IDE5OjMwOjU4IDE5OTkNCkBAIC03LDYgKzcsNyBAQA0KIA0KICNpZm5kZWYg
X19WTVhfQ09ORklHX0hfXw0KICNkZWZpbmUgX19WTVhfQ09ORklHX0hfXw0K
KyNkZWZpbmUgX0xPT1NFX0tFUk5FTF9OQU1FUw0KIA0KICNpbmNsdWRlIDxs
aW51eC9hdXRvY29uZi5oPg0KICNpbmNsdWRlICJsaW51eC12ZXJzaW9uLmgi
DQo=
--17432833-1147111951-935547489=:32712--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/