Thank you for your help. Please come in and have a look.

Source: Internet
Author: User
For help, please come in and have a look. Very anxious-Linux general technology-Linux programming and kernel information. The following is a detailed description. I'm compiling a driver module for a USB Nic. The kernel I use is 2.4.

The prompt "warning: deprecated use of label at end of compound statement" is displayed when the. o file is generated using make.
An error occurred when loading with the generated. o Module (as shown below)
Many unresolved symbol.
For example, unresolved symbol printk and so on ..

I checked a lot of information and said it was a compilation command problem. My makefile is as follows:
CC = gcc
CFLAGS =-DMODULE-d1_kernel _-I/usr/src/linux/include-Wall-Wstrict-prototypes-O6-c
MFLAGS =-DMODVERSIONS
SMPFLAGS =-d1_smp __


Thank you for your advice ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.