Urgent !! Help ~

Source: Internet
Author: User
Urgent !! Help ~ -- Linux general technology-Linux programming and kernel information. The following is a detailed description. # Include
Void test (struct sk_buff * pskb)
{
/* Process */
}

The newly installed Virtual Machine fedora8 cannot be compiled with gcc, And the fedora8 kernel is 2.6.23.

Compiled with: gcc-I/usr/src/kernel/include test. c
There are many errors. The Truncation part is as follows:
Usr/src/kernels/2.6.23.1-42. fc8-i686/include/linux/device. h: 521: Error: expected '=', ';', 'asm 'or' _ attribute _ 'before' driver _ attach'
/Usr/src/kernels/2.6.23.1-42. fc8-i686/include/linux/device. h: 522: Error: expected '=', ';', 'asm 'or' _ attribute _ 'before' device _ reprobe'
/Usr/src/kernels/2.6.23.1-42. fc8-i686/include/linux/device. h: 559: Error: expected '=', ';', 'asm 'or' _ attribute _ 'before' firmware _ register'
In file sorted ded from/usr/src/kernels/2.6.23.1-42. fc8-i686/include/linux/dma-mapping.h: 37,
From/usr/src/kernels/2.6.23.1-42. fc8-i686/include/linux/dmaengine. h: 29,
From/usr/src/kernels/2.6.23.1-42. fc8-i686/include/linux/skbuff. h: 29,
From test. c: 1:


Display of gcc-v is
Use built-in specs.
Goals: i386-redhat-linux
Configuration :.. /configure -- prefix =/usr -- mandir =/usr/share/man -- infodir =/usr/share/info -- enable-shared -- enable-threads = posix -- enable-checking = release -- with-system-zlib -- enable-_ cxa_atexit -- disable-libunwind-exceptions -- enable-versions ages = c, c ++, objc, obj-c ++, java, fortran, ada -- enable-java-awt = gtk -- disable-dssi -- enable-plugin -- with-java-home =/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre -- enable-libgcj-multifile -- enable-java-maintainer-mode -- with-ecj-jar =/usr/share/java/eclipse-ecj.jar -- with-cpu = generic -- host = i386-redhat-linux
Thread model: posix
Gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

Do you want to modify specs?
How to Use gcc to compile test. c?

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.