public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
       [not found] <200411091158.14936.onebeer32@hotmail.com>
@ 2004-12-06 21:25 ` Martin Larsson
  2004-12-06 23:02   ` Bastian Balthazar Bux
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Larsson @ 2004-12-06 21:25 UTC (permalink / raw
  To: gentoo-user

On Tue, 9 Nov 2004 11:58:14 -0600, Chris Cox <onebeer32@hotmail.com> wrote:
> What is the location of the directory of C header files that match your
> running
> kernel? [/lib/modules/2.6.9-gentoo-r3/build/include]

Maybe your header files are in /usr/src/linux/include ?

M.

--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-06 21:25 ` [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel Martin Larsson
@ 2004-12-06 23:02   ` Bastian Balthazar Bux
  2004-12-07  0:08     ` [gentoo-user] " Georgi Georgiev
  0 siblings, 1 reply; 12+ messages in thread
From: Bastian Balthazar Bux @ 2004-12-06 23:02 UTC (permalink / raw
  To: gentoo-user

Martin Larsson wrote:

>On Tue, 9 Nov 2004 11:58:14 -0600, Chris Cox <onebeer32@hotmail.com> wrote:
>  
>
>>What is the location of the directory of C header files that match your
>>running
>>kernel? [/lib/modules/2.6.9-gentoo-r3/build/include]
>>    
>>
>
>Maybe your header files are in /usr/src/linux/include ?
>  
>
the ones installed by sys-kernel/linux26-headers are in /usr/include/linux.
BTW can someone explain me why this package exist? It's not enaugh the 
linux ones, the only answer I can give myself is not to be constricted 
to recompile a bunch of programs every time u change kernel. It's the 
right answer ?

thanks francesco

>M.
>
>--
>gentoo-user@gentoo.org mailing list
>
>
>  
>


--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-06 23:02   ` Bastian Balthazar Bux
@ 2004-12-07  0:08     ` Georgi Georgiev
  2004-12-07  0:48       ` Bastian Balthazar Bux
  2004-12-07 20:13       ` [gentoo-user] " Martin Larsson
  0 siblings, 2 replies; 12+ messages in thread
From: Georgi Georgiev @ 2004-12-07  0:08 UTC (permalink / raw
  To: gentoo-user

On Tue, 07 Dec 2004 00:02:49 +0100, Bastian Balthazar Bux wrote:

> Martin Larsson wrote:
> 
>>On Tue, 9 Nov 2004 11:58:14 -0600, Chris Cox <onebeer32@hotmail.com>
>>wrote:
>>  
>>  
>>>What is the location of the directory of C header files that match your
>>>running
>>>kernel? [/lib/modules/2.6.9-gentoo-r3/build/include]
>>>    
>>>    
>>>
>>Maybe your header files are in /usr/src/linux/include ?

Or maybe you're using KERNEL_OUTPUT? In that case vmware modules
compilation fails badly before it has started. You can get my patched
ebuilds from my personal portage overlay at
rsync://rsync.gg3.net/gentoo-portage-chutz/app-emulation/vmware-workstation/.
These cut out large portions of vmware-config.pl that do nothing but ask
silly questions (like "where are your headers", since it is gentoo policy
that /usr/src/linux should point to your current kernel) and also patch
the appropriate makefiles.

> the ones installed by sys-kernel/linux26-headers are in
> /usr/include/linux. BTW can someone explain me why this package exist?
> It's not enaugh the linux ones, the only answer I can give myself is not
> to be constricted to recompile a bunch of programs every time u change
> kernel. It's the right answer ?

glibc compiles against the headers in /usr/include/linux.
Programs that link against glibc (read: all programs) need to include the
headers that glibc was built against in order to link properly. These
headers need to always correspond to the version that glibc was compiled
against. Hence the warnings that the linux-headers ebuild spits out at
installation, reminding you to recompile glibc next.

-- 
 )   Georgi Georgiev    ) Anyone who has had a bull by the tail         )
(     chutz@gg3.net    (  knows five or six more things than someone   (
 )  +81(90)6266-1163    ) who hasn't. -- Mark Twain                     )



--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Re: Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07  0:08     ` [gentoo-user] " Georgi Georgiev
@ 2004-12-07  0:48       ` Bastian Balthazar Bux
  2004-12-07  0:49         ` [gentoo-user] " Georgi Georgiev
  2004-12-07 20:13       ` [gentoo-user] " Martin Larsson
  1 sibling, 1 reply; 12+ messages in thread
From: Bastian Balthazar Bux @ 2004-12-07  0:48 UTC (permalink / raw
  To: gentoo-user

Georgi Georgiev wrote:

>On Tue, 07 Dec 2004 00:02:49 +0100, Bastian Balthazar Bux wrote:
>
>  
>
>>Martin Larsson wrote:
>>
>>    
>>
>>>On Tue, 9 Nov 2004 11:58:14 -0600, Chris Cox <onebeer32@hotmail.com>
>>>wrote:
>>> 
>>> 
>>>      
>>>
>>>>What is the location of the directory of C header files that match your
>>>>running
>>>>kernel? [/lib/modules/2.6.9-gentoo-r3/build/include]
>>>>   
>>>>   
>>>>
>>>>        
>>>>
>>>Maybe your header files are in /usr/src/linux/include ?
>>>      
>>>
>
>Or maybe you're using KERNEL_OUTPUT? In that case vmware modules
>compilation fails badly before it has started. You can get my patched
>ebuilds from my personal portage overlay at
>rsync://rsync.gg3.net/gentoo-portage-chutz/app-emulation/vmware-workstation/.
>These cut out large portions of vmware-config.pl that do nothing but ask
>silly questions (like "where are your headers", since it is gentoo policy
>that /usr/src/linux should point to your current kernel) and also patch
>the appropriate makefiles.
>
>  
>
>>the ones installed by sys-kernel/linux26-headers are in
>>/usr/include/linux. BTW can someone explain me why this package exist?
>>It's not enaugh the linux ones, the only answer I can give myself is not
>>to be constricted to recompile a bunch of programs every time u change
>>kernel. It's the right answer ?
>>    
>>
>
>glibc compiles against the headers in /usr/include/linux.
>Programs that link against glibc (read: all programs) need to include the
>headers that glibc was built against in order to link properly. These
>headers need to always correspond to the version that glibc was compiled
>against. Hence the warnings that the linux-headers ebuild spits out at
>installation, reminding you to recompile glibc next.
>
>  
>
mmmh I belive you but in this case why not keep gentoo-dev-sources and 
linux26-headers and avoid download of two kernel sources, or ask at the 
installer which kernel he/she want to run ?


--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: Re: Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07  0:48       ` Bastian Balthazar Bux
@ 2004-12-07  0:49         ` Georgi Georgiev
  0 siblings, 0 replies; 12+ messages in thread
From: Georgi Georgiev @ 2004-12-07  0:49 UTC (permalink / raw
  To: gentoo-user

On Tue, 07 Dec 2004 01:48:51 +0100, Bastian Balthazar Bux wrote:

> Georgi Georgiev wrote:
>>>the ones installed by sys-kernel/linux26-headers are in
>>>/usr/include/linux. BTW can someone explain me why this package exist?
>>>It's not enaugh the linux ones, the only answer I can give myself is not
>>>to be constricted to recompile a bunch of programs every time u change
>>>kernel. It's the right answer ?
>>>    
>>>    
>>>
>>glibc compiles against the headers in /usr/include/linux. Programs that
>>link against glibc (read: all programs) need to include the headers that
>>glibc was built against in order to link properly. These headers need to
>>always correspond to the version that glibc was compiled against. Hence
>>the warnings that the linux-headers ebuild spits out at installation,
>>reminding you to recompile glibc next.
>>
>>
>>  
> mmmh I belive you but in this case why not keep gentoo-dev-sources and
> linux26-headers and avoid download of two kernel sources, or ask at the
> installer which kernel he/she want to run ?

Because programs may break against the latest headers. I had problems when
I first tried linux26-headers on my system, because iptables for example
failed to compile. Considering how often external kernel modules fail
because of changes to the kernel structures, it is understandable that the
version of the headers you use to compile your userland applications has
to be a tested one, and not necessarily related to the version of the
kernel you are running.

-- 
\    Georgi Georgiev   \  Never trust a child farther than you can     \
 /    chutz@gg3.net     / throw it.                                     /
\   +81(90)6266-1163   \                                               \



--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-06 23:47 Re: [gentoo-user] " Matthew Marlowe
@ 2004-12-07  9:16 ` Chris Cox
  2004-12-07 20:15   ` Martin Larsson
  0 siblings, 1 reply; 12+ messages in thread
From: Chris Cox @ 2004-12-07  9:16 UTC (permalink / raw
  To: gentoo-user

On Monday 06 December 2004 05:47 pm, Matthew Marlowe wrote:
> >> \x01
> >>
> >> >>What is the location of the directory of C header files that match
> >> >> your running
> >> >>kernel? [/lib/modules/2.6.9-gentoo-r3/build/include]
>
> The above is the correct syntax.   We are using similiar g.d.s. kernels for
> vmware GSX here. However, you probably want to switch to the ck kernel tree
> as it has patches to fix oom-killer and other vmware sensitive bugs. 
> Otherwise, your you may find virtual machines being killed off for no
> reason during high util.
>
> I don't know why the modules weren't building for you.
>
I posted that question on 9 Nov, since then I've updated my kernel at least 
twice.  And the problem has been corrected.  I don't know people are just now 
sending replies to this thread.  
 
Chris
-- 
ICQ: 5255916  IRC: freenode.net #gentoo
Linux 2.6.9-gentoo-r6 i686 AMD Athlon(tm) XP 
  3:12am  up 8 days,  9:18, load average: 3.35, 2.75, 2.32

--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Re: Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07  0:08     ` [gentoo-user] " Georgi Georgiev
  2004-12-07  0:48       ` Bastian Balthazar Bux
@ 2004-12-07 20:13       ` Martin Larsson
  2004-12-07 20:31         ` Martin Larsson
  1 sibling, 1 reply; 12+ messages in thread
From: Martin Larsson @ 2004-12-07 20:13 UTC (permalink / raw
  To: gentoo-user

> it is gentoo policy that /usr/src/linux should point to your current kernel) 
> and also patch the appropriate makefiles.
<snip>
> glibc compiles against the headers in /usr/include/linux.
> Programs that link against glibc (read: all programs) need to include the
> headers that glibc was built against in order to link properly. 

So ... which do we use? /usr/src/linux? usr/include/linux?
/lib/modules/2.6.9-gentoo-r3/build/include?

M.

--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07  9:16 ` Chris Cox
@ 2004-12-07 20:15   ` Martin Larsson
  2004-12-07 20:33     ` Martin Larsson
  2004-12-07 22:01     ` Chris Cox
  0 siblings, 2 replies; 12+ messages in thread
From: Martin Larsson @ 2004-12-07 20:15 UTC (permalink / raw
  To: gentoo-user

On Tue, 7 Dec 2004 03:16:12 -0600, Chris Cox <onebeer@bluebottle.com> wrote:
> 
> I posted that question on 9 Nov, since then I've updated my kernel at least
> twice.  And the problem has been corrected.  I don't know people are just
> now sending replies to this thread.

Because there were no replies.
And because I have problems getting vmWare to run, so I'm searching
for messages regarding vmWare. And yours showed up...

M.

--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Re: Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07 20:13       ` [gentoo-user] " Martin Larsson
@ 2004-12-07 20:31         ` Martin Larsson
  2004-12-08  3:51           ` [gentoo-user] " Georgi Georgiev
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Larsson @ 2004-12-07 20:31 UTC (permalink / raw
  To: gentoo-user

On Tue, 7 Dec 2004 21:13:54 +0100, Martin Larsson
<martin.larsson@gmail.com> wrote:
> 
> So ... which do we use? /usr/src/linux? usr/include/linux?
> /lib/modules/2.6.9-gentoo-r3/build/include?

To answer my own question, and to restate what Georgi wrote
(sorry for stripping your name from the quote):
/usr/src/linux contains (or should contain) the default (or latest)
kernel so /usr/src/linux/include contains that kernels headers.
/usr/src/linux-2.6.9-gentoo-r3/include would then contain the
headers for that specific version of the kernel.

/lib/modues/2.6.9-gentoo-r3/build/include contains the kernel
headers used for compiling that version of the modules.

/usr/include/linux contains the C-library headers (ie. for printf
and atoi and so on).

M.

--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07 20:15   ` Martin Larsson
@ 2004-12-07 20:33     ` Martin Larsson
  2004-12-07 22:01     ` Chris Cox
  1 sibling, 0 replies; 12+ messages in thread
From: Martin Larsson @ 2004-12-07 20:33 UTC (permalink / raw
  To: gentoo-user

On Tue, 7 Dec 2004 21:15:47 +0100, Martin Larsson
<martin.larsson@gmail.com> wrote:
> 
> And because I have problems getting vmWare to run

Matthew Marlowe suggested the any-any-84 patch from http://ftp.cvut.cz/vmware/.
That did wonders. Thanks!

M.

--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07 20:15   ` Martin Larsson
  2004-12-07 20:33     ` Martin Larsson
@ 2004-12-07 22:01     ` Chris Cox
  1 sibling, 0 replies; 12+ messages in thread
From: Chris Cox @ 2004-12-07 22:01 UTC (permalink / raw
  To: gentoo-user

On Tuesday 07 December 2004 02:15 pm, Martin Larsson wrote:
> On Tue, 7 Dec 2004 03:16:12 -0600, Chris Cox <onebeer@bluebottle.com> wrote:
> > I posted that question on 9 Nov, since then I've updated my kernel at
> > least twice.  And the problem has been corrected.  I don't know people
> > are just now sending replies to this thread.
>
> Because there were no replies.
> And because I have problems getting vmWare to run, so I'm searching
> for messages regarding vmWare. And yours showed up...
>
Just upgrade your kernel.  That did the trick for me. But with 
gentoo-dev-sources, it seems to be impossible as they have new versions every 
other day it seems. <grin>

Chris
-- 
ICQ: 5255916  IRC: freenode.net #gentoo
Linux 2.6.9-gentoo-r6 i686 AMD Athlon(tm) XP 
  4:00pm  up 8 days, 22:06, load average: 0.07, 0.19, 0.11

--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: Re: Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel
  2004-12-07 20:31         ` Martin Larsson
@ 2004-12-08  3:51           ` Georgi Georgiev
  0 siblings, 0 replies; 12+ messages in thread
From: Georgi Georgiev @ 2004-12-08  3:51 UTC (permalink / raw
  To: gentoo-user

On Tue, 07 Dec 2004 21:31:26 +0100, Martin Larsson wrote:

> On Tue, 7 Dec 2004 21:13:54 +0100, Martin Larsson
> <martin.larsson@gmail.com> wrote:
> 
> /usr/include/linux contains the C-library headers (ie. for printf and
> atoi and so on).

Not exactly. "printf" is defined in /usr/include/stdio.h, "atoi" is
defined in /usr/include/stdlib.h.

You gave examples with basic functions that have nothing to do with
the kernel. There is a nice quote in the LFS book:

http://lfs.osuosl.org/lfs/view/5.1.1/chapter06/kernelheaders.html

As it states:

 The essential part is where Linus states that the header files should be
 the ones which Glibc was compiled against. These are the headers that
 should be used when you later compile other packages, as they are the
 ones that match the object-code library files. By copying the headers
 [to /usr/include/linux], we ensure that they remain available if later
 you upgrade your kernel.

So, if you use the headers for 2.6.9 and you run a 2.6.9 kernel, the
headers in /usr/include/linux and /usr/src/linux/include/linux will be
identical.

-- 
/    Georgi Georgiev   /  We're only in it for the volume. -- Black    /
\     chutz@gg3.net    \  Sabbath                                      \
/   +81(90)6266-1163   /                                               /



--
gentoo-user@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-12-08  3:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200411091158.14936.onebeer32@hotmail.com>
2004-12-06 21:25 ` [gentoo-user] Vmware modules doesn't build for gentoo-2.6.9-gentoo-r3 kernel Martin Larsson
2004-12-06 23:02   ` Bastian Balthazar Bux
2004-12-07  0:08     ` [gentoo-user] " Georgi Georgiev
2004-12-07  0:48       ` Bastian Balthazar Bux
2004-12-07  0:49         ` [gentoo-user] " Georgi Georgiev
2004-12-07 20:13       ` [gentoo-user] " Martin Larsson
2004-12-07 20:31         ` Martin Larsson
2004-12-08  3:51           ` [gentoo-user] " Georgi Georgiev
2004-12-06 23:47 Re: [gentoo-user] " Matthew Marlowe
2004-12-07  9:16 ` Chris Cox
2004-12-07 20:15   ` Martin Larsson
2004-12-07 20:33     ` Martin Larsson
2004-12-07 22:01     ` Chris Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox