Skip to contentSkip to conversation

2.4.7 build failure : esssolo1.c troubles

DISCUSSION Sven Vermeulen 2 participants 3 messages Jul 21, 2001

lore
Share & tools
lore
#0 lore raw

gcc -D__KERNEL__ -I/home/nitro/src/linux-2.4.7/include -Wall \
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer \
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 \
-march=k6 -c -o esssolo1.o esssolo1.c \
esssolo1.c:2455: warning: initialization from incompatible pointer type esssolo1.c:2457: warning: initialization from incompatible pointer type

and

drivers/sound/sounddrivers.o: In function `solo1_probe':
drivers/sound/sounddrivers.o(.text.init+0x3ab): undefined reference to \
`gameport_register_port'
drivers/sound/sounddrivers.o: In function `solo1_remove':
drivers/sound/sounddrivers.o(.text.init+0x4d7): undefined reference to \
`gameport_unregister_port'
make: *** [vmlinux] Error 1

Signature · 2 lines
 Sven Vermeulen            -    Key-ID CDBA2FDB 
 LUG: http://www.lugwv.be  -    http://www.keyserver.net
#1 lore raw
Quoted 7 lines · you

drivers/sound/sounddrivers.o: In function `solo1_probe':
drivers/sound/sounddrivers.o(.text.init+0x3ab): undefined reference to \
`gameport_register_port'
drivers/sound/sounddrivers.o: In function `solo1_remove':
drivers/sound/sounddrivers.o(.text.init+0x4d7): undefined reference to \
`gameport_unregister_port'
make: *** [vmlinux] Error 1

AFAIK, gameport_register_port and gameport_unregister_port are defined in <linux/gameport.h>, which is included at the beginning of esssolo1.c with the following code:

#if defined(CONFIG_INPUT_ANALOG) || defined(CONFIG_INPUT_ANALOG_MODULE)¶ #include <linux/gameport.h>¶
#else¶

Maybe one of those Values (CONFIG_INPUT_ANALOG{_MODULE, }) is not defined?

regards, alexx

Signature · 4 lines
|   .-.   | Alexander Griesser <[email protected]> -=- ICQ:63180135 |  .''`. |
|   /v\   |  http://www.tuxx-home.at -=- Linux Version 2.4.6  | : :' : |
| /(   )\ |  FAQ zu at.linux:  http://alfie.ist.org/LinuxFAQ  | `. `'  |
|  ^^ ^^  `---------------------------------------------------´   `-   |
#2 lore raw
In reply to Sven Vermeulen
Quoted 7 lines · Alexander Griesser

AFAIK, gameport_register_port and gameport_unregister_port are defined in <linux/gameport.h>, which is included at the beginning of esssolo1.c with the following code:

#if defined(CONFIG_INPUT_ANALOG) || defined(CONFIG_INPUT_ANALOG_MODULE)¶ #include <linux/gameport.h>¶
#else¶

No(t anymore):

[snip from esssolo1.c]
#include <asm/uaccess.h>
#include <asm/hardirq.h>
#include <linux/gameport.h>
[snip]

gameport.h is automatically included AFAIK

Signature · 2 lines
 Sven Vermeulen            -    Key-ID CDBA2FDB 
 LUG: http://www.lugwv.be  -    http://www.keyserver.net