All of lore.kernel.org
 help / color / mirror / Atom feed
* compiling errors
@ 2002-10-01 18:07 immortal1015
  2002-10-01 18:22 ` Arjan van de Ven
  0 siblings, 1 reply; 8+ messages in thread
From: immortal1015 @ 2002-10-01 18:07 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

I tried to compile the very simple kernel module code as following.
I compile this code using gcc -c hello.c, but gcc tell me:
 /usr/include/linux	/module.h:60 parse error before 'atomic_t'

What is the error? My gcc version is 2.96.


//////////////////////////////////////////////////////////////////////////////
#ifndef __KERNEL__
#  define __KERNEL__
#endif
#ifndef MODULE
#  define MODULE
#endif
#include <linux/version.h>
#include <linux/config.h>
#include <linux/module.h>

#include <linux/kernel.h> /* printk */

int init_module(void)
{
	printk("<1>Hello the world\n");
	return 0;
}

void cleanup_module(void)
{
	printk("<1>Goodbye the world\n");	
}
/////////////////////////////////////////////////////////////////


Best regards
yours Brucie





^ permalink raw reply	[flat|nested] 8+ messages in thread
* compiling errors
@ 2002-10-01 18:53 immortal1015
  2002-10-01 19:20 ` Richard B. Johnson
  0 siblings, 1 reply; 8+ messages in thread
From: immortal1015 @ 2002-10-01 18:53 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

I tried to compile the very simple kernel module code as following.
I compile this code using gcc -c hello.c, but gcc tell me:
 /usr/include/linux	/module.h:60 parse error before 'atomic_t'

What is the error? My gcc version is 2.96 and Redhat Linux 7.3


//////////////////////////////////////////////////////////////////////////////
#ifndef __KERNEL__
#  define __KERNEL__
#endif
#ifndef MODULE
#  define MODULE
#endif
#include <linux/version.h>
#include <linux/config.h>
#include <linux/module.h>

#include <linux/kernel.h> /* printk */

int init_module(void)
{
	printk("<1>Hello the world\n");
	return 0;
}

void cleanup_module(void)
{
	printk("<1>Goodbye the world\n");	
}
/////////////////////////////////////////////////////////////////


Best regards
yours Brucie




^ permalink raw reply	[flat|nested] 8+ messages in thread
* Compiling Errors
@ 2005-05-19  6:23 Wolfgang Timm
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Timm @ 2005-05-19  6:23 UTC (permalink / raw)
  To: lm-sensors

Hello,

i'm trying ls_sensors to watch our Webserver.
i2c compiles fine.

At the compile time for lm_sensors i got this:
gcc  -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. 
-Ikernel/include -I/usr/local/include -I/usr/src/linux/include   -O2   -c 
kernel/chips/lm92.c -o kernel/chips/lm92.o
kernel/chips/lm92.c:96: warning: parameter names (without types) in 
function declaration
kernel/chips/lm92.c: In function `lm92_temp':
kernel/chips/lm92.c:180: `mutex' undeclared (first use in this function)
kernel/chips/lm92.c:180: (Each undeclared identifier is reported only once
kernel/chips/lm92.c:180: for each function it appears in.)
kernel/chips/lm92.c: In function `lm92_alarms':
kernel/chips/lm92.c:207: `mutex' undeclared (first use in this function)
kernel/chips/lm92.c: In function `lm92_detect':
kernel/chips/lm92.c:280: `mutex' undeclared (first use in this function)
kernel/chips/lm92.c:298: `THIS_MODULE' undeclared (first use in this function)
kernel/chips/lm92.c: At top level:
kernel/chips/lm92.c:415: warning: parameter names (without types) in 
function declaration
kernel/chips/lm92.c:415: warning: data definition has no type or storage class
kernel/chips/lm92.c:416: warning: parameter names (without types) in 
function declaration
kernel/chips/lm92.c:416: warning: data definition has no type or storage class
make: *** [kernel/chips/lm92.o] Error 1

Whats this mean??
Thanks for your answer
timm

---------------------------------;-)
inbase
- Wolfgang Timm -
    3W:  http://www.inbase.de, http://www.mycms.de

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Compiling errors
@ 2014-03-05  4:50 Rick Bianchi
  2014-03-05 10:44 ` Paul Eggleton
  0 siblings, 1 reply; 8+ messages in thread
From: Rick Bianchi @ 2014-03-05  4:50 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

I get the following errors while trying to compile:

Error: autogen-native not found in the base feeds (overo armv7a-vfp-neon
armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5 armv4
arm noarch any all).

When I do a bitbake -s | grep autogen-native it shows up.

I am also getting the same error for dhcp recipe.

[-- Attachment #2: Type: text/html, Size: 399 bytes --]

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

end of thread, other threads:[~2014-03-05 14:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-01 18:07 compiling errors immortal1015
2002-10-01 18:22 ` Arjan van de Ven
  -- strict thread matches above, loose matches on Subject: below --
2002-10-01 18:53 immortal1015
2002-10-01 19:20 ` Richard B. Johnson
2005-05-19  6:23 Compiling Errors Wolfgang Timm
2014-03-05  4:50 Compiling errors Rick Bianchi
2014-03-05 10:44 ` Paul Eggleton
2014-03-05 14:02   ` Rick Bianchi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.