Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Kernel includes... Flame warning
@ 1998-05-26  4:00 Paul Repacholi ( prep )
  1998-05-27  4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Repacholi ( prep ) @ 1998-05-26  4:00 UTC (permalink / raw)




OK, This is a mild rant...

Could the `right people' PLEASE look at doing ALL includes from
the kernel build tree, and installing the `right' include files as
part of installing the kernel. Yes, I know that is a real furball...

Why? WEll, you can't compile a kernel and normal code at the
same time, or work on two kernel versions. Plus it is just plain bad
engineering. The moving of all the kernel build include into the kernel
source tree should be a reasonable thing to do.


-- 
~paul        ( prep )                           Paul Repacholi,
                                                1 Crescent Rd.,
erepacholi@cc.curtin.edu.au                      Kalamunda,
+61 (08) 9257-1001                              Western Australia.  6076



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

* Re: Kernel includes... Flame warning
  1998-05-26  4:00 Kernel includes... Flame warning Paul Repacholi ( prep )
@ 1998-05-27  4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
  1998-05-31  4:00   ` Paul Repacholi ( prep )
  0 siblings, 1 reply; 6+ messages in thread
From: His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated @ 1998-05-27  4:00 UTC (permalink / raw)



>>>>> "PR(p)" == Paul Repacholi ( prep ) <erepacholi@cc.curtin.edu.au> writes:

    PR(p)> Could the `right people' PLEASE look at doing ALL includes
    PR(p)> from the kernel build tree, and installing the `right'
    PR(p)> include files as part of installing the kernel. Yes, I know
    PR(p)> that is a real furball...

Er, this is a mild back-flame.  Hope you don't mind me calling you a
dumb-ass.  :)

If you had set up your system correctly and read the kernel build
information, you would know about the following three symbolic links:

nemesis:~>ls -ld /usr/include/{asm,linux,scsi}
lrwxrwxrwx 1 root root 24 Mar 8 2018 /usr/include/asm -> ../src/linux/include/asm/
lrwxrwxrwx 1 root root 26 Mar 8 2018 /usr/include/linux -> ../src/linux/include/linux/
lrwxrwxrwx 1 root root 25 Mar 8 2018 /usr/include/scsi -> ../src/linux/include/scsi/
nemesis:~>

Of course, on my system the content of /usr/src/linux is the source
code to kernel version 2.1.103.  And yes, it is documented (although
i386-centric).  From linux/README, as part of the kernel source
installation:

> - Make sure your /usr/include/asm, /usr/include/linux, and
>   /usr/include/scsi directories are just symlinks to the kernel
>   sources:
>
>                cd /usr/include
>                rm -rf asm linux scsi
>                ln -s /usr/src/linux/include/asm-i386 asm
>                ln -s /usr/src/linux/include/linux linux
>                ln -s /usr/src/linux/include/scsi scsi

Of course, that should instead be 'ln -s /usr/src/linux-include/asm'
or 'ln -s /usr/src/linux-include/asm-alpha'.  So every time you update
your kernel, or install new kernel sources, you should either (a)
recreate these links per the installation instructions or (b) install
your kernel sources in such a way as those symbolic links will always
be correct.

So go Burn in Earth, Pink Boy!!  :)

-- 
Rev. Dr. Xenophon Fenderson, the Carbon(d)ated, KSC, DEATH, SubGenius, mhm21x16
"Abraham came not to sacrifice, but to know once and for all whether this God
was a god to be trusted and obeyed. No other test would do." (Fall of Hyperion)



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

* Re: Kernel includes... Flame warning
  1998-05-27  4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
@ 1998-05-31  4:00   ` Paul Repacholi ( prep )
  1998-05-31  4:00     ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
  1998-06-01  4:00     ` John Walstra
  0 siblings, 2 replies; 6+ messages in thread
From: Paul Repacholi ( prep ) @ 1998-05-31  4:00 UTC (permalink / raw)



>>>>> "xf" == His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated <xenophon@irtnog.org> writes:
    xf> 
>>>>> "PR(p)" == Paul Repacholi ( prep ) <erepacholi@cc.curtin.edu.au>
    xf> writes:
    >     PR(p)> Could the `right people' PLEASE look at doing ALL
    > includes PR(p)> from the kernel build tree, and installing the
    > `right' PR(p)> include files as part of installing the
    > kernel. Yes, I know PR(p)> that is a real furball...
    xf>
    > Er, this is a mild back-flame.  Hope you don't mind me calling
    > you a dumb-ass.  :)
Nope, long as you can answer the following...


    xf>
    > If you had set up your system correctly and read the kernel
    > build information, you would know about the following three
    > symbolic links:

Yep, got all that.

But, perhaps you can tell me what to set the links to so I can build
the 2.1.91 kernel. Oh, btw, another user is building nethach, and a third
is generating a 2.0.33 kernel for another system. Running on a 2.0.30 alpha

-- 
~paul        ( prep )                           Paul Repacholi,
                                                1 Crescent Rd.,
erepacholi@cc.curtin.edu.au                      Kalamunda,
+61 (08) 9257-1001                              Western Australia.  6076



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

* Re: Kernel includes... Flame warning
  1998-05-31  4:00   ` Paul Repacholi ( prep )
