[vlc-devel] 3.0 git : relocation R_X86_64_PC32 against undefined hidden symbol

sean darcy seandarcy2 at gmail.com
Fri Jun 3 00:15:03 CEST 2016


I'm trying to build 3.0 from git with gcc-6.1.1.

.........
libtool: link: g++  -fPIC -DPIC -shared -nostdlib 
/usr/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../lib64/Scrt1.o 
/usr/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../lib64/crti.o 
/usr/lib/gcc/x86_64-redhat-linux/6.1.1/crtbeginS.o 
audio_filter/spatializer/.libs/allpass.o 
audio_filter/spatializer/.libs/comb.o 
audio_filter/spatializer/.libs/denormals.o 
audio_filter/spatializer/.libs/revmodel.o 
audio_filter/spatializer/.libs/spatializer.o   -Wl,-rpath 
-Wl,/home/video/rpmbuild/BUILD/vlc/src/.libs ../compat/.libs/libcompat.a 
../src/.libs/libvlccore.so -lidn -lpthread -ldl -ldbus-1 
-L/usr/lib/gcc/x86_64-redhat-linux/6.1.1 
-L/usr/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../lib64 
-L/lib/../lib64 -L/usr/lib/../lib64 
-L/usr/lib/gcc/x86_64-redhat-linux/6.1.1/../../.. -lstdc++ -lm -lc 
-lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/6.1.1/crtfastmath.o 
/usr/lib/gcc/x86_64-redhat-linux/6.1.1/crtendS.o 
/usr/lib/gcc/x86_64-redhat-linux/6.1.1/../../../../lib64/crtn.o 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Ofast -march=native 
-mtune=native -Wl,-z -Wl,relro   -Wl,-soname 
-Wl,libspatializer_plugin.so -Wl,-retain-symbols-file 
-Wl,.libs/libspatializer_plugin.exp -o .libs/libspatializer_plugin.so
/usr/lib64/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
(.text+0xe): undefined reference to `__init_array_start'
/usr/bin/ld: /usr/lib64/libc_nonshared.a(elf-init.oS): relocation 
R_X86_64_PC32 against undefined hidden symbol `__init_array_start' can 
not be used when making a shared object
/usr/bin/ld: final link failed: Bad value

CXXFLAGS include -fPIC. What else do I need to do ?

sean



More information about the vlc-devel mailing list