作者:爱的话心情_196 | 来源:互联网 | 2023-05-18 17:51
usrlibgcci486-linux-gnu4.3.3..liblibavformat.a(udp.o):Infunction`udp_ipv6_resol
/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libavformat.a(udp.o): In function `udp_ipv6_resolve_host':
/home/riverdream/桌面/ffmpeg/libavformat/udp.c:160: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libavformat.a(os_support.o): In function `resolve_host':
/home/riverdream/桌面/ffmpeg/libavformat/os_support.c:69: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
这个警告是什么,怎么解决?谢谢各位大牛!
15 个解决方案
Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
字面意思:
在静态链接的应用程序中使用“gethostbyname” 运行时需要
glibc版本的共享库来链接
别的不会了
- -
你的这个工程好像是使用了 静态库链接了 libc.so
警告的意思是即使使用了静态库链接,但也会依赖库 libc.so
大概是这个意思吧
杂的个问题阿,为什么没有人理我?这两个警告不处理存在危险吗?
http://www.google.com/search?hl=en&source=hp&q=Using+%27gethostbyname%27+in+statically+linked+applications+requires+at+runtime+the+shared+libraries+from+the+glibc+version+used+for+linking&aq=f&oq=&aqi=
大概意思是,你引用的静态库并没有静态连接 getaddrinfo 这个函数,
运行时,会要求 libc.so 这个库。
不知道是否可以在你的连接命令行中加入 libc 的静态库。