[FFmpeg-cvslog] r21148 - trunk/configure
Vitor Sessak
vitor1001
Tue Jan 12 03:55:55 CET 2010
M?ns Rullg?rd wrote:
> Michael Kostylev <michael.kostylev at gmail.com> writes:
>
>> On Mon Jan 11 18:42:16 2010
>> rbultje wrote:
>>
>>> Author: rbultje
>>> Date: Mon Jan 11 18:42:15 2010
>>> New Revision: 21148
>>>
>>> Log:
>>> Check for struct sockaddr_storage. Patch by Martin Storsj?
>>> <$firstname()$firstname,st>.
>>>
>>> Modified:
>>> trunk/configure
>>>
>>> Modified: trunk/configure
>>> ==============================================================================
>>> --- trunk/configure Mon Jan 11 18:32:40 2010 (r21147)
>>> +++ trunk/configure Mon Jan 11 18:42:15 2010 (r21148)
>>> @@ -990,6 +990,7 @@ HAVE_LIST="
>>> soundcard_h
>>> poll_h
>>> struct_addrinfo
>>> + struct_sockaddr_storage
>>> sys_mman_h
>>> sys_resource_h
>>> sys_select_h
>>> @@ -2451,6 +2452,7 @@ texi2html -version > /dev/null 2>&1 && e
>>> if enabled network; then
>>> check_type "sys/types.h sys/socket.h" socklen_t
>>> check_type netdb.h "struct addrinfo"
>>> + check_type sys/socket.h "struct sockaddr_storage"
>>> # Prefer arpa/inet.h over winsock2
>>> if check_header arpa/inet.h ; then
>>> check_func closesocket
>> The test fails on OpenBSD:
>> check_type sys/socket.h struct sockaddr_storage
>> check_cc
>> BEGIN /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c
>> 1
>> 2 #include <sys/socket.h>
>> 3 struct sockaddr_storage v;
>> END /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c
>> ccache gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -c
>> -o /usr/src/fate/build/tmp/ffconf.XXXXX...26485.o /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c
>> In file included from /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c:2:
>> /usr/include/sys/socket.h:152: error: syntax error before "u_int8_t"
>> /usr/include/sys/socket.h:170: error: syntax error before "u_int8_t"
>> /usr/include/sys/socket.h:173: error: syntax error before "u_int64_t"
>>
>> It seems sys/socket.h is completely unusable without sys/types.h,
>> but the latter is not included from the former.
>
> FUCKING IDIOTS
Maybe printing in the end of configure (so its very visible):
> YOUR SYSTEM IS NOT POSIX-COMPATIBLE AND IT NEED SOME UGLY WORKAROUNDS. PLEASE FLAME YOUR OS DEVS.
For every system that fails a posix configure check? Will give an extra
motivation for OS maintainers to fix these bugs...
-Vitor
More information about the ffmpeg-cvslog
mailing list