You are not logged in.

#1 2013-06-20 16:29:52

bluerider
Member
Registered: 2013-06-13
Posts: 25

Compiling virtualbox guest additions

I noticed there is no virutalbox guest additions support in ArchBSD yet. FreeBSD already has this, but we have to use their ports collection. Is there any policy on using FreeBSD ports?

With that in mind, how will ArchBSD combined the Arch ABS with the FreeBSD ports collection?

Offline

#2 2013-06-20 18:24:45

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

I have begun writing up the pkgbuild utilizing the files from the freebsd ports collection.

I am getting the error:

virtualbox-ose-additions-4.2.12_2 requires kernel sources 

I checked /usr/src and there's nothing in there; hence the source files are missing.

Offline

#3 2013-06-20 19:53:13

Amzo
Administrator
Registered: 2013-01-21
Posts: 144

Re: Compiling virtualbox guest additions

The kernel source is provided by freebsd-source packages:

Pacman -S freebsd-source
core/freebsd-source 20130502-3
    FreeBSD source matching FreeBSD kernel

Offline

#4 2013-06-20 20:56:28

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

Amzo wrote:

The kernel source is provided by freebsd-source packages:

Thanks a lot! Whoah, the installed source is large (779.25 mb).

Last edited by bluerider (2013-06-20 20:57:24)

Offline

#5 2013-06-20 21:02:10

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

Amzo wrote:

The kernel source is provided by freebsd-source package

Shouldn't freebsd-source be provided as part of the base-devel packages then?

Offline

#6 2013-06-20 22:25:40

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

I am getting two errors :

 "/usr/share/mk/bsd.compiler.mk", line 17: Unable to determine compiler type for cc 
 Stop in /usr/ports/ports-mgmt/dialog4ports
==> Options unchanged
requires 32-bit libraries installed under /usr/lib32
Do : cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32 

Offline

#7 2013-06-21 11:39:51

Amzo
Administrator
Registered: 2013-01-21
Posts: 144

Re: Compiling virtualbox guest additions

i think it was best to keep freebsd-source out of base devel and that problem you need to set the compiler.

Something like:

 export CC=gcc

Offline

#8 2013-06-21 12:18:55

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

Amzo wrote:

i think it was best to keep freebsd-source out of base devel

Can packages be built without freebsd-source?

Offline

#9 2013-06-21 13:55:39

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

New errors involving inability to find libpthread.so.2 and libc.so.6 . See this post for information regarding the error when someone tried to install javac on freebsd.

I also found there was no glibc package installed. I understand freebsd ships its own libc implementation. But should work be done towards porting glibc to freebsd?

Last edited by bluerider (2013-06-21 14:30:56)

Offline

#10 2013-06-21 16:18:04

Amzo
Administrator
Registered: 2013-01-21
Posts: 144

Re: Compiling virtualbox guest additions

glibc is already ported. debian kfreebsd uses it with the FreeBSD kernel. There is no need to add glibc to a PKGBUILD. However I recently set FreeBSD world to provide=(libc) so we can track packages which may need a rebuild during world upgrades.

libc.so.6 and libpthread are old packages, you should need them unless you're compiling an old package. If I'm right those were provided by FreeBSd 6.0

Also, only packages that need to build kernel modules needs the FreeBSD-source packages.

Offline

#11 2013-06-21 17:20:03

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

Amzo wrote:

libc.so.6 and libpthread are old packages, you should need them unless you're compiling an old package.

I get the error when I'm compiling Virtualbox-4.2.14

Last edited by bluerider (2013-06-21 17:22:10)

Offline

#12 2013-06-21 17:21:58

bluerider
Member
Registered: 2013-06-13
Posts: 25

Re: Compiling virtualbox guest additions

Amzo wrote:

glibc is already ported. debian kfreebsd uses it with the FreeBSD kernel.

I tried to manually compile glibc but I got a message that it was not available for my architecture (freebsd). Did the debian folks not submit the patches upstream?

Last edited by bluerider (2013-06-21 17:27:24)

Offline

Board footer

Powered by FluxBB