I try to compile nspluginwrapper-1.4.4 but always get this bug , which I am struggle to understand:
gcc -std=c99 -m32 -Llsb-build-i386 -Wl,--export-dynamic -Wl,--version-script,/usr/src/nspluginwrapper-1.4.4/src/npw-viewer.map -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-common.o npviewer-npw-malloc.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lX11 -lXt -ldl -lpthread -lsupc++
gcc -std=c99 -o libnoxshm-libnoxshm.o -c /usr/src/nspluginwrapper-1.4.4/src/libnoxshm.c -I. -I/usr/src/nspluginwrapper-1.4.4 -m32 -O2 -g -mtune=generic -I/usr/src/nspluginwrapper-1.4.4/lsb-build/headers -fPIC
gcc -std=c99 -shared -m32 -Llsb-build-i386 -o libnoxshm.so libnoxshm-libnoxshm.o -Wl,-soname,libnoxshm.so
lsb-build-i386/libc_nonshared.a(libc_nonshared.o): In function __libc_csu_fini': /usr/src/nspluginwrapper-1.4.4/lsb-build/stub_libs/libc_nonshared.c:94: undefined reference tofini_array_end'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: lsb-build-i386/libc_nonshared.a(libc_nonshared.o): relocation R_386_GOTOFF against undefined hidden symbol `fini_array_end' can not be used when making a shared object
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *\ [libnoxshm.so] Error 1
rm lsb-build-i386/libXext.o lsb-build-i386/libgcc_s.o lsb-build-i386/libc_main.o lsb-build-i386/libpthread.o lsb-build-i386/libdl.o lsb-build-i386/libgobject-2.0.o lsb-build-i386/libgdk-x11-2.0.o lsb-build-i386/libgtk-x11-2.0.o lsb-build-i386/libgthread-2.0.o lsb-build-i386/libX11.o lsb-build-i386/libXt.o lsb-build-i386/libglib-2.0.o lsb-build-i386/libc_nonshared.o
I use the vanilla tar file (I just disabled the stack protector with -fno-stack-protector)
I understand this has to do with the linker and shared libraries.
Hi there,
I try to compile nspluginwrapper-1.4.4 but always get this bug , which I am struggle to understand:
gcc -std=c99 -m32 -Llsb-build-i386 -Wl,--export-dynamic -Wl,--version-script,/usr/src/nspluginwrapper-1.4.4/src/npw-viewer.map -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-common.o npviewer-npw-malloc.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lX11 -lXt -ldl -lpthread -lsupc++ gcc -std=c99 -o libnoxshm-libnoxshm.o -c /usr/src/nspluginwrapper-1.4.4/src/libnoxshm.c -I. -I/usr/src/nspluginwrapper-1.4.4 -m32 -O2 -g -mtune=generic -I/usr/src/nspluginwrapper-1.4.4/lsb-build/headers -fPIC gcc -std=c99 -shared -m32 -Llsb-build-i386 -o libnoxshm.so libnoxshm-libnoxshm.o -Wl,-soname,libnoxshm.so lsb-build-i386/libc_nonshared.a(libc_nonshared.o): In function
__libc_csu_fini': /usr/src/nspluginwrapper-1.4.4/lsb-build/stub_libs/libc_nonshared.c:94: undefined reference to
fini_array_end' /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: lsb-build-i386/libc_nonshared.a(libc_nonshared.o): relocation R_386_GOTOFF against undefined hidden symbol `fini_array_end' can not be used when making a shared object /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make: *\ [libnoxshm.so] Error 1 rm lsb-build-i386/libXext.o lsb-build-i386/libgcc_s.o lsb-build-i386/libc_main.o lsb-build-i386/libpthread.o lsb-build-i386/libdl.o lsb-build-i386/libgobject-2.0.o lsb-build-i386/libgdk-x11-2.0.o lsb-build-i386/libgtk-x11-2.0.o lsb-build-i386/libgthread-2.0.o lsb-build-i386/libX11.o lsb-build-i386/libXt.o lsb-build-i386/libglib-2.0.o lsb-build-i386/libc_nonshared.oI use the vanilla tar file (I just disabled the stack protector with -fno-stack-protector) I understand this has to do with the linker and shared libraries.
Any idea?