compile issues

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
charlie0440 Offline
Fan
Posts: 389
Joined: Dec 2011
Reputation: 5
Post: #1
Hi fernet,

Having some issues compiling the vdr-plugin-vnsiser. I tried master and test branches same error on both. Its the same issue as posted here > http://forum.xbmc.org/showthread.php?tid...pid1713561

sudo make VDRDIR=/usr/include/vdr LIBDIR=/usr/local/lib/vdr/

Code:
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o vnsi.o vnsi.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o bitstream.o bitstream.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o vnsiclient.o vnsiclient.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o config.o config.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o cxsocket.o cxsocket.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser.o parser.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_AAC.o parser_AAC.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_AC3.o parser_AC3.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_DTS.o parser_DTS.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_h264.o parser_h264.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_MPEGAudio.o parser_MPEGAudio.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_MPEGVideo.o parser_MPEGVideo.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_Subtitle.o parser_Subtitle.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o parser_Teletext.o parser_Teletext.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o streamer.o streamer.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o recplayer.o recplayer.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o requestpacket.o requestpacket.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o responsepacket.o responsepacket.c
responsepacket.c: In member function ‘uint8_t* cResponsePacket::reserve(uint32_t)’:
responsepacket.c:216:33: warning: converting ‘false’ to pointer type ‘uint8_t* {aka unsigned char*}’ [-Wconversion-null]
   if (!checkExtend(len)) return false;
                                 ^
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o vnsiserver.o vnsiserver.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o hash.o hash.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o recordingscache.o recordingscache.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o setup.o setup.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o vnsiosd.o vnsiosd.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o demuxer.o demuxer.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o videobuffer.o videobuffer.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o videoinput.o videoinput.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o channelfilter.o channelfilter.c
g++  -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"vnsiserver"' -DVNSI_SERVER_VERSION='"1.1.0"'  -o status.o status.c
g++   -shared vnsi.o bitstream.o vnsiclient.o config.o cxsocket.o parser.o parser_AAC.o parser_AC3.o parser_DTS.o parser_h264.o parser_MPEGAudio.o parser_MPEGVideo.o parser_Subtitle.o parser_Teletext.o streamer.o recplayer.o requestpacket.o responsepacket.o vnsiserver.o hash.o recordingscache.o setup.o vnsiosd.o demuxer.o videobuffer.o videoinput.o channelfilter.o status.o -o libvdr-vnsiserver.so
/usr/bin/ld: vnsi.o: relocation R_X86_64_32S against `_ZTV17cPluginVNSIServer' can not be used when making a shared object; recompile with -fPIC
vnsi.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [libvdr-vnsiserver.so] Error 1

If I replace line 216 of responsepacket.c
if (!checkExtend(len)) return false;

to
if (!checkExtend(len)) return 0;

it gets rid of the first warning. No idea it that is correct though, the other one I have no clue

Guide to building an all in one Ubuntu Server - TV(vdr),File,Music,Web

Server Fractal Designs Define XL, Asus P5QL/EPU, Dual Core E5200, 4gb, L4M-Twin S2 v6.2, Supermicro AOC-USAS-L8I, 1*SSD & 13*HDD drives (24TB total) - Ubuntu Server
XBMC 1 ASRock Z77E-ITX, G850, 8GB RAM, SSD, BD - Ubuntu / OpenElec frodo
XBMC 2 Revo 3700 - OpenElec frodo
XBMC 3 Raspb Pi
(This post was last modified: 2014-07-19 23:49 by charlie0440.)
find quote
charlie0440 Offline
Fan
Posts: 389
Joined: Dec 2011
Reputation: 5
Post: #2
ok realised I should be just doing "make" and it seems to compile fine.

Guide to building an all in one Ubuntu Server - TV(vdr),File,Music,Web

Server Fractal Designs Define XL, Asus P5QL/EPU, Dual Core E5200, 4gb, L4M-Twin S2 v6.2, Supermicro AOC-USAS-L8I, 1*SSD & 13*HDD drives (24TB total) - Ubuntu Server
XBMC 1 ASRock Z77E-ITX, G850, 8GB RAM, SSD, BD - Ubuntu / OpenElec frodo
XBMC 2 Revo 3700 - OpenElec frodo
XBMC 3 Raspb Pi
find quote