hello
I have been trying to compile the latest faac (1.28) and faad (2.7) using cygwin, but I'm getting errors both times
I run ./bootstrap then ./configure and make for both

FAAD error:
QUOTE
libtool: compile: gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. ../include -g -O
2 -MT bits.lo -MD -MP -MF .deps/bits.Tpo -c bits.c -DDLL_EXPORT -DPIC -o .libs/
bits.o
gcc: ../include: linker input file unused because linking not done
cc1: ../include: No such file or directory
make[2]: *** [bits.lo] Error 1
make[2]: Leaving directory `/home/Blueteeth/faad2-2.7/libfaad'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Blueteeth/faad2-2.7'
make: *** [all] Error 2


FAAC error:
QUOTE
make[3]: Entering directory `/home/Blueteeth/faac-1.28/common/mp4v2'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -Wall -g -O2 -MT 3gp.o
-MD -MP -MF ".deps/3gp.Tpo" -c -o 3gp.o 3gp.cpp; \
then mv -f ".deps/3gp.Tpo" ".deps/3gp.Po"; else rm -f ".deps/3gp.Tpo"; e
xit 1; fi
In file included from mp4common.h:29,
from 3gp.cpp:28:
mpeg4ip.h:194: error: conflicting declaration 'typedef unsigned int socklen_t'
/usr/include/cygwin/socket.h:23: error: 'socklen_t' has a previous declaration a
s `typedef int socklen_t'
mpeg4ip.h:194: error: declaration of `typedef unsigned int socklen_t'
/usr/include/cygwin/socket.h:23: error: conflicts with previous declaration `typ
edef int socklen_t'
mpeg4ip.h:194: error: declaration of `typedef unsigned int socklen_t'
/usr/include/cygwin/socket.h:23: error: conflicts with previous declaration `typ
edef int socklen_t'
In file included from mp4common.h:36,
from 3gp.cpp:28:
mp4property.h: In constructor `MP4BitfieldProperty::MP4BitfieldProperty(char*, u
_int8_t)':
mp4property.h:193: error: `__STRING' undeclared (first use this function)
mp4property.h:193: error: (Each undeclared identifier is reported only once for
each function it appears in.)
3gp.cpp: In member function `void MP4File::Make3GPCompliant(const char*, char*,
u_int32_t, char**, u_int32_t, bool)':
3gp.cpp:55: error: `__STRING' undeclared (first use this function)
3gp.cpp: In member function `void MP4File::MakeFtypAtom(char*, u_int32_t, char**
, u_int32_t)':
3gp.cpp:107: error: `__STRING' undeclared (first use this function)
make[3]: *** [3gp.o] Error 1
make[3]: Leaving directory `/home/Blueteeth/faac-1.28/common/mp4v2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Blueteeth/faac-1.28/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Blueteeth/faac-1.28'
make: *** [all] Error 2



I have also tried msys with the commands from here, but that also has errors
faad:
QUOTE
if gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../common/faad -I../common/
mp4ff -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
-c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
In file included from c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/
io.h:20,
from c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/
fcntl.h:20,
from main.c:39:
c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/sys/types.h:41: error:
two or more data types in declaration specifiers
c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/sys/types.h:41: error:
two or more data types in declaration specifiers
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/c/faad/frontend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/faad'
make: *** [all] Error 2


faac:
QUOTE
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -Wall -g -O2 -MT 3gp.o -MD -MP -M
F ".deps/3gp.Tpo" \
-c -o 3gp.o `test -f '3gp.cpp' || echo './'`3gp.cpp; \
then mv ".deps/3gp.Tpo" ".deps/3gp.Po"; \
else rm -f ".deps/3gp.Tpo"; exit 1; \
fi
In file included from mpeg4ip.h:62,
from mp4common.h:29,
from 3gp.cpp:28:
mpeg4ip_win32.h:63: error: conflicting declaration 'typedef int ssize_t'
c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/sys/types.h:104: error
: 'ssize_t' has a previous declaration as 'typedef _ssize_t ssize_t'
mpeg4ip_win32.h: In function 'int snprintf(char*, size_t, const char*, ...)':
mpeg4ip_win32.h:66: error: 'int snprintf(char*, size_t, const char*, ...)' was declared 'e
xtern' and later 'static'
c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/stdio.h:330: error: pr
evious declaration of 'int snprintf(char*, size_t, const char*, ...)'
mpeg4ip_win32.h: In function 'int snprintf(char*, size_t, const char*, ...)':
mpeg4ip_win32.h:70: error: '_TRUNCATE' was not declared in this scope
mpeg4ip_win32.h:70: error: 'vsnprintf_s' was not declared in this scope
In file included from mp4common.h:32,
from 3gp.cpp:28:
mp4util.h: In function 'void Indent(FILE*, u_int8_t)':
mp4util.h:82: error: 'fprintf_s' was not declared in this scope
3gp.cpp: In member function 'void MP4File::MakeFtypAtom(char*, u_int32_t, char**, u_int32_
t)':
3gp.cpp:79: warning: dereferencing type-punned pointer will break strict-aliasing rules
3gp.cpp:88: warning: dereferencing type-punned pointer will break strict-aliasing rules
3gp.cpp:96: warning: dereferencing type-punned pointer will break strict-aliasing rules
3gp.cpp:103: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[3]: *** [3gp.o] Error 1
make[3]: Leaving directory `/c/faac/common/mp4v2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/faac/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/faac'
make: *** [all] Error 2



from what I have read in other threads, faad needs to be compiled first to give required include files to faac
any help would be appreciated