@ 1998-05-31  4:00     ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
  1998-06-02  4:00       ` Paul Repacholi ( prep )
  1998-06-01  4:00     ` John Walstra
  1 sibling, 1 reply; 6+ messages in thread
From: His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated @ 1998-05-31  4:00 UTC (permalink / raw)



>>>>> "PR" == Paul Repacholi ( prep ) <erepacholi@cc.curtin.edu.au> writes:
>>>>> "xf" == His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated <xenophon@irtnog.org> writes:

    xf> If you had set up your system correctly and read the kernel
    xf> build information, you would know about the following three
    xf> symbolic links:

    PR> Yep, got all that.

    PR> But, perhaps you can tell me what to set the links to so I
    PR> can build the 2.1.91 kernel. Oh, btw, another user is
    PR> building nethach, and a third is generating a 2.0.33 kernel
    PR> for another system. Running on a 2.0.30 alpha

Woah.  I'm not following you.  Let me back up an restate a few things
and see if that clears things up.

Usually, /usr/include/ has three symbolic links back to kernel source
code---asm (points to linux/include/asm, another symbolic link to the
architecture-specific headers), linux (points to linux/include/linux/,
which has the architecture-independent headers), and scsi (points to
linux/include/scsi/, which Does Stuff).

When I say `linux/' in the above, I mean where-ever you have the
kernel source code for the version you want to build against.  RedHat
puts kernel 2.0.30 in /usr/src/linux/ and has those three links point
there.  What I usually do is make /usr/src/linux a symbolic link to
the "current" kernel sources, and keep that in the appropriately
numbered directory.  So /usr/src/ has linux-2.0.33/ and
linux-2.1.103/, with linux pointing to linux-2.1.103/, so all of my
programs will build against the 2.1.103 headers.  Which header set to
use is only important when compiling programs and (especially)
modules, not when building a kernel (which automatically uses its own
headers and does not reference the standard C libraries and C headers
at all, for obvious reasons).

So if I read you aright (which may not be the case, please correct me
where wrong), you want to upgrade to kernel version 2.1.91 from
2.0.30, without screwing up the fellow trying to compile nethack, or
the other fellow trying to compile a 2.0.30 kernel for Some Other
Computer.

No sweat.

Since /usr/src/linux/ is the 2.0.30 headers (and kernel sources, if
you installed that), you can either remove the various kernel-2.0.30
RPMs, or you can rename /usr/src/linux/ to /usr/src/linux-2.0.30/
(which is what I did).  Then unpack the linux-2.1.91 tar in /usr/src,
it will create linux/ which contains kernel version 2.1.91, and all
will be well.  Joe User will be able to build his kernel (in some
other directory), and nethack (which shouldn't directly depend on
kernel headers) should build just fine for Josephine User.

So what's the big problem here?  Am I missing something fundamental?
What fnord about fnord this fnord is fnord confusing fnord you?

-- 
Rev. Dr. Xenophon Fenderson, the Carbon(d)ated, KSC, DEATH, SubGenius, mhm21x16
Pope, Patron Saint of All Things Plastic fnord, and Salted Litter of r.g.s.b
"Abraham came not to sacrifice, but to know once and for all whether this God
was a god to be trusted and obeyed. No other test would do." (Fall of Hyperion)



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

* Re: Kernel includes... Flame warning
  1998-05-31  4:00   ` Paul Repacholi ( prep )
  1998-05-31  4:00     ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
