Maybe need libsndio.a static build?
kuh3h3 opened this issue · 2 comments
i tried to build static ffmpeg on lubuntu 17.04 but failed.
Maybe need libsndio.a static build?
LD ffmpeg_g
LD ffprobe_g
libavfilter/libavfilter.a(vf_frei0r.o): In function load_path': /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavfilter/vf_frei0r.c:174: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libglib-2.0.a(libglib_2_0_la-gutils.o): In function
g_get_user_database_entry':
(.text+0x26d): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libglib-2.0.a(libglib_2_0_la-gutils.o): In function g_get_user_database_entry': (.text+0xdc): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libglib-2.0.a(libglib_2_0_la-gutils.o): In function
g_get_user_database_entry':
(.text+0x114): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libavformat/libavformat.a(rtpproto.o): In function rtp_resolve_host': /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavformat/rtpproto.c:138: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/kuh3h3/ffmpeg-static/target/lib/librtmp.a(rtmp.o): In function
add_addr_info.isra.3':
rtmp.c:(.text+0x62c): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libavdevice/libavdevice.a(sndio_dec.o): In function audio_read_packet': /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio_dec.c:68: undefined reference to
sio_read'
/home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio_dec.c:69: undefined reference to sio_eof' libavdevice/libavdevice.a(sndio_enc.o): In function
audio_write_trailer':
/home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio_enc.c:75: undefined reference to sio_write' libavdevice/libavdevice.a(sndio_enc.o): In function
audio_write_packet':
/home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio_enc.c:60: undefined reference to sio_write' /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio_enc.c:61: undefined reference to
sio_eof'
libavdevice/libavdevice.a(sndio.o): In function ff_sndio_close': /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:117: undefined reference to
sio_close'
libavdevice/libavdevice.a(sndio.o): In function ff_sndio_open': /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:43: undefined reference to
sio_open'
/home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:49: undefined reference to sio_initpar' /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:61: undefined reference to
sio_setpar'
/home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:61: undefined reference to sio_getpar' /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:92: undefined reference to
sio_onmove'
/home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:94: undefined reference to sio_start' /home/kuh3h3/ffmpeg-static/build/FFmpeg-n3.2.4/libavdevice/sndio.c:107: undefined reference to
sio_close'
collect2: error: ld returned 1 exit status
Makefile:131: 'ffmpeg_g' 타겟에 대한 명령이 실패했습니다
make: *** [ffmpeg_g] 오류 1
make: *** 끝나지 않은 작업을 기다리고 있습니다....
In my system , there is shared lib.
kuh3h3@reandro:~/ffmpeg-static/build$ ls -al /usr/lib//libsndio
-rw-r--r-- 1 root root 58832 11월 25 2016 /usr/lib/i386-linux-gnu/libsndio.so.6.1
lrwxrwxrwx 1 root root 15 11월 25 2016 /usr/lib/x86_64-linux-gnu/libsndio.so -> libsndio.so.6.1
-rw-r--r-- 1 root root 55520 11월 25 2016 /usr/lib/x86_64-linux-gnu/libsndio.so.6.1
I have the same issue even though libsndio-dev and libsndio6.1 are installed on my system.
Libraries:
~/ffmpeg/static_build$ ls /usr/lib/x86_64-linux-gnu/libsn
libsnappy.so.1 libsnappy.so.1.3.0 libsndfile.so.1 libsndfile.so.1.0.25 libsndio.so libsndio.so.6.1 libsnmp.so.30 libsnmp.so.30.0.3
Error:
/home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio_dec.c:68: undefined reference to sio_read' /home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio_dec.c:69: undefined reference to
sio_eof'
libavdevice/libavdevice.a(sndio_enc.o): In function audio_write_trailer': /home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio_enc.c:75: undefined reference to
sio_write'
libavdevice/libavdevice.a(sndio_enc.o): In function audio_write_packet': /home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio_enc.c:60: undefined reference to
sio_write'
/home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio_enc.c:61: undefined reference to sio_eof' libavdevice/libavdevice.a(sndio.o): In function
ff_sndio_close':
/home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:117: undefined reference to sio_close' libavdevice/libavdevice.a(sndio.o): In function
ff_sndio_open':
/home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:43: undefined reference to sio_open' /home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:49: undefined reference to
sio_initpar'
/home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:61: undefined reference to sio_setpar' /home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:61: undefined reference to
sio_getpar'
/home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:92: undefined reference to sio_onmove' /home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:94: undefined reference to
sio_start'
/home/wils/ffmpeg/static_build/build/FFmpeg-n3.2.4/libavdevice/sndio.c:107: undefined reference to `sio_close'