WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: module compilation missing kernel files  (Read 2574 times)

Offline trembb22

  • Newbie
  • *
  • Posts: 28
module compilation missing kernel files
« on: October 20, 2009, 03:17:29 PM »
Hi, I miss the following include file:
asm/semaphore.h
which extension containe that file?
thanks for your help
Benoit

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: module compilation missing kernel files
« Reply #1 on: October 20, 2009, 04:39:53 PM »
They say now that asm/semaphore.h is a deprecated location as of 2.6.26: 

https://kerneltrap.org/mailarchive/linux-kernel/2008/2/28/1010394

The file is in the linux-headers-2.6.29.1 extension, it is linux/semaphore.h.  Some apps have been made to check for kernel version to determine whether to go with asm/semaphore.h or linux/semaphore.h.  Reference:

https://issues.asterisk.org/view.php?id=14016

So if you find the references to asm/semaphore.h in the source you are trying to build, it seems they can be changed to linux/semaphore.h to allow compile.  It couldn't hurt to try anyway.

Offline trembb22

  • Newbie
  • *
  • Posts: 28
Re: module compilation missing kernel files
« Reply #2 on: October 20, 2009, 07:00:42 PM »
thanks a lot, this information put me on the right track. I was having problem compiling modules from the sources supplyied by the advantech compagny. There sources wasn't up to date for more recent linux version like tinycore, they were also another bug that I fixed too, finnally by changing the include file from asm/semaphore.h  by /linux/semaphore.h, the modules compiled succesfully.
thanks a lot
Benoit