rvm | 14 Aug 23:30 2008
Picon

Error compiling r27465

I've got this error compiling svn r27465 in mingw:

In file included from os_support.c:37:
network.h:33:24: sys/socket.h: No such file or directory
network.h:34:24: netinet/in.h: No such file or directory
network.h:35:19: netdb.h: No such file or directory
os_support.c: In function `inet_aton':
os_support.c:52: error: dereferencing pointer to incomplete type
os_support.c: In function `resolve_host':
os_support.c:64: warning: implicit declaration of function `gethostbyname'
os_support.c:64: warning: assignment makes pointer from integer without a cast
os_support.c:67: error: dereferencing pointer to incomplete type
os_support.c:67: error: invalid application of `sizeof' to incomplete
type `in_a
                ddr'
os_support.c: In function `ff_socket_nonblock':
os_support.c:78: warning: implicit declaration of function `fcntl'
os_support.c:78: error: `F_SETFL' undeclared (first use in this function)
os_support.c:78: error: (Each undeclared identifier is reported only once
os_support.c:78: error: for each function it appears in.)
os_support.c:78: error: `F_GETFL' undeclared (first use in this function)
os_support.c:78: error: `O_NONBLOCK' undeclared (first use in this function)
os_support.c:78: warning: redundant redeclaration of 'fcntl'
os_support.c:78: warning: previous implicit declaration of 'fcntl' was here
make[1]: *** [os_support.o] Error 1

--

-- 
RVM
rvm | 26 Aug 13:38 2008
Picon

Re: Error compiling r27465

The same problem compiling r27482:

gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_ISOC9X_SOURCE -I.. -I.. -Wdisabled-optimization
-Wdeclaration-after-statement -std=gnu99 -I. -Wall -Wno-switch
-Wpointer-arith -Wredundant-decls -O4 -march=i486 -mtune=i686 -pipe
-ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/home/ricardo/directx/
-I/home/ricardo/live/ -Ij:/mingw/include/freetype2 -Ij:/mingw/include
-Ij:/mingw/include   -c -o os_support.o os_support.c
In file included from ../libavutil/common.h:40,
                 from ../libavutil/avutil.h:56
                 from ../libavcodec/avcodec.h:30,
                 from avformat.h:45,
                 from os_support.c:27:
j:/mingw/include/errno.h:91: warning: redundant redeclaration of '_errno'
j:/mingw/include/stdlib.h:137: warning: previous declaration of
'_errno' was here
In file included from j:/mingw/include/unistd.h:10,
                 from os_support.c:28:
j:/mingw/include/io.h:242: warning: redundant redeclaration of 'remove'
j:/mingw/include/stdio.h:174: warning: previous declaration of 'remove' was here
j:/mingw/include/io.h:243: warning: redundant redeclaration of 'rename'
j:/mingw/include/stdio.h:175: warning: previous declaration of 'rename' was here
j:/mingw/include/io.h:252: warning: redundant redeclaration of '_unlink'
j:/mingw/include/stdio.h:182: warning: previous declaration of
'_unlink' was here
j:/mingw/include/io.h:301: warning: redundant redeclaration of 'unlink'
j:/mingw/include/stdio.h:187: warning: previous declaration of 'unlink' was here
In file included from os_support.c:31:
(Continue reading)


Gmane