Skip to contentSkip to conversation

problems about __cli()

DISCUSSION Iain Sandoe 3 participants 3 messages Jul 20, 2000

lore
Share & tools
lore
#0 lore raw

Hi Rolf,

Quoted 5 lines · Rolf Liu

I am currently compiling the kernel 2.2.13.
A problem occours, it said the "__cli() is not defined".
I wonder where the __cli() is defined in the kernel tree, which file is it in ?
thanks a lot.

(at 2.2.17preZZ - any reason for using 2.2.13?)

Where "your-kernel-foo-bar" is the source tree you are working with:

__cli() is defined in:

/usr/src/your-kernel-foo-bar/include/asm-ppc/system.h

asm-ppc is symlinked to /usr/src/your-kernel-foo-bar/include/asm by the build process.

the function is implemented in:

/usr/src/your-kernel-foo-bar/arch/ppc/kernel/misc.S

It is *vital* to make sure that there is a symlink named 'linux' in /usr/src that points to your /usr/src/your-kernel-foo-bar/ because there are symlinks in /usr/include that expect to use this to find the build-specific headers.

hope this helps,
Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 1 line · Iain Sandoe

[snip]

Quoted 4 lines

It is *vital* to make sure that there is a symlink named 'linux' in /usr/src that points to your /usr/src/your-kernel-foo-bar/ because there are symlinks in /usr/include that expect to use this to find the build-specific headers.

A couple notes:

You don't have to put your kernel in /usr/src, and you DON'T have to symlink /usr/src/linux to it before you build. The symlinks (on broken RedHat derivatives) in /usr/include should point to the kernel headers that your libc was built againt, otherwise you risk breaking binary compatibility.

Signature · 3 lines
Josh
6B21489A | GnuPG ID/Fingerprint | [email protected] |
61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A
#2 lore raw
In reply to Iain Sandoe
Quoted 7 lines · Iain Sandoe

the function is implemented in:

/usr/src/your-kernel-foo-bar/arch/ppc/kernel/misc.S

It is *vital* to make sure that there is a symlink named 'linux' in /usr/src that points to your /usr/src/your-kernel-foo-bar/ because there are symlinks in /usr/include that expect to use this to find the build-specific headers.

Wasn't that the same guy that tried to build Linux kernels on a Windoze system? The whole /usr/src and symlink stuff might be a bit tough to pull off on such a box.

Michael

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/