/usr/bin/ld: ne peut trouver -lz #76

Closed
jyriok opened this Issue Nov 11, 2012 · 2 comments

3 participants

@jyriok

Hello,
when i try to compil for Ubuntu quantal/ vdr 1.7.28 :

Linux Server 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux

root@Server:/usr/local/src/vdr/PLUGINS/src/xvdr# make
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/config/config.o src/config/config.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/bitstream.o src/demuxer/bitstream.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer.o src/demuxer/demuxer.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_LATM.o src/demuxer/demuxer_LATM.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_AC3.o src/demuxer/demuxer_AC3.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_DTS.o src/demuxer/demuxer_DTS.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_h264.o src/demuxer/demuxer_h264.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_MPEGAudio.o src/demuxer/demuxer_MPEGAudio.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_MPEGVideo.o src/demuxer/demuxer_MPEGVideo.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_Subtitle.o src/demuxer/demuxer_Subtitle.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/demuxer/demuxer_Teletext.o src/demuxer/demuxer_Teletext.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/live/channelcache.o src/live/channelcache.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/live/livepatfilter.o src/live/livepatfilter.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/live/livequeue.o src/live/livequeue.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/live/livereceiver.o src/live/livereceiver.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/live/livestreamer.o src/live/livestreamer.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/net/msgpacket.o src/net/msgpacket.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/net/os-config.o src/net/os-config.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/net/socketlock.o src/net/socketlock.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/recordings/recordingscache.o src/recordings/recordingscache.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/recordings/recplayer.o src/recordings/recplayer.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/tools/hash.o src/tools/hash.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/xvdr/xvdr.o src/xvdr/xvdr.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/xvdr/xvdrclient.o src/xvdr/xvdrclient.c
In file included from /usr/include/string.h:642:0,
from ../../../include/vdr/config.h:16,
from ../../../include/vdr/channels.h:13,
from ../../../include/vdr/recording.h:14,
from src/xvdr/xvdrclient.c:33:
In function âchar* strncat(char, const char, size_t)â,
inlined from âbool cXVDRClient::processRECORDINGS_Rename()â at src/xvdr/xvdrclient.c:1647:41:
/usr/include/i386-linux-gnu/bits/string3.h:152:71: attention : call to char* __builtin___strncat_chk(char, const char, unsigned int, unsigned int) might overflow destination buffer [enabled by default]
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"xvdr"' -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DXVDR_VERSION='"0.9.6"' -I/usr/include/dvb-s2api-liplianin -I../../../include -I../../../../DVB/include -I../../.. -I./src -I. -o src/xvdr/xvdrserver.o src/xvdr/xvdrserver.c
g++ -g -Wall -Woverloaded-virtual -Wno-parentheses -O2 -fPIC -fPIC -shared src/config/config.o src/demuxer/bitstream.o src/demuxer/demuxer.o src/demuxer/demuxer_LATM.o src/demuxer/demuxer_AC3.o src/demuxer/demuxer_DTS.o src/demuxer/demuxer_h264.o src/demuxer/demuxer_MPEGAudio.o src/demuxer/demuxer_MPEGVideo.o src/demuxer/demuxer_Subtitle.o src/demuxer/demuxer_Teletext.o src/live/channelcache.o src/live/livepatfilter.o src/live/livequeue.o src/live/livereceiver.o src/live/livestreamer.o src/net/msgpacket.o src/net/os-config.o src/net/socketlock.o src/recordings/recordingscache.o src/recordings/recplayer.o src/tools/hash.o src/xvdr/xvdr.o src/xvdr/xvdrclient.o src/xvdr/xvdrserver.o -o libvdr-xvdr.so -lz
/usr/bin/ld: ne peut trouver -lz
collect2: erreur: ld a retourné 1 code d'état d'exécution
make: *** [libvdr-xvdr.so] Erreur 1

Thanks for your help :)

@herrnst

Try:

apt-get install zlib1g-dev

then recompile, should work then.

@jyriok

Good , that's works ! thanks ;)

@pipelka pipelka closed this Jan 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment