[FFmpeg-user] Compiling on Cygwin

Brendan Brewster brendan.brewster at gmail.com
Tue Apr 10 05:43:24 CEST 2012


On Mon, Apr 9, 2012 at 6:54 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Brendan Brewster <brendan.brewster <at> gmail.com> writes:
>
> > $ ./configure
>
> > network support           yes
>
> > CC      libavformat/avio.o
> > In file included from libavformat/avio.c:30:
> > libavformat/network.h:54:24: sys/socket.h: No such file or directory
> > libavformat/network.h:55:24: netinet/in.h: No such file or directory
> > libavformat/network.h:56:19: netdb.h: No such file or directory
>
> > libavformat/network.h:62:23: arpa/inet.h: No such file or directory
>
> This is not expected:
> If there is no header arpa/inet.h, configure should test winsock2 and
> disable network if it is not available.
> Please confirm that you are using unpatched git head and please post
> an excerpt of config.log, beginning with "check_header arpa/inet.h"
> until "check_func nanosleep".
>
> (Work-around is --disable-network)
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>

Hi Carl,

Thanks for your feedback. Correct, no patches were applied and was the code
revision noted in the path 20120408-git-N-39644-g5d6a40b at that point
yesterday (no longer current I should imagine as of today). I should note
that the code I was using was 'exported' via 'git archive' to that
directory after a 'git pull' to get the most recent version.

Here is the config.log excerpt as requested:

check_header arpa/inet.h
check_cpp
BEGIN /cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.5gegRvUB.c
    1   #include <arpa/inet.h>
    2   int x;
END /cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.5gegRvUB.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-U__STRICT_ANSI__ -std=c99 -fno-common -fomit-frame-pointer -E -o
/cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.Yr1BEv8j.o
/cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/f
fconf.5gegRvUB.c
check_func closesocket
check_ld cc
check_cc
BEGIN /cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.5gegRvUB.c
    1   extern int closesocket();
    2   int main(void){ closesocket(); }
END /cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.5gegRvUB.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-U__STRICT_ANSI__ -std=c99 -fno-common -fomit-frame-pointer -c -o
/cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.Yr1BEv8j.o
/cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/f
fconf.5gegRvUB.c
gcc -Wl,--as-needed -o
/cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.rMroXX9z.exe
/cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.Yr1BEv8j.o
/cygdrive/c/DOCUME~1/Br3wski3/LOCALS~1/Temp/ffconf.Yr1BEv8j.o:ffconf.5gegRvUB.c:(.text+0x2b):
undefined reference to `_closesocket'
collect2: ld returned 1 exit status
check_func nanosleep

Thanks,
Brendan


More information about the ffmpeg-user mailing list