Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 01-18-2009, 01:58 PM   #1
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
dpkg-buildpackage: Errors Creating Kernel Module Package


I wrote a module switch script that seems to have been useful and now am trying to build a debian/ubuntu package from the Realtek r8168 driver source tarball to increase the utility and ease of administration for the workaround. (Point: deb packages are better than shell scripts.)

When I try:
tar r8168-8.010.00.tar.bz2 
cd r8168-8.010.00
dh_make -e -f ../r8168-8.010.00.tar.bz2
dpkg-buildpackage -rfakeroot
dpkg-buildpackage fails due to this:
make[2]: Entering directory `/home/jameson/r8168-8.010.00/src'
/usr/bin/make -C /lib/modules/2.6.27-9-generic/build SUBDIRS=/src modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
mkdir: cannot create directory `/src': Permission denied
scripts/ /src/Makefile: No such file or directory
make[4]: *** No rule to make target `/src/Makefile'.  Stop.
SUBDIRS=/src is in the make action for the modules target in the tarball's ./src/Makefile :42. As you can see, the result is that the kernel header Makefiles are incorrectly referenced. I tried changing and omitting this variable, but to no avail.

What should I do?

Thank you!

Last edited by jhwilliams; 01-18-2009 at 02:01 PM.


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
dpkg-buildpackage: passing ./configure options? neocookie Debian 3 08-27-2008 09:20 PM
what's this dpkg-buildpackage error mean? lugoteehalt Debian 5 08-06-2007 01:02 PM
dpkg-buildpackage problem... wrongman Ubuntu 2 11-03-2006 03:10 AM
problem with dpkg-buildpackage cottonmouth Debian 0 12-12-2004 02:34 PM
Where can I learn about dpkg-buildpackage? Durham Debian 1 02-29-2004 11:12 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:29 AM.

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