mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Relson <relson@osagesoftware.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: 2.5.1 - error compiling ksyms.c
Date: Tue, 18 Dec 2001 10:47:48 -0500	[thread overview]
Message-ID: <4.3.2.7.2.20011218103901.00c3aad0@mail.osagesoftware.com> (raw)

Greetings!

I can't 2.5.1 for a single processor environment.  The compilation of 
kernel/ksyms.c fails as follows:

gcc -D__KERNEL__ -I/usr/src/linux-2.5.1/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common 
-pipe -mpreferred-stack-boundary=2 -march=i686    -DEXPORT_SYMTAB -c ksyms.c
In file included from ksyms.c:24:
/usr/src/linux-2.5.1/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux-2.5.1/include/linux/kernel_stat.h:48: `smp_num_cpus' 
undeclared (first use in this function)
/usr/src/linux-2.5.1/include/linux/kernel_stat.h:48: (Each undeclared 
identifier is reported only once
/usr/src/linux-2.5.1/include/linux/kernel_stat.h:48: for each function it 
appears in.)
make[2]: *** [ksyms.o] Error 1

In linux-2.5.1/.config, I have:

	# CONFIG_SMP is not set

This causes linux-2.5.1/include/linux/smp.h to define the symbol using:

	#define smp_num_cpus	1

However in linux-2.5.1/include/linux/modules/i386_ksyms.ver is:

	#define smp_num_cpus	_set_ver(smp_num_cpus)

which seems to undefine the symbol.

What the heck is going on here?

David


             reply	other threads:[~2001-12-18 15:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-18 15:47 David Relson [this message]
2001-12-18 16:32 ` David Relson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.3.2.7.2.20011218103901.00c3aad0@mail.osagesoftware.com \
    --to=relson@osagesoftware.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®