Attempting to Build a Module in RHEL Returns Error: "FATAL: modpost: GPL-incompatible module <module>.ko uses GPL-only symbol '<symbol_name>'"

Solution Verified - Updated -

Issue

  • Attempting to build a custom module against a RHEL kernel fails with the error:
"FATAL: modpost: GPL-incompatible module <module>.ko uses GPL-only symbol '<symbol_name>'"

Environment

  • Red Hat Enterprise Linux, version 4
  • Red Hat Enterprise Linux, version 5
  • Red Hat Enterprise Linux, version 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.