c218
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
On FreeBSD-9.0-CURRENT while trying ndisgen the following
files got created: bus_if.h device_if.h windrv.h and windrv.o and ndisgen echoed an error Code:
Generating Makefile... done Building kernel module.. "/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree" build failed. Exiting. I tried compiling source for a driver and I again get the above error. Just wanted to know if this error is because 9.0 kernel is still under development or am I missing th source tree ? is there a pk_add package to install the CURRENT 9.0 source Tree ? Last edited by DutchDaemon; March 6th, 2010 at 17:58. Reason: use [code] tags! |
|
#2
|
|||
|
|||
|
You are missing source tree. It is always available on disc1 iso, at least.
Also you can fetch source via csup, cvs, svn and git. |
|
#3
|
|||
|
|||
|
1] The size of disc1.iso is < dvd1 and memstick.
Does the source mean everything inside /usr/src or is there more to it ? 2] The bsd.kmod.mk says : Code:
.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
!exists(${SYSDIR}/conf/kmod.mk)
.error "can't find kernel source tree"
.endif
3] Also, Interesting is http://lists.freebsd.org/pipermail/f...ch/009031.html which relates to our problem dated exactly one year back. Can I use "csup, cvs, svn and git", get the source and set the SYSDIR path manually to force bsd.kmod.mk recognise the path ? |
|
#4
|
|||
|
|||
|
You are free to download whatever you want, just do not download live one because it definetely doesent have source.
You do not need to set SYSDIR at all, just mount cd iso extract source - or use sysinstall to installsource. With mount_nullfs you can point /usr/src to whatever you want. |
| The Following User Says Thank You to richardpl For This Useful Post: | ||
quakerdoomer (March 8th, 2010) | ||
|
#5
|
|||
|
|||
|
Thanks. I reinstalled from the img file and this time it extracted the src properly. 9.0-CURRENT is now supporting compiling of sources now, thanks to the presence of source, although my VirtualBOX 3.1.2 is still broken, but that's different tale altogether. Thanks richardpl.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to download complete FreeBSD kernel source with SVN? | nickcheng | FreeBSD Development | 7 | May 25th, 2010 07:24 |
| FreeBSD 8.0 built from source | Seeker | Installing & Upgrading | 4 | February 24th, 2010 12:25 |
| Which one is better FreeBSD AMD 64 or i386 | mfaridi | Installing & Upgrading | 13 | February 8th, 2010 22:44 |
| Open Source Mail Server Solution for FreeBSD: iRedMail | ZhangHuangbin | Web & Network Services | 2 | December 23rd, 2009 19:32 |
| [Solved] Source Upgrade to FreeBSD-8 Killed My ZFS Mounts | Weaseal | Installing & Upgrading | 5 | December 1st, 2009 02:20 |