@ 1998-06-01  4:00     ` John Walstra
  1 sibling, 0 replies; 6+ messages in thread
From: John Walstra @ 1998-06-01  4:00 UTC (permalink / raw)



Paul Repacholi ( prep ) wrote:

> >>>>> "xf" == His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated <xenophon@irtnog.org> writes:
>     xf>
> >>>>> "PR(p)" == Paul Repacholi ( prep ) <erepacholi@cc.curtin.edu.au>
>     xf> writes:
>     >     PR(p)> Could the `right people' PLEASE look at doing ALL
>     > includes PR(p)> from the kernel build tree, and installing the
>     > `right' PR(p)> include files as part of installing the
>     > kernel. Yes, I know PR(p)> that is a real furball...
>     xf>
>     > Er, this is a mild back-flame.  Hope you don't mind me calling
>     > you a dumb-ass.  :)
> Nope, long as you can answer the following...
>
>     xf>
>     > If you had set up your system correctly and read the kernel
>     > build information, you would know about the following three
>     > symbolic links:
>
> Yep, got all that.
>
> But, perhaps you can tell me what to set the links to so I can build
> the 2.1.91 kernel. Oh, btw, another user is building nethach, and a third
> is generating a 2.0.33 kernel for another system. Running on a 2.0.30 alpha
>
> --
> ~paul        ( prep )                           Paul Repacholi,
>                                                 1 Crescent Rd.,
> erepacholi@cc.curtin.edu.au                      Kalamunda,
> +61 (08) 9257-1001                              Western Australia.  6076

Here's kind of a visual of my directories... (might help)

[spoon@fork include]$ cd /usr/src
[spoon@fork src]$ ls -l
total 85603
-rw-r--r--   1 root     root          968 Mar 29  2026 Linux.scsi-patch
-rw-r--r--   1 root     root       616525 Mar 30  2026 alpha-patches-2.0.32-0.1
-rw-r--r--   1 root     root       152255 Mar 28  2026 alpha-patches-2.0.33-0.1.gz
lrwxrwxrwx   1 root     root           13 May 28 21:50 linux -> linux-2.1.103
drwxr-xr-x  15 root     root         1024 Nov 17  1997 linux-2.0.30
drwxr-xr-x  15 root     root         1024 Mar 21  2078 linux-2.0.32
-rw-rw-r--   1 root     root     26603520 Mar 30  2026 linux-2.0.32.tar
drwxr-xr-x  15 root     root         1024 Mar 30  2026 linux-2.0.33
drwxr-xr-x  15 root     root         1024 May 28 20:54 linux-2.1.100
-rw-r--r--   1 root     root     47595520 May  8 21:17 linux-2.1.100.tar
drwxr-xr-x  15 1046     1046         1024 May 28 22:48 linux-2.1.103
-rw-r--r--   1 root     root     11321604 May 28 21:35 linux-2.1.103.tar.gz
drwxr-xr-x  10 spoon    spoon        1024 May  8 22:28 modutils-2.1.85
-rw-r--r--   1 root     root       706560 May  8 21:18 modutils-2.1.85.tar
-rw-rw-r--   1 root     root       299714 Mar 30  2026 ossfree38s9-linux20x.tar.gz
drwxr-xr-x   7 root     root         1024 Mar 10  2046 redhat

Notice, linux is a symbolic link to a directory with my current kernel sources.
(BTW: Notice my screwed up clock that thinks the year is greater than 2000.
Silly Alpha :) )

[spoon@fork lib]$ cd /usr/include
[spoon@fork include]$ ls -l linux
lrwxrwxrwx   1 root     root     28 May  9 01:21 linux -> /usr/src/linux/include/linux
[spoon@fork include]$ ls -l asm
lrwxrwxrwx   1 root     root     26 May  9 01:21 asm -> /usr/src/linux/include/asm
[spoon@fork include]$ ls -l scsi
lrwxrwxrwx   1 root     root     27 May  9 01:21 scsi -> /usr/src/linux/include/scsi

The three symbolic links point at /usr/src/linux which as stated above, is a symbolic link to my current kernel
sources.  One extra thing to check is to see if /usr/src/linux/include/asm points at
/usr/src/linux/include/asm-alpha.  It should if you built the kernel ("make config" makes the link, but if you did a
"make mrproper" it might be gone).

[spoon@fork include]$ pwd
/usr/src/linux/include
[spoon@fork include]$ ls -l
total 30
lrwxrwxrwx   1 root     root            9 May 28 21:53 asm -> asm-alpha
drwxr-xr-x   2 1046     1046         2048 May 20 14:13 asm-alpha
drwxr-xr-x  10 1046     1046         2048 May  8 00:44 asm-arm
drwxr-xr-x   2 1046     1046         1024 May 19  1996 asm-generic
drwxr-xr-x   2 1046     1046         2048 May 19 15:54 asm-i386
drwxr-xr-x   2 1046     1046         2048 May  8 00:15 asm-m68k
drwxr-xr-x   2 1046     1046         2048 May 14 19:01 asm-mips
drwxr-xr-x   2 1046     1046         2048 May  8 23:04 asm-ppc
drwxr-xr-x   3 1046     1046         3072 May  8 00:11 asm-sparc
drwxr-xr-x   2 1046     1046         2048 May  8 00:11 asm-sparc64
drwxr-xr-x  57 root     root         2048 May 28 22:48 config
drwxr-xr-x   7 1046     1046         7168 May 28 22:48 linux
drwxr-xr-x   2 1046     1046         2048 May 14 18:58 net
drwxr-xr-x   2 1046     1046         1024 May  1 11:20 scsi

------------------------------------------------------------------------
John Walstra                                               It's all in a
mailto:spoon@spoon.ddns.org                               days work, for
http://spoon.ddns.org                                      Confuse A Cat





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

* Re: Kernel includes... Flame warning
  1998-05-31  4:00     ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
@ 1998-06-02  4:00       ` Paul Repacholi ( prep )
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Repacholi ( prep ) @ 1998-06-02  4:00 UTC (permalink / raw)



