LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem while compiling the file (https://www.linuxquestions.org/questions/linux-newbie-8/problem-while-compiling-the-file-688285/)

shariefbe 12-04-2008 07:41 AM

problem while compiling the file
 
Hello...i am trying to compile the USBCORE module seperately...for that i tried to compile with the make seperately from desktop....but i am getting so many errors...i dont in which place its making error.....i will post the errors and makefile below..can anyone tell me what to do..

make -C /lib/modules/2.6.22.14/build M=/home/sharief/Desktop/drivers/core modules
make[1]: Entering directory `/usr/src/linux-2.6.22.14'
CC [M] /home/sharief/Desktop/drivers/core/usb.o
/home/sharief/Desktop/drivers/core/usb.c:20:19: error: errno.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:21:19: error: fcntl.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:22:20: error: unistd.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:23:19: error: stdio.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:24:20: error: memory.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:25:21: error: pthread.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:26:20: error: signal.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:27:20: error: stdlib.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:29:23: error: sys/types.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:30:22: error: sys/stat.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:31:23: error: sys/ioctl.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:32:22: error: sys/poll.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:37:32: error: linux/usb/gadgetfs.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:45:23: error: usbstring.h: No such file or directory
/home/sharief/Desktop/drivers/core/usb.c:212: error: array type has incomplete element type
/home/sharief/Desktop/drivers/core/usb.c:220: error: variable ‘strings’ has initializer but incomplete type
/home/sharief/Desktop/drivers/core/usb.c:221: error: unknown field ‘language’ specified in initializer
/home/sharief/Desktop/drivers/core/usb.c:221: warning: excess elements in struct initializer
/home/sharief/Desktop/drivers/core/usb.c:221: warning: (near initialization for ‘strings’)
/home/sharief/Desktop/drivers/core/usb.c:222: error: unknown field ‘strings’ specified in initializer
/home/sharief/Desktop/drivers/core/usb.c:222: warning: excess elements in struct initializer
/home/sharief/Desktop/drivers/core/usb.c:222: warning: (near initialization for ‘strings’)
/home/sharief/Desktop/drivers/core/usb.c:248: warning: function declaration isn’t a prototype
/home/sharief/Desktop/drivers/core/usb.c: In function ‘autoconfig’:
/home/sharief/Desktop/drivers/core/usb.c:249: error: storage size of ‘statb’ isn’t known
/home/sharief/Desktop/drivers/core/usb.c:252: warning: implicit declaration of function ‘stat’
/home/sharief/Desktop/drivers/core/usb.c:427: error: ‘ENODEV’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:427: error: (Each undeclared identifier is reported only once
/home/sharief/Desktop/drivers/core/usb.c:427: error: for each function it appears in.)
/home/sharief/Desktop/drivers/core/usb.c:249: warning: unused variable ‘statb’
/home/sharief/Desktop/drivers/core/usb.c: At top level:
/home/sharief/Desktop/drivers/core/usb.c:685: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ep0’
/home/sharief/Desktop/drivers/core/usb.c:687: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘source’
/home/sharief/Desktop/drivers/core/usb.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sink’
/home/sharief/Desktop/drivers/core/usb.c: In function ‘close_fd’:
/home/sharief/Desktop/drivers/core/usb.c:703: warning: implicit declaration of function ‘pthread_self’
/home/sharief/Desktop/drivers/core/usb.c:703: error: ‘ep0’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:704: warning: implicit declaration of function ‘ioctl’
/home/sharief/Desktop/drivers/core/usb.c:704: error: ‘GADGETFS_FIFO_STATUS’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:707: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:707: error: ‘ENODEV’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:707: error: ‘EOPNOTSUPP’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:708: warning: implicit declaration of function ‘perror’
/home/sharief/Desktop/drivers/core/usb.c:710: warning: implicit declaration of function ‘fprintf’
/home/sharief/Desktop/drivers/core/usb.c:710: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:713: error: ‘GADGETFS_FIFO_FLUSH’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:720: warning: implicit declaration of function ‘close’
/home/sharief/Desktop/drivers/core/usb.c: In function ‘ep_config’:
/home/sharief/Desktop/drivers/core/usb.c:738: warning: implicit declaration of function ‘open’
/home/sharief/Desktop/drivers/core/usb.c:738: error: ‘O_RDWR’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:740: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:741: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:742: warning: implicit declaration of function ‘strerror’
/home/sharief/Desktop/drivers/core/usb.c:748: warning: implicit declaration of function ‘memcpy’
/home/sharief/Desktop/drivers/core/usb.c:752: warning: implicit declaration of function ‘write’
/home/sharief/Desktop/drivers/core/usb.c: In function ‘fill_in_buf’:
/home/sharief/Desktop/drivers/core/usb.c:793: warning: implicit declaration of function ‘memset’
/home/sharief/Desktop/drivers/core/usb.c: In function ‘empty_out_buf’:
/home/sharief/Desktop/drivers/core/usb.c:833: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c: In function ‘simple_source_thread’:
/home/sharief/Desktop/drivers/core/usb.c:861: warning: implicit declaration of function ‘pthread_cleanup_push’
/home/sharief/Desktop/drivers/core/usb.c:868: warning: implicit declaration of function ‘pthread_testcancel’
/home/sharief/Desktop/drivers/core/usb.c:879: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:880: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:880: error: ‘ESHUTDOWN’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:882: warning: implicit declaration of function ‘fflush’
/home/sharief/Desktop/drivers/core/usb.c:882: error: ‘stdout’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:884: warning: implicit declaration of function ‘pthread_cleanup_pop’
/home/sharief/Desktop/drivers/core/usb.c: In function ‘simple_sink_thread’:
/home/sharief/Desktop/drivers/core/usb.c:907: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:908: warning: implicit declaration of function ‘read’
/home/sharief/Desktop/drivers/core/usb.c:916: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:917: error: ‘ESHUTDOWN’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:919: error: ‘stdout’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c: At top level:
/home/sharief/Desktop/drivers/core/usb.c:1187: warning: function declaration isn’t a prototype
/home/sharief/Desktop/drivers/core/usb.c: In function ‘start_io’:
/home/sharief/Desktop/drivers/core/usb.c:1188: error: ‘sigset_t’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1188: error: expected ‘;’ before ‘allsig’
/home/sharief/Desktop/drivers/core/usb.c:1213: warning: implicit declaration of function ‘sigfillset’
/home/sharief/Desktop/drivers/core/usb.c:1213: error: ‘allsig’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1214: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1214: warning: implicit declaration of function ‘pthread_sigmask’
/home/sharief/Desktop/drivers/core/usb.c:1214: error: ‘SIG_SETMASK’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1214: error: ‘oldsig’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1225: warning: implicit declaration of function ‘pthread_create’
/home/sharief/Desktop/drivers/core/usb.c:1225: error: ‘source’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1231: error: ‘sink’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1234: warning: implicit declaration of function ‘pthread_cancel’
/home/sharief/Desktop/drivers/core/usb.c:1235: error: ‘ep0’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1244: warning: implicit declaration of function ‘sched_yield’
/home/sharief/Desktop/drivers/core/usb.c:1250: warning: implicit declaration of function ‘exit’
/home/sharief/Desktop/drivers/core/usb.c: At top level:
/home/sharief/Desktop/drivers/core/usb.c:1255: warning: function declaration isn’t a prototype
/home/sharief/Desktop/drivers/core/usb.c: In function ‘stop_io’:
/home/sharief/Desktop/drivers/core/usb.c:1256: warning: implicit declaration of function ‘pthread_equal’
/home/sharief/Desktop/drivers/core/usb.c:1256: error: ‘source’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1256: error: ‘ep0’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1258: warning: implicit declaration of function ‘pthread_join’
/home/sharief/Desktop/drivers/core/usb.c:1263: error: ‘sink’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c: In function ‘init_device’:
/home/sharief/Desktop/drivers/core/usb.c:1307: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1312: error: ‘O_RDWR’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1315: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1339: error: ‘EIO’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c: In function ‘handle_control’:
/home/sharief/Desktop/drivers/core/usb.c:1355: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1376: error: invalid use of undefined type ‘struct usb_gadget_strings’
/home/sharief/Desktop/drivers/core/usb.c:1378: warning: implicit declaration of function ‘usb_gadget_get_string’
/home/sharief/Desktop/drivers/core/usb.c:1386: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1386: error: ‘EIDRM’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1461: error: ‘GADGETFS_CLEAR_HALT’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1498: error: ‘EL2HLT’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c: At top level:
/home/sharief/Desktop/drivers/core/usb.c:1502: error: expected declaration specifiers or ‘...’ before ‘siginfo_t’
/home/sharief/Desktop/drivers/core/usb.c: In function ‘signothing’:
/home/sharief/Desktop/drivers/core/usb.c:1506: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c: In function ‘ep0_thread’:
/home/sharief/Desktop/drivers/core/usb.c:1529: error: storage size of ‘action’ isn’t known
/home/sharief/Desktop/drivers/core/usb.c:1531: error: storage size of ‘ep0_poll’ isn’t known
/home/sharief/Desktop/drivers/core/usb.c:1533: error: ‘source’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1533: error: ‘sink’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1533: error: ‘ep0’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1541: error: ‘SA_SIGINFO’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1542: warning: implicit declaration of function ‘sigaction’
/home/sharief/Desktop/drivers/core/usb.c:1542: error: ‘SIGINT’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1546: error: ‘SIGQUIT’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1552: error: ‘POLLIN’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1552: error: ‘POLLOUT’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1552: error: ‘POLLHUP’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1558: error: array type has incomplete element type
/home/sharief/Desktop/drivers/core/usb.c:1568: warning: implicit declaration of function ‘poll’
/home/sharief/Desktop/drivers/core/usb.c:1570: warning: implicit declaration of function ‘time’
/home/sharief/Desktop/drivers/core/usb.c:1575: warning: implicit declaration of function ‘ctime_r’
/home/sharief/Desktop/drivers/core/usb.c:1576: warning: implicit declaration of function ‘printf’
/home/sharief/Desktop/drivers/core/usb.c:1587: error: ‘errno’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1587: error: ‘EAGAIN’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1588: warning: implicit declaration of function ‘sleep’
/home/sharief/Desktop/drivers/core/usb.c:1596: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1601: error: ‘GADGETFS_NOP’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1605: error: ‘GADGETFS_CONNECT’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1613: error: ‘GADGETFS_SETUP’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1617: error: ‘GADGETFS_DISCONNECT’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1624: error: ‘GADGETFS_SUSPEND’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1637: error: ‘stdout’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1558: warning: unused variable ‘event’
/home/sharief/Desktop/drivers/core/usb.c:1531: warning: unused variable ‘ep0_poll’
/home/sharief/Desktop/drivers/core/usb.c:1529: warning: unused variable ‘action’
/home/sharief/Desktop/drivers/core/usb.c: In function ‘main’:
/home/sharief/Desktop/drivers/core/usb.c:1658: warning: implicit declaration of function ‘srand’
/home/sharief/Desktop/drivers/core/usb.c:1660: warning: implicit declaration of function ‘rand’
/home/sharief/Desktop/drivers/core/usb.c:1668: warning: implicit declaration of function ‘getopt’
/home/sharief/Desktop/drivers/core/usb.c:1668: error: ‘EOF’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1700: warning: implicit declaration of function ‘atoi’
/home/sharief/Desktop/drivers/core/usb.c:1700: error: ‘optarg’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1703: warning: implicit declaration of function ‘strncpy’
/home/sharief/Desktop/drivers/core/usb.c:1709: error: ‘stderr’ undeclared (first use in this function)
/home/sharief/Desktop/drivers/core/usb.c:1717: warning: implicit declaration of function ‘chdir’
make[2]: *** [/home/sharief/Desktop/drivers/core/usb.o] Error 1
make[1]: *** [_module_/home/sharief/Desktop/drivers/core] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22.14'
make: *** [all] Error 2

MAKEFILE

root@sharief-desktop:/home/sharief/Desktop/drivers/core# cat Makefile
#
# Makefile for USB Core files and filesystem
#

usbcore-objs := usb.o hub.o hcd.o urb.o message.o driver.o \
config.o file.o buffer.o sysfs.o endpoint.o \
devio.o notify.o generic.o quirks.o

ifeq ($(CONFIG_PCI),y)
usbcore-objs += hcd-pci.o
endif

ifeq ($(CONFIG_USB_DEVICEFS),y)
usbcore-objs += inode.o devices.o
endif

obj-$(CONFIG_USB) += usbcore.o

ifeq ($(CONFIG_USB_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

webquinty 12-04-2008 07:44 AM

Have you got kernel include files????

/usr/src/linux-2.6.22.14/include
or
/usr/src/linux/include

Junior Hacker 12-04-2008 07:45 AM

You first need to install kernel headers matching the current running kernel to use for compiling. Then if you get more errors, post them again.

shariefbe 12-04-2008 07:55 AM

how to install that header file?please tell me i am new to linux

Junior Hacker 12-04-2008 08:02 AM

I don't know!
I know how to do it on my distributions, but there are tons of Linux distributions and many differ from one another. And I haven't got the time to sit here and tell you how to do it in every one of them.

sydney-troz 12-04-2008 09:06 AM

In other words, tell us which distro you're using ;)

knudfl 12-04-2008 09:06 AM

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
Please always tell, which "Linux" is used !
( Ubuntu, Fedora etc. etc. ) And version, please.

Missing package : 'linux-headers' or 'kernel-headers'
different names in different Linux's.
....

shariefbe 12-04-2008 12:57 PM

i am using UBUNTU 7.10 version....now currently i am running the kernel version number 2.6.22.14

TB0ne 12-04-2008 01:06 PM

Quote:

Originally Posted by shariefbe (Post 3364590)
i am using UBUNTU 7.10 version....now currently i am running the kernel version number 2.6.22.14

Try "sudo apt-get install linux-source". Found after a very brief Google search, on the Ubuntu forums. And out of curiosity, why are you needing to compile the usbcore stuff again? Should already be part of your install....

shariefbe 12-04-2008 01:52 PM

sorry i am using version 2.6.20...No i removed that modules in make menuconfig...This is for the college project....

shariefbe 12-04-2008 01:56 PM

After changing the version...Now i am getting different errors and warnings...
sharief@sharief-desktop:~/Desktop/linux2/sub/core$ make
make -C /lib/modules/2.6.20/build M=/home/sharief/Desktop/linux2/sub/core modules
make[1]: Entering directory `/home/sharief/Desktop/linux2/linux-2.6.20'
Building modules, stage 2.
MODPOST 0 modules
WARNING: vmlinux - Section mismatch: reference to .init.data:boot_params from .text between '_text' (at offset 0xc0100036) and 'startup_32_smp'
WARNING: vmlinux - Section mismatch: reference to .init.data:boot_params from .text between '_text' (at offset 0xc0100044) and 'startup_32_smp'
WARNING: vmlinux - Section mismatch: reference to .init.data:init_pg_tables_end from .text between '_text' (at offset 0xc01000a6) and 'startup_32_smp'
WARNING: vmlinux - Section mismatch: reference to .init.text:start_kernel from .text between 'is386' (at offset 0xc0100221) and 'check_x87'
WARNING: vmlinux - Section mismatch: reference to .init.text:smp_prepare_cpus from .text between 'init' (at offset 0xc0100437) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init from .text between 'init' (at offset 0xc010043c) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:spawn_ksoftirqd from .text between 'init' (at offset 0xc0100441) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:spawn_softlockup_task from .text between 'init' (at offset 0xc0100446) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:smp_cpus_done from .text between 'init' (at offset 0xc01004c2) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:sched_init_smp from .text between 'init' (at offset 0xc01004c7) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:cpuset_init_smp from .text between 'init' (at offset 0xc01004cc) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:usermodehelper_init from .text between 'init' (at offset 0xc01004d6) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:driver_init from .text between 'init' (at offset 0xc01004db) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:sysctl_init from .text between 'init' (at offset 0xc01004e1) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'init' (at offset 0xc0100503) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'init' (at offset 0xc010051c) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:prepare_namespace from .text between 'init' (at offset 0xc01006ff) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'init_gdt' (at offset 0xc010a05b) and 'cpu_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'init_gdt' (at offset 0xc010a071) and 'cpu_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:sysenter_setup from .text between 'identify_cpu' (at offset 0xc010a6cb) and 'display_cacheinfo'
WARNING: vmlinux - Section mismatch: reference to .init.text:mtrr_bp_init from .text between 'identify_cpu' (at offset 0xc010a6d5) and 'display_cacheinfo'
WARNING: vmlinux - Section mismatch: reference to .init.text:trap_init_f00f_bug from .text between 'init_intel' (at offset 0xc010c726) and 'cpuid4_cache_lookup'
WARNING: vmlinux - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset 0xc01706df) and 's_start'
WARNING: vmlinux - Section mismatch: reference to .init.text:eisa_root_register from .text between 'pci_eisa_init' (at offset 0xc0260c6b) and 'virtual_eisa_release'
WARNING: vmlinux - Section mismatch: reference to .init.text:eisa_root_register from .text between 'virtual_eisa_root_init' (at offset 0xc0260ccf) and 'cpufreq_unregister_driver'
WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'iret_exc' (at offset 0xc02e43f0) and '_etext'
WARNING: vmlinux - Section mismatch: reference to .init.text:start_kernel from .paravirtprobe between '__start_paravirtprobe' (at offset 0xc03adcf0) and '__stop_paravirtprobe'
make[1]: Leaving directory `/home/sharief/Desktop/linux2/linux-2.6.20'
sharief@sharief-desktop:~/Desktop/linux2/sub/core$

knudfl 12-05-2008 03:32 AM

No errors at all, just warnings,
almost normal.

With perfect code and a perfect compiler,
there might be no warnings.
....

shariefbe 12-05-2008 03:41 AM

but i didnt get .ko file.....nothing happened...i didnt get any module file after make this....

knudfl 12-07-2008 06:08 AM

Generally about module build
http://www.captain.at/programming/kernel-2.6/
Makefile
Quote:

obj-m := sum-module.o

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
And
http://www.linuxquestions.org/questi...5/#post3237765
see # 5, Compiling a module separately without
compiling entire kernel.

Suggest : put some of your text in code tags ... like the
above Makefile, makes it more readable, easier for you to get
an answer.

....I have seen your new post from today, good luck
....


All times are GMT -5. The time now is 05:34 PM.