>From: Scott Israel <scott_israel@...>
>To: mingw-users@..., andrewsumner@...
>Subject: [Mingw-users] Awka-0.7.5 compile failure using MingGW and gcc 3.2
>on Windows 98
>Date: Sat, 15 Feb 2003 02:51:51 -0800 (PST)
>I'm unable to compile Awka
>(http://awka.sourceforge.net/index.html), a translator
>and c compiler for awk, with MingGw. I did compile it
>using Cygwin's dll. I'm not a c programmer and would
>appreciate any help provided.
In that case you'll need to find a C programmer to help you port this
software to Windows. This task might be simple, but that depends on how
portable awka is. I'm sure the Awka developers could help if they are
>I'm using the most current version of MingGw, with the
>updates, on Windows 98. I've attached the output from
>gcc -v, the configure and make scripts below.
>$ gcc -v
>Reading specs from
>Configured with: ../gcc/configure --with-gcc
>--with-gnu-ld --with-gnu-as --host=
>mingw32 --target=mingw32 --prefix=/mingw
>--enable-threads --disable-nls --enable
> -languages=f77,c++,objc,ada --disable-win32-registry
>Thread model: win32
>gcc version 3.2 (mingw special 20020817-1)
>loading site script /etc/config.site
>creating cache ./config.cache
>checking for gcc... gcc
>checking for netdb.h... no
>checking for netinet/in.h... no
>checking for sys/socket.h... no
>checking for gethostbyname... no
>checking for gethostbyname in -lnsl... no
>checking for connect... no
>checking for connect in -lsocket... no
The output above suggests that awka uses sockets, which are not 100%
compatible with Windows, so it will require some changes to work properly.
>checking for .exe extension... no
This last check gives an incorrect result but is fairly trivial.
>/* config.h -- generated by configure */
>#define NO_NETINET/IN_H 1
>#define NO_SYS/SOCKET_H 1
The warnings given by the compiler below relate to the above two lines,
which are a result of bugs in the configure script. Please report this
problem to the Awka developers.
>gcc -O -Dawka_LIBDIR=\"/usr/local/lib\"
> c -o scan.o scan.c
This GCC command line suggests that Awka may use hardcoded paths to find
data files. For this to work on Windows you might only need to use a
Windows-style prefix path (e.g. "configure --prefix=c:/mingw") or it might
require more changes to Awka.
>In file included from nstd.h:13,
> from awka.h:35,
> from scan.c:30:
>../config.h:11:19: warning: ISO C requires whitespace
>after the macro name
>../config.h:12:15: warning: ISO C requires whitespace
>after the macro name
>In file included from scan.c:41:
>c:/MinGW/include/fcntl.h:125: conflicting types for
>fin.h:55: previous declaration of `setmode'
This error indicates a conflict between the MinGW C library header files and
definitions in the Awka source code, so again this will require some porting
MSN Instant Messenger now available on Australian mobile phones. Go to