[PC-BSD Testing] PC-BSD have not good FreeBSD Soruces

nemysis nemysis at gmx.ch
Tue Jul 2 17:16:41 PDT 2013


Hello


This is downloaded with

svn co svn://svn.freebsd.org/base/releng/9.1 /usr/src

/usr/src-svn/README $FreeBSD: releng/9.1/README 215293 2010-11-14 11:32:56Z joel $

and with this FreeBSD Sources can install and not have below Problems.

But when i make linux.ko then can't boot get when boot

link_elf_ogj: Symbol if_net undefined
KLD file linux.ko: Could not finalize loading
KLD file nvidia.ko: Cannot find dependency "linux"
KLD linprocfs.ko: Cannot find dependency "linux"


kldload linux

link_elf_obj: Unsupported file type
kldload: can't load linux: Exec format error

This is because Sources are -p4 and PC-BSD Kernel is -p8 or newest -p10



I have used to download FreeBSD Sources with

PC-BSD Control Panel -> system manager -> Tasks -> Fetch System Source

This download all FreeBSD Sources for all FreeBSD version

ls /usr/src

.svn  2.0.5 2.1   2.2   3     4     5     6     7     8     9


This is  9 STABLE, and i use PC-BSD 9.1 Rolling Release

/usr/src/9/README $FreeBSD: stable/9/README 250458 2013-05-10 16:16:33Z luigi $


Have put in /etc/make.conf what me have said Juergen Lock

SRC_BASE=/usr/src/9
SYSDIR=${SRC_BASE}/sys

Have too symlinked

ls -l /sys
lrwxr-xr-x  1 root  wheel  14  3 Jul 01:23 /sys -> /usr/src/9/sys


When is try to build

A kernel module as linux.ko for Skype 4.0.0.8 that have video i get

cd /sys/modules/linux
root at nemysis4now:/sys/modules/linux/ > make clean
"/usr/src/9/sys/conf/kmod.mk", line 76: Could not find bsd.compiler.mk
"/usr/src/9/sys/conf/kmod.mk", line 112: Malformed conditional (${COMPILER_TYPE} != "clang")
"/usr/src/9/sys/conf/kmod.mk", line 116: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 18: Malformed conditional (${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 33: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 103: Malformed conditional (${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 109: if-less endif


nvidia-driver or any Port which need FreeBSD Sources

cd /usr/local/ports/local/work/x11/nvidia-driver ; make reinstall
===>  License NVIDIA accepted by the user
===>  Found saved configuration for nvidia-driver-319.17
===>   nvidia-driver-319.32 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by nvidia-driver-319.32 for building
===>  Extracting for nvidia-driver-319.32
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-319.32.tar.gz.
===>  Patching for nvidia-driver-319.32
===>   nvidia-driver-319.32 depends on file: /usr/local/libdata/pkgconfig/glproto.pc - found
===>   nvidia-driver-319.32 depends on file: /usr/local/libdata/pkgconfig/dri2proto.pc - found
===>   nvidia-driver-319.32 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found
===>   nvidia-driver-319.32 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-319.32
===>  Building for nvidia-driver-319.32
===> src (all)
"/usr/src/9/sys/conf/kmod.mk", line 76: Could not find bsd.compiler.mk
"/usr/src/9/sys/conf/kmod.mk", line 112: Malformed conditional (${COMPILER_TYPE} != "clang")
"/usr/src/9/sys/conf/kmod.mk", line 116: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 18: Malformed conditional (${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 33: if-less endif
"/usr/src/9/sys/conf/kern.mk", line 103: Malformed conditional (${COMPILER_TYPE} == "clang")
"/usr/src/9/sys/conf/kern.mk", line 109: if-less endif
make: fatal errors encountered -- cannot continue
*** [all] Error code 1

Stop in /var/tmp/ports/usr/local/ports/local/work/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-319.32.
*** [do-build] Error code 1

Stop in /usr/local/ports/local/work/x11/nvidia-driver.
*** [install] Error code 1

Stop in /usr/local/ports/local/work/x11/nvidia-driver.
*** [reinstall] Error code 1

Stop in /usr/local/ports/local/work/x11/nvidia-driver.


Please correct that from PC-BSD Control Panel download only newest FreeBSD Sources,
which are in sync with PC-BSD Kernel and install it normal in /usr/src.


And how from CLI that download PC-BSD Source which are in sync with PC-BSD Kernel?

Have changed in /etc/freebsd-update.conf

Components world kernel src/base src/sys world

but this not helps


freebsd-update fetch
Looking up fbsd-update.pcbsd.org mirrors... none found.
Fetching metadata signature for 9.1-RELEASE from fbsd-update.pcbsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files are affected by updates, but no changes have
been downloaded because the files have been modified locally:
/etc/freebsd-update.conf
/etc/make.conf
/etc/motd
/etc/sysctl.conf

No updates needed to update system to 9.1-RELEASE-p10.
root at nemysis4now:/home/dusko/ > freebsd-update install
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.



Mine uname -a in the moment

9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013

Please correct this.

Best regards,
nemysis


More information about the Testing mailing list