Date: Thu, 16 Apr 2015 13:05:09 +0200 From: d.hromada@udk-berlin.de To: freebsd-questions@freebsd.org Subject: problem with libmagic component in make buildworld on 10.1-RELEASE-p9 Message-ID: <480aa427e0bbcde307f6bfe2fb8615b8.squirrel@www.oase.udk-berlin.de>
next in thread | raw e-mail | index | archive | help
Hello world, after upgrade from 9.3 to 10.1-RELEASE-p9 FreeBSD, I have problem with make buildworld which always gets stuck when building libmagic ===> lib/libmagic (obj,build-tools) cc -O2 -pipe -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src -fPIC -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: //lib/libc.so.7: invalid DSO for symbol `_end' definition //lib/libc.so.7: could not read symbols: Bad value When I try to build the libmagic directly with make in /usr/src/lib/libmagic , it gets stuck during the linking: building shared library libmagic.so.4 /usr/bin/ld: /usr/lib/libc.a(strtoull.o): relocation R_X86_64_32 against `__xlocale_C_locale' can not be used when making a shared object; recompile with -fPIC /usr/lib/libc.a: could not read symbols: Bad value I tried to put -fPIC into CFLAGS of libmagic's Makefile, but it didn't help ;( Thanks in advance for any idea that could help me to resolve this issue Cordially Daniel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?480aa427e0bbcde307f6bfe2fb8615b8.squirrel>