mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5.1 - error compiling ksyms.c
@ 2001-12-18 15:47 David Relson
  2001-12-18 16:32 ` David Relson
  0 siblings, 1 reply; 2+ messages in thread
From: David Relson @ 2001-12-18 15:47 UTC (permalink / raw)
  To: lkml

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


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

* Re: 2.5.1 - error compiling ksyms.c
  2001-12-18 15:47 2.5.1 - error compiling ksyms.c David Relson
@ 2001-12-18 16:32 ` David Relson
  0 siblings, 0 replies; 2+ messages in thread
From: David Relson @ 2001-12-18 16:32 UTC (permalink / raw)
  To: lkml

Never mind.  I seem to have corrected the problem by cleaning up and 
rebuilding from scratch, i.e.

         make mrproper
         make xconfig
         make dep
         make bzImage
         make modules
         make install
         make modules_install

and all worked fine.  Now if I can only remember what events lead up to 
encountering trouble, I might have something useful to report.

David

At 10:47 AM 12/18/01, you wrote:
>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
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/


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

end of thread, other threads:[~2001-12-18 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-18 15:47 2.5.1 - error compiling ksyms.c David Relson
2001-12-18 16:32 ` David Relson

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®