Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
i am new to linux..i have an error in makefile...actually i want to compile the usbcore module using "make"...but i didnt get the .ko file....the compilation process of "make" is given below...
sharief@sharief-desktop:~/Desktop/drivers/core$ make
make -C /lib/modules/2.6.26/build M=/home/sharief/Desktop/drivers/core modules
make[1]: Entering directory `/home/sharief/Desktop/kernelroot/linux2/linux-2.6.26'
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/home/sharief/Desktop/kernelroot/linux2/linux-2.6.26'
sharief@sharief-desktop:~/Desktop/drivers/core$
but when i compile the "helloworld" module its working ....its given below
sharief@sharief-desktop:~/Desktop/a$ make
make -C /lib/modules/2.6.26/build M=/home/sharief/Desktop/a modules
make[1]: Entering directory `/home/sharief/Desktop/kernelroot/linux2/linux-2.6.26'
CC [M] /home/sharief/Desktop/a/a.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/sharief/Desktop/a/a.mod.o
LD [M] /home/sharief/Desktop/a/a.ko
make[1]: Leaving directory `/home/sharief/Desktop/kernelroot/linux2/linux-2.6.26'
what is the problem in the first make file...how to clear that error....i am using Ubuntu 7.10...kernel version 2.6.26
sorry....i am new to linux....if i ask any stupid thing forgive me..
whether i have to use "obj-m := usbcore.o"
but i have obj-$(CONFIG_USB) += usbcore.o
is it different?if i have to put your code "obj-m := usbcore.o" in my makefile means where to put that in my makefile...kindly help me...Thanks for your patience reply
Can anyone tell me what is the error in this make :
sharief@sharief-desktop:~/Desktop/drivers/host$ make
make -C /lib/modules/2.6.26/build M=/home/sharief/Desktop/drivers/host modules
make[1]: Entering directory `/home/sharief/Desktop/kernelroot/linux2/linux-2.6.26'
CC [M] /home/sharief/Desktop/drivers/host/pci-quirks.o
CC [M] /home/sharief/Desktop/drivers/host/ehci-hcd.o
CC [M] /home/sharief/Desktop/drivers/host/isp116x-hcd.o
CC [M] /home/sharief/Desktop/drivers/host/ohci-hcd.o
CC [M] /home/sharief/Desktop/drivers/host/uhci-hcd.o
CC [M] /home/sharief/Desktop/drivers/host/sl811-hcd.o
CC [M] /home/sharief/Desktop/drivers/host/sl811_cs.o
CC [M] /home/sharief/Desktop/drivers/host/u132-hcd.o
/home/sharief/Desktop/drivers/host/u132-hcd.c:250:30: error: ../misc/usb_u132.h: No such file or directory
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘read_roothub_info’: /home/sharief/Desktop/drivers/host/u132-hcd.c:432: error: implicit declaration of function ‘usb_ftdi_elan_read_pcimem’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘u132_hcd_monitor_work’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:503: error: implicit declaration of function ‘ftdi_elan_gone_away’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘edset_input’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:587: error: implicit declaration of function ‘usb_ftdi_elan_edset_input’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘edset_setup’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:597: error: implicit declaration of function ‘usb_ftdi_elan_edset_setup’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘edset_single’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:607: error: implicit declaration of function ‘usb_ftdi_elan_edset_single’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘edset_output’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:617: error: implicit declaration of function ‘usb_ftdi_elan_edset_output’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘u132_hcd_configure_input_recv’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:957: error: implicit declaration of function ‘usb_ftdi_elan_edset_empty’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘u132_hcd_endp_work_scheduler’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:1378: error: implicit declaration of function ‘usb_ftdi_elan_edset_flush’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘u132_periodic_reinit’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:1545: error: implicit declaration of function ‘usb_ftdi_elan_write_pcimem’
/home/sharief/Desktop/drivers/host/u132-hcd.c: In function ‘u132_hcd_start’:
/home/sharief/Desktop/drivers/host/u132-hcd.c:1816: error: dereferencing pointer to incomplete type
/home/sharief/Desktop/drivers/host/u132-hcd.c:1818: error: dereferencing pointer to incomplete type
make[2]: *** [/home/sharief/Desktop/drivers/host/u132-hcd.o] Error 1
make[1]: *** [_module_/home/sharief/Desktop/drivers/host] Error 2
make[1]: Leaving directory `/home/sharief/Desktop/kernelroot/linux2/linux-2.6.26'
make: *** [all] Error 2
sharief@sharief-desktop:~/Desktop/drivers/host$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.