This is the config line used:- PKG_CONFIG_PATH=3D"$HOME/builds/lib/pkgconfig" LDFLAGS=3D"-L$HOME/builds/lib" CFLAGS=3D"-I$HOME/builds/include" ./configure --prefix=3D$HOME/builds --host=3Di686-w64-mingw32 --disable-stack-protector @xubuntu:~/builds/bin$ wine ./opusenc -V opusenc opus-tools 0.1.5 (using libopus 1.0.1) Copyright (C) 2008-2012 Xiph.Org Foundation When I try to cross-compile opus-tools from git it still gives the error:- "src/opusrtp.c:53:24: fatal error: sys/socket.h: No such file or directory" Is there something wrong with the code in opus-tools git? Successful build with release code:- ************************************** Type "make=3B make install" to compile and install Type "make check" to run the test suite make=A0 all-recursive make[1]: Entering directory `/home/user/source/opus-tools-0.1.5' Making all in . make[2]: Entering directory `/home/user/source/opus-tools-0.1.5' depbase=3D`echo src/opus_header.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opus_header.o -MD -MP -MF $depbase.Tpo -c -o src/opus_header.o src/opus_header.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo src/opusenc.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusenc.o -MD -MP -MF $depbase.Tpo -c -o src/opusenc.o src/opusenc.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo src/resample.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/resample.o -MD -MP -MF $depbase.Tpo -c -o src/resample.o src/resample.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po src/resample.c: In function =91update_filter=92: src/resample.c:607:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c:688:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c:696:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c:699:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c:706:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c: In function =91opustools_resampler_process_float=92: src/resample.c:872:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c:875:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c: In function =91opustools_resampler_process_int=92: src/resample.c:928:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c:935:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/resample.c:945:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] depbase=3D`echo src/audio-in.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/audio-in.o -MD -MP -MF $depbase.Tpo -c -o src/audio-in.o src/audio-in.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo src/diag_range.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/diag_range.o -MD -MP -MF $depbase.Tpo -c -o src/diag_range.o src/diag_range.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo src/lpc.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/lpc.o -MD -MP -MF $depbase.Tpo -c -o src/lpc.o src/lpc.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo win32/unicode_support.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT win32/unicode_support.o -MD -MP -MF $depbase.Tpo -c -o win32/unicode_support.o win32/unicode_support.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po i686-w64-mingw32-gcc -std=3Dgnu99 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes=A0 -L/home/user/builds/lib=A0 -o opusenc.exe src/opus_header.o src/opusenc.o src/resample.o src/audio-in.o src/diag_range.o src/lpc.o win32/unicode_support.o -L/home/user/builds/lib -logg=A0=A0 -L/home/user/builds/lib -lopus=A0=A0 -lm -lwinmm=20 depbase=3D`echo src/wav_io.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/wav_io.o -MD -MP -MF $depbase.Tpo -c -o src/wav_io.o src/wav_io.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo src/wave_out.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/wave_out.o -MD -MP -MF $depbase.Tpo -c -o src/wave_out.o src/wave_out.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo src/opusdec.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusdec.o -MD -MP -MF $depbase.Tpo -c -o src/opusdec.o src/opusdec.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po i686-w64-mingw32-gcc -std=3Dgnu99 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes=A0 -L/home/user/builds/lib=A0 -o opusdec.exe src/opus_header.o src/wav_io.o src/wave_out.o src/opusdec.o src/resample.o src/diag_range.o win32/unicode_support.o -L/home/user/builds/lib -logg=A0=A0 -L/home/user/builds/lib -lopus=A0=A0 -lm -lwinmm=20 depbase=3D`echo src/opusinfo.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusinfo.o -MD -MP -MF $depbase.Tpo -c -o src/opusinfo.o src/opusinfo.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po depbase=3D`echo src/info_opus.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/info_opus.o -MD -MP -MF $depbase.Tpo -c -o src/info_opus.o src/info_opus.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po i686-w64-mingw32-gcc -std=3Dgnu99 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes=A0 -L/home/user/builds/lib=A0 -o opusinfo.exe src/opus_header.o src/opusinfo.o src/info_opus.o win32/unicode_support.o -L/home/user/builds/lib -logg=A0=A0 -lwinmm=20 depbase=3D`echo src/opusrtp.o | sed 's|[^/]*$|.deps/&|=3Bs|\.o$||'`=3B\ =A0=A0=A0 i686-w64-mingw32-gcc -std=3Dgnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32=A0=A0 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusrtp.o -MD -MP -MF $depbase.Tpo -c -o src/opusrtp.o src/opusrtp.c &&\ =A0=A0=A0 mv -f $depbase.Tpo $depbase.Po i686-w64-mingw32-gcc -std=3Dgnu99 -I/home/user/builds/include=A0=A0 -I/home/user/builds/include/opus=A0=A0 -DOPUSTOOLS -D_FORTIFY_SOURCE=3D2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT=3D -DRANDOM_PREFIX=3Dopustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include=A0 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes=A0 -L/home/user/builds/lib=A0 -o opusrtp.exe src/opusrtp.o -L/home/user/builds/lib -logg=A0=A0 -lwinmm=20 make[2]: Leaving directory `/home/user/source/opus-tools-0.1.5' make[1]: Leaving directory `/home/user/source/opus-tools-0.1.5' Making install in . make[1]: Entering directory `/home/user/source/opus-tools-0.1.5' make[2]: Entering directory `/home/user/source/opus-tools-0.1.5' test -z "/home/user/builds/bin" || /bin/mkdir -p "/home/user/builds/bin" =A0 /usr/bin/install -c opusenc.exe opusdec.exe opusinfo.exe '/home/user/builds/bin' test -z "/home/user/builds/share/man/man1" || /bin/mkdir -p "/home/user/builds/share/man/man1" =A0/usr/bin/install -c -m 644 man/opusenc.1 man/opusdec.1 man/opusinfo.1 '/home/user/builds/share/man/man1' make[2]: Leaving directory `/home/user/source/opus-tools-0.1.5' make[1]: Leaving directory `/home/user/source/opus-tools-0.1.5' =A0 =