LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-20-2012, 06:59 AM   #1
shayno90
Member
 
Registered: Oct 2009
Distribution: Debian Lenny 2.6.26 Ubuntu Lucid Lynx 10.04 Windows 7
Posts: 187
Blog Entries: 2

Rep: Reputation: 21
PortBunny install issue related to Linux headers


Ran into an installation issue during the 'make' stage of the installation:

root@user:/home/user/PortBunny-1.1.1# make
make -C /lib/modules/2.6.32-35-generic/build M=/home/user/PortBunny-1.1.1 modules
make[1]: leaving directory `/usr/src/linux-headers-2.6.32-35-generic'
CC [M] /home/user/PortBunny-1.1.1/scanner_module.o
In file included from /home/user/PortBunny-1.1.1/scanner_module.c:76:
/home/user/PortBunny-1.1.1/scan_job_manager.h:5:27: error: asm/semaphore.h: No such file or directory
make[2]: *** [/home/user/PortBunny-1.1.1/scanner_module.o] Error 1
make[1]: *** [_module_/home/user/PortBunny-1.1.1] Error 2
make[1]: leaving directory `/usr/src/linux-headers-2.6.32-35-generic'
make: *** [all] Error 2

Applied the patch below but no change and the same result as above:

user@user:~$ patch -Np1 -d PortBunny-1.1.1 < portbunny-noui.diff
patching file UI/share/portbunny/PBunnyOptionParser.py
patching file UI/share/portbunny/UILogic.py
patching file UI/share/portbunny/UserEventHandler.py

How can I correct the Linux headers or Portbunny package in order to compile and install it correctly?
 
Old 02-21-2012, 07:48 PM   #2
liberalchrist
Member
 
Registered: Jun 2011
Location: Clover, SC
Distribution: Slackware Current & FreeBSD
Posts: 122

Rep: Reputation: 26
Look in /usr/src/linux-headers-2.6.32-35-generic/include and see if the directory "asm" exists. In later kernels "semaphore.h" was moved to .../include/linux instead of asm. You might get it to compile by creating the directory and adding a symlink, but I'm guessing that there is PortBunny patch somewhere for this problem.
 
Old 02-21-2012, 08:05 PM   #3
liberalchrist
Member
 
Registered: Jun 2011
Location: Clover, SC
Distribution: Slackware Current & FreeBSD
Posts: 122

Rep: Reputation: 26
I checked the PortBunny website. Version 1.1.1 still has this problem with newer kernels. The development version has been updated to look in /include/linux instead of /include/asm.
 
Old 02-22-2012, 04:36 AM   #4
shayno90
Member
 
Registered: Oct 2009
Distribution: Debian Lenny 2.6.26 Ubuntu Lucid Lynx 10.04 Windows 7
Posts: 187
Blog Entries: 2

Original Poster
Rep: Reputation: 21
Yes, the file semaphore.h is not in the appropriate install directory as you said, it is located in /usr/src/linux-headers-2.6.32-35-generic/include/linux instead of /usr/src/linux-headers-2.6.32-35-generic/include/asm-generic.

I managed to compile and install this version of Portbunny050109:

http://portbunny.recurity.com/tarbal...109-dev.tar.gz

I had to install 2 patches to properly compile and install it:

http://git.server-speed.net/aur/tree...7610e4c1c85946

The patches that need to be added are:

1. installpath.patch
2. timespec.patch

I will try at some stage to compile and install Portbunny-1.1.1 by creating the directory and adding a symlink as you described.

How do you create the symlink?

Last edited by shayno90; 02-22-2012 at 05:08 AM.
 
Old 02-22-2012, 07:26 PM   #5
liberalchrist
Member
 
Registered: Jun 2011
Location: Clover, SC
Distribution: Slackware Current & FreeBSD
Posts: 122

Rep: Reputation: 26
If you have a working, more up-to-date version of PortBunny, you really shouldn't want to build 1.1.1. There is considerable likelihood that it won't work anyway. As I was looking through the source code, I noticed that there were several things it was looking for that it wouldn't be able to find. The kernel headers are intended to be kept in pristine, unmodified condition. This is so everything that wants to compile against them won't have trouble finding them.

That said, the command would be "ln -s linux asm". You would run that in the include directory inside the source code where you were looking before. Again, probably a bad idea. This is why they make patches instead.
 
  


Reply

Tags
headers, install, linux, make, port


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux headers install Dukerudy Linux - Newbie 4 11-30-2009 03:34 PM
How to install linux-headers-2.6.23.1-42.fc8 ? renikuttan Linux - Newbie 1 01-05-2009 07:32 AM
install linux headers driftboy Linux - Newbie 2 03-15-2008 12:52 PM
can't install linux-headers-2.6.21 baghdadi13 Linux - Newbie 3 09-06-2007 04:34 AM
Do I need to install linux-headers? mikieboy Debian 21 08-17-2007 03:09 PM


All times are GMT -5. The time now is 10:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration