Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2014 22:45:52 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        freebsd-ports@freebsd.org
Cc:        vbox@FreeBSD.org
Subject:   cannot find -legacy error building /usr/lib32 with FreeBSD 10.1-RC3
Message-ID:  <20141023114552.GA96726@ozzmosis.com>

next in thread | raw e-mail | index | archive | help
My intention was to build virtualbox-ose-additions-4.3.18 from ports...

# uname -a
FreeBSD vbox-freebsd10 10.1-RC3 FreeBSD 10.1-RC3 #0 r273437: Tue Oct 21 23:55:15 UTC 2014
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

# cd /usr/ports/emulators/virtualbox-ose-additions
# make
Requires 32-bit libraries installed under /usr/lib32.
Do: cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32
*** Error code 1

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

# cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32
...
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

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

Stop.
make: stopped in /usr/src


According to this thread, 

http://lists.freebsd.org/pipermail/freebsd-current/2013-September/044253.html

"make build32" no longer "works"?

"make buildworld" seems a little excessive just for a single port.

Regards
Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141023114552.GA96726>