Re: [gnome-db] libgda on cygwin problem



* [ Fernando Martins <fmartins hetnet nl>
* Wed, 26 Jun 2002 00:08:15 +0200 ]
> Gonzalo wrote:
> > Step 5 in the instructions to compile under windows lacks a
> > closing parenthesis ')'. Try adding it in the line that step 5 says.
> >
> 
> Yes, that was it, thanks.
> 
> I have another problem, this one related to the compilation of the SQL
> parser:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/include/glib-2.0 -I/lib/glib-2
> .0/i
> nclude -g -O2 -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmiss
> ing-
> prototypes -Wnested-externs -Wpointer-arith -Wsign-promo -Wno-sign-compare -
> c le
> xer.c  -DDLL_EXPORT -DPIC -o .libs/lexer.lo
> lexer.l:12: warning: #warning "strings are limited to 2000 characters"
> In file included from /usr/include/unistd.h:6,
>                  from lexer.c:1553:
> /usr/include/sys/unistd.h:259: warning: `MAXPATHLEN' redefined
> /include/glib-2.0/glib/gwin32.h:40: warning: this is the location of the
> previou
> s definition
> lexer.c:662: warning: no previous prototype for `sqllex'
> lexer.c: In function `sqllex':
> lexer.c:730: warning: label `find_rule' defined but not used
> In file included from /usr/include/unistd.h:6,
>                  from lexer.c:1553:
> /usr/include/sys/unistd.h: At top level:
> /usr/include/sys/unistd.h:80: parse error before `4096'

What does this file have around line 80?

> /usr/include/sys/unistd.h:138: conflicting types for `g_win32_ftruncate'
> /include/glib-2.0/glib/gwin32.h:72: previous declaration of
> `g_win32_ftruncate'
> lexer.c:1850: warning: `yy_flex_realloc' defined but not used
> lexer.c:1329: warning: `yyunput' defined but not used
> make[2]: *** [lexer.lo] Error 1
> 
> Any clue on how to solve the conflicting types error?

I had some similar troubles building mono under cygwin. They were
related to the mingw and w32api versions. Try upgrading or downgrading
them... 

-- 
Gonzalo Paniagua Javier <gonzalo gnome-db org>
http://www.gnome-db.org/~gonzalo/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]