I am trying to compile the Gnu Diction-1.09 package. I am using the
instructions from http://gnuwin32.sourceforge.net/compile.html, with
Cygwin, and using current versions. configure creates a Makefile, and
running this leads to the compile instruction:

gcc -mno-cygwin -c -I d:\gnuwin32\include -I d:\gnuwin32\include\glibc
-I d:\mingw\include -I. -DSHAREDIR=\"./share\"
-DLOCALEDIR=\"./share/locale\" -g -O2 -pipe -Wno-unused -Wshadow
-Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings
-Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common
diction.c

This compilation fails for all 3 programs in the same way. Some points I
am seeking advice are that mingw\include\io.h and
mingw\include\process.h seem to be the wrong versions. See the points
7-11. The other points are warnings, and I am just curious if I can
safely neglect them.

I am sure that some simple setting is wrong, because:
- configure does not recognize the fact that international language
support should be enabled (and diction uses that extensively due to the
nature of the application: checking diction and style of English and
German text)
- diction is written in plain C, so it does not use C++ routines
- the errors are in the MingW part, and there should be no need for
Diction to use other libraries than GnuWin32
- Diction is a really small text reading batch application, that
generates its own output; it does not perform any specific OS dependent
operation

But what am I missing?

Thanks if you can help me!

PS: A small suggestion: why not include in the header of the config.site
some usage instructions?

Some warnings and errors
========================

1. In file included from d:/gnuwin32/include/glibc/sys/types.h:31,
                 from diction.c:31:
d:/gnuwin32/include/glibc/bits/types.h:131: warning: ISO C90 does not
support
`long long'

Is this regular behavior?

2. In file included from d:/gnuwin32/include/glibc/bits/errno.h:31,
                 from d:/gnuwin32/include/glibc/errno.h:36,
                 from diction.c:34:
d:/mingw/include/_mingw.h:119:6: warning: "__GNUC_STDC_INLINE__" is not
defined

Is this regular behavior?

3. In file included from d:/gnuwin32/include/glibc/errno.h:36,
                 from diction.c:34:
d:/gnuwin32/include/glibc/bits/errno.h:114:1: warning: C++ style
comments are no
t allowed in ISO C90

Is this regular behavior??

4. In file included from d:/gnuwin32/include/glibc/limits.h:124,
                 from diction.c:35:
d:/mingw/include/limits.h:39:1: warning: "MB_LEN_MAX" redefined

Is this regular behavior??

5. In file included from diction.c:35:
d:/gnuwin32/include/glibc/limits.h:32:1: warning: this is the location
of the
previous definition

Is this regular behavior??

6. In file included from d:/gnuwin32/include/glibc/libio.h:32,
                 from d:/gnuwin32/include/glibc/stdio.h:72,
                 from diction.c:47:
d:/gnuwin32/include/glibc/_G_config.h:50: warning: invalid use of
structure with
flexible array member

Is this regular behavior?

7. In file included from d:/gnuwin32/include/unistd.h:9,
                 from diction.c:50:
d:/mingw/include/io.h:76: error: syntax error before "__time64_t"
d:/mingw/include/io.h:76: warning: no semicolon at end of struct or union
d:/mingw/include/io.h:77: error: ISO C forbids data definition with no
type or s
torage class
d:/mingw/include/io.h:78: error: syntax error before "time_write"
d:/mingw/include/io.h:78: error: ISO C forbids data definition with no
type or s
torage class
d:/mingw/include/io.h:81: error: syntax error before '}' token
d:/mingw/include/io.h:81: warning: ISO C does not allow extra `;'
outside of a f
unction

Is this regular behavior?

8. d:/mingw/include/io.h:108: error: conflicting types for 'name'
d:/mingw/include/io.h:80: error: previous declaration of 'name' was here

Is this regular behavior?

9. d:/mingw/include/io.h:109: error: syntax error before '}' token

Is this regular behavior?

10. d:/mingw/include/io.h:149: error: syntax error before "lseek64"

Is this regular behavior?

11. In file included from d:/gnuwin32/include/unistd.h:10,
                 from diction.c:50:
d:/mingw/include/process.h: At top level:
d:/mingw/include/process.h:61: error: syntax error before "_pid_t"

Is this regular behavior??





-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to