From: Bill B. <bb...@ne...> - 2013-02-15 18:19:27
|
This is probably a basic issue, but I wanted to toss it out there to see if something obvious is at play (probably). I have installed the 201204026 Mingw/Msys package. The two are in different directories in the C:\ filesystem; \Mingww and \Msys. The purpose of the install is specifically (so far) to build gstreamer with all its plug packages and specific options. So I'm following the gstreamer wiki for building up Msys and Mingw to be able to build gstreamer: ( http://gstreamer.freedesktop.org/wiki/SettingUpMinGWMSysEnvironment) Install msys-libxml2 2.8.0 Updating msys-libxml2 to 2.8.0 fixes a zlib-related crash some users reported. After mingw-get msys-libxml2 package is updated to 2.8.0 or later, this step can be skipped. Install msys-sqlite 3-3.7.5-2 Install msys-apr apr-1.4.5-1 Install msys-apr-util 1.3.12-3 & 1.5.1 Install msys-neon Install msys-pcre Install msys-swig Install msys-subversion Install msys-gperf Install msys-getopt Then there is another section for configuring and building up packages for mingw which I haven't even started yet. I'm stuck on msys-apr-util. I started off with the recommended apr-util-1.3.12-3 which fails in numerous places (during configure and make), and also tried the latest from Adobe, apr-util-1.5.1. It needed to know where the installed apr was (/bin). After a buildconf and configure which seemed to go ok, doing a make, resulted in: $ make make[1]: Entering directory `/src/msys/apr-util-1.5.1' /bin/sh /share/apr/build-1/libtool --silent --mode=compile gcc -s -O2 -DHAVE_CONFIG_H -DCYGWIN -D_WIN32_WINNT=0x0501 -DBINPATH=/src/msys/apr-1.4.5-1/bld/test/.libs/ -I/src/msys/apr-util-1.5.1/include -I/src/msys/apr-util-1.5.1/include/pr ivate -Ic:/STRAWB~1/c/include -I/include/apr-1 -o buckets/apr_brigade.lo -c buckets/apr_brigade.c && touch buckets/apr_brigade.lo In file included from /usr/include/asm/socket.h:14, from /usr/include/cygwin/socket.h:23, from /usr/include/sys/socket.h:15, from /include/apr-1/apr.h:170, from buckets/apr_brigade.c:17: /usr/include/cygwin/if.h:78: error: parse error before "caddr_t" /usr/include/cygwin/if.h:80: error: parse error before '}' token /usr/include/cygwin/if.h:82: error: parse error before '}' token In file included from /include/apr-1/apr_want.h:87, from /include/apr-1/apr_strings.h:52, from buckets/apr_brigade.c:19: /usr/include/sys/uio.h:28: error: parse error before "caddr_t" /usr/include/sys/uio.h:30: error: parse error before '}' token buckets/apr_brigade.c:38: warning: function 'apr_brigade_cleanup' is defined after prior declaration as dllimport: attribute ignored buckets/apr_brigade.c:38: warning: 'apr_brigade_cleanup' defined locally after being referenced with dllimport linkage buckets/apr_brigade.c: In function `apr_brigade_cleanup': buckets/apr_brigade.c:38: warning: function 'apr_brigade_cleanup' is defined after prior declaration as dllimport: attribute ignored buckets/apr_brigade.c: In function `apr_brigade_destroy': buckets/apr_brigade.c:51: warning: function 'apr_brigade_destroy' is defined after prior declaration as dllimport: attribute ignored ...etc, to: buckets/apr_brigade.c:580: error: dereferencing pointer to incomplete type buckets/apr_brigade.c:581: error: invalid use of undefined type `struct iovec' buckets/apr_brigade.c:581: error: dereferencing pointer to incomplete type buckets/apr_brigade.c: In function `apr_brigade_puts': buckets/apr_brigade.c:593: warning: function 'apr_brigade_puts' is defined after prior declaration as dllimport: attribute ignored buckets/apr_brigade.c: In function `apr_brigade_putstrs': buckets/apr_brigade.c:622: warning: function 'apr_brigade_putstrs' is defined after prior declaration as dllimport: attribute ignored buckets/apr_brigade.c: In function `apr_brigade_printf': buckets/apr_brigade.c:636: warning: function 'apr_brigade_printf' is defined after prior declaration as dllimport: attribute ignored buckets/apr_brigade.c: At top level: buckets/apr_brigade.c:684: warning: function 'apr_brigade_vprintf' is defined after prior declaration as dllimport: attribute ignored buckets/apr_brigade.c:684: warning: 'apr_brigade_vprintf' defined locally after being referenced with dllimport linkage buckets/apr_brigade.c: In function `apr_brigade_vprintf': buckets/apr_brigade.c:684: warning: function 'apr_brigade_vprintf' is defined after prior declaration as dllimport: attribute ignored buckets/apr_brigade.c: In function `apr_brigade_insert_file': buckets/apr_brigade.c:715: warning: function 'apr_brigade_insert_file' is defined after prior declaration as dllimport: attribute ignored make[1]: *** [buckets/apr_brigade.lo] Error 1 make[1]: Leaving directory `/src/msys/apr-util-1.5.1' make: *** [all-recursive] Error 1 The original version of apr-util tried had similar types of errors which seemed to center around this section, as it was repeated several times: /usr/include/cygwin/if.h:78: error: parse error before "caddr_t" /usr/include/cygwin/if.h:80: error: parse error before '}' token /usr/include/cygwin/if.h:82: error: parse error before '}' token Can anyone suggest a possible solution to getting this compiled? There seems to be a glut of inaccurate procedures for building up Mingw/Msys for a variety of compilation chores, and each of them seem somewhat sound (to me) but end up not working correctly for one reason or another, or not accurately defining which build should be in Mingw and which should be Msys. You're just supposed to know, I guess -- which I don't. This is probably my fourth Mingw/Msys build from scratch, but the first that I adhered just to the Gstreamer guidelines. Thanks. --Bill |