RE: [gnome-db] libgda on cygwin problem

Hi Gonzalo!

Thanks for answering. The message was intended for the list, of course.
BTW, I'm subscribed, so no need to cc.

OK, tonight I had a bit of time to look at it and this is the situation (a
bit long but simple stuff for those who know ;-):

1) the filer lexer.c is including unistd.h and I think it should not because
it contains, starting on line 1552:

#ifndef _WIN32
#include <unistd.h>
extern int isatty YY_PROTO(( int ));

It looks like _WIN32 should be defined, but it's not. If I comment out the
ifndef, the compilation completes (with a few warnings). I don't know what
should be done to have _WIN32 defined. Can someone help here?

Gonzalo wrote:
> > 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?

it contains

int     _EXFUN(pipe, (int __fildes[2] ));

but I think it doesn't matter (see 1).

(sys/unistd.h contains a long list of system calls prototypes.)

Gonzalo wrote:
> > /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...

I've not yet tried this approach. For now I'm betting on 1)

4) After taking unistd.h out of the loop the compilation stopped with:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/include/glib-2.0 -I/lib/glib-2.0/include
. -I.. -DLIBGDA_PLUGINDIR=\"/usr/local/lib/libgda/providers\" -DLIBGDA_LOCAL
=\"/usr/local/share/locale\" -DLIBGDA_GLOBAL_CONFIG_FILE=\"/usr/local/etc/li
/config\" -g -O2 -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wm
ng-prototypes -Wnested-externs -Wpointer-arith -Wsign-promo -Wno-sign-compar
e -c
 gda-config.c  -DDLL_EXPORT -DPIC -o .libs/gda-config.lo
gda-config.c:33: libxml/xmlmemory.h: No such file or directory
gda-config.c:34: libxml/parser.h: No such file or directory

libxml is not installed (but libxml2 is) in cygwin and it's not part of the
available package list. Anyway, from the instructions to compile libgda in
cygwin, libxml2 is required, not libxml. What's going on? What can I do?

Another question: what do I have to do for libgda to be able to access
postgres (btw, if you care, finally it runs ok in win98!!!) in cygwin? I
would like to try gda-test.c which I guess uses postgres-test.c.

TIA and have a nice weekend,


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