Solved Failed updating virtualbox-ose

Today I started from updating system as usual by the command:
sudo portsnap fetch update
sudo portmaster -a


But update failed on the:
Code:
===>>> All >> virtualbox-ose-4.3.30 (10/10)

===>  Cleaning for virtualbox-ose-4.3.32
Requires 32-bit libraries installed under /usr/lib32.
Do: cd /usr/src; make build32 install32; /etc/rc.d/ldconfig restart
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/emulators/virtualbox-ose
*** Error code 1

So I went to the /usr/src and done make build32 to get at the end:
Code:
cc -O2 -pipe  -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src -std=gnu99  -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY  -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c /usr/src/lib/libmagic/../../contrib/file/src/encoding.c /usr/src/lib/libmagic/../../contrib/file/src/funcs.c /usr/src/lib/libmagic/../../contrib/file/src/magic.c /usr/src/lib/libmagic/../../contrib/file/src/print.c  -lz -legacy
/usr/bin/ld: cannot find -legacy
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[2]: stopped in /usr/src/lib/libmagic
*** Error code 1

Please guide me what should I do to fix this.

Code:
$ uname -a
FreeBSD AMDC727.local 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015  root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
 
Look into /etc/make.conf, if there are not necessary commands and rebuild world ( make buildworld).
(I don't think there are problems in src.conf - I guess you have not changed it).
 
You are missing lib32 from the base.

# cd /tmp
# fetch ftp://pub/FreeBSD/releases/amd64/amd64/10.2-RELEASE/lib32.txz
# tar --unlink -xvPjf /tmp/lib32.txz -C /


Then upgrade VirtualBox again.
 
I don't know how it happened but I had VBox installed and it was working.
After downloading and extracting lib32 as matoatlantis suggested I was able to make update.
Thanks
 
Back
Top