FernetMenta / vdr-plugin-vnsiserver

VDR plugin to handle XBMC clients.
GNU General Public License v2.0
17 stars 33 forks source link

[Linker issue] vdr 2.4.0 and vnsiserver 1.6.0 #111

Closed WizardPit closed 5 years ago

WizardPit commented 6 years ago

Hi,

I try to build the vnsiserver 1.6.0 against vdr 2.4.0 on an ubuntu-server 16.04 machine. Both are build from the source. At the end of the plugins I get following issue:

bitstream.o: relocation R_X86_64_PC32 against Symbol `_ZN10cBitstream9readBits1Ev' can not be used when making a shared object; recompile with -fPIC

The compile-option -fPIC is enabled and I get the same issue.

If I build vnsiserver-1.5.2 with the same vdr-2.4.0-source there is no issue. So the envirorment seems to be OK.

Can you help me?

FernetMenta commented 6 years ago

there is no difference between 1.5.2 and 1.6.0 in this regard. how do you build it?

WizardPit commented 6 years ago

I cross check this issue several times. Each time I clean up the source with make clean & distclean. So I can reproduce this issue.

The vnsisserver-src is underneath the PLUGIN-folder and I compile the whole vdr-2.4.0 with my several plugins.

FernetMenta commented 6 years ago

builds here without issues and I am not aware of similar reports. Does build output look like this?

g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -std=c++11 -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.6.0"' -I/home/xbmc/progs/src/vdr/include -o bitstream.o bitstream.c

did you try make clean-plugins?

WizardPit commented 5 years ago

Hi,

I install a fresh Ubuntu16.04 on similar hardware and try to reproduce the issue again on Kernel 4.4.0-134. --> vnsiserver 1.5.2 compile 'ok' --> vnsiserver 1.6.0 compile 'ok' --> vnsiserver 1.7.0 compile 'ok'

Source of vdr (2.4.0) and vnsiserver is the same (copy from one machine to the other) and additional the newest version. Dependencies are installed fresh! Difference is the Kernel (4.4.0-98 --> 4.4.0-134).

THX