GNOME Bugzilla – Bug 156210
Compile fails on sql_parser.h the file has moved location in libgda-1.1.99
Last modified: 2006-08-13 20:25:15 UTC
File mg-query.h contains references to these libgda files that has been moved sql_parser.h and libgda.h sql_parser.h has been moved to libgda-1.1/sql libgda.h has been moved to libgda-1.1/libgda I'm compiling with the latest release of libgda-1.1.99 and mergeant-0.52
I had missed that one of the 2 references was in mg-query.c. Sorry
Can I then close the bug?
I think that there is an issue with the change between libgda from 1.1.6 and 1.1.99. The current files sql_parser.h and libgda.h are pointing to the old location. So I don't think that the problem is solved unless there has been a change in the definitions for those files. Unfortunatly I'm not handy enough to provide a patch to solve the issue.
The bug is still there as the developers of libgda changed the naming convention for their include files from libgda to libgda-1.1 in version 1.1..99
I can confirm this issue. In source code it includes from "wrong" location. Tryed to install mergeant 0.52, failed in compiling mg-query.c. I have libgda-1.2.0 installed on my Gentoo box. As a temporary fix I made a symlink in /usr/include/libgda -> libgda-1.2 and then compiled and works ok.
Can you try to remove the /usr/include/libgda directory which I think contains includes from an old version of libgda. What seems to happen is that "pkg-config --cflags" gives something like "[...] -I/usr/include/ -I/usr/include/libgda-1.2 [...]" and then when in the code there is "#include <libgda/libgda.h>", it includes the libgda.h file located in /usr/include/libgda and not the one located in /usr/include/libgda-1.2/libgda. Tell me if it works that way. Vivien
I'm afraid that I don't have libgda include files in the /usr/include/libgda folder. I'm building the software from scratch in a isolated location.
Created attachment 36957 [details] [review] mergeant-0.52/libmergeant/mg-query.c include fix I see. /usr/include/libgda didn't existed at all. This patch would do the trick by fixing include path.
Thanks, the patch will be applied soon.
Mergeant 0.62 compiles without issues using newer versions of libgda