>>>>> "xf" == His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated <xenophon@irtnog.org> writes:
    xf> 
>>>>> "PR" == Paul Repacholi ( prep ) <erepacholi@cc.curtin.edu.au>
    xf> writes:
>>>>> "xf" == His Holiness the Reverend Doktor Xenophon Fenderson, the
    xf> Carbon(d)ated <xenophon@irtnog.org> writes:
    xf> 
    xf> If you had set up your system correctly and read the kernel

...
    > compiling programs and (especially) modules, not when building a
    > kernel (which automatically uses its own headers and does not
    > reference the standard C libraries and C headers at all, for
    > obvious reasons).

Ah, I was missled, it seems by the docs. It gave me the firm
impression that the link from /usr/include... must be set up
to BUILD the kernel. If, in fact everything within a build is within
the source  tree, then it's done. 

    xf>
    > So if I read you aright (which may not be the case, please
    > correct me where wrong), you want to upgrade to kernel version
    > 2.1.91 from 2.0.30, without screwing up the fellow trying to
    > compile nethack, or the other fellow trying to compile a 2.0.30
    > kernel for Some Other Computer.

WEll, not quite. I need to compile a 2.1.x kernel for an x86. Just to
add some flavor to things... I already use the linux to current version,
other links point to linux setup.

-- 
~paul        ( prep )                           Paul Repacholi,
                                                1 Crescent Rd.,
erepacholi@cc.curtin.edu.au                      Kalamunda,
+61 (08) 9257-1001                              Western Australia.  6076



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

end of thread, other threads:[~1998-06-02  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-26  4:00 Kernel includes... Flame warning Paul Repacholi ( prep )
1998-05-27  4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
1998-05-31  4:00   ` Paul Repacholi ( prep )
1998-05-31  4:00     ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
1998-06-02  4:00       ` Paul Repacholi ( prep )
1998-06-01  4:00     ` John Walstra

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