After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 156210 - Compile fails on sql_parser.h the file has moved location in libgda-1.1.99
Compile fails on sql_parser.h the file has moved location in libgda-1.1.99
Status: RESOLVED FIXED
Product: mergeant
Classification: Deprecated
Component: General
0.52
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-23 10:40 UTC by Stef van der Made
Modified: 2006-08-13 20:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mergeant-0.52/libmergeant/mg-query.c include fix (336 bytes, patch)
2005-02-04 01:50 UTC, Imre Lorvi
none Details | Review

Description Stef van der Made 2004-10-23 10:40:26 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
Comment 1 Stef van der Made 2004-10-23 10:57:11 UTC
I had missed that one of the 2 references was in mg-query.c. Sorry
Comment 2 malerba 2004-10-24 16:22:57 UTC
Can I then close the bug?
Comment 3 Stef van der Made 2004-10-24 22:11:21 UTC
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.
Comment 4 Stef van der Made 2004-10-30 21:02:39 UTC
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 
Comment 5 Imre Lorvi 2005-02-02 23:04:07 UTC
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.
Comment 6 malerba 2005-02-03 08:06:30 UTC
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
Comment 7 Stef van der Made 2005-02-03 18:57:06 UTC
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.
Comment 8 Imre Lorvi 2005-02-04 01:50:23 UTC
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.
Comment 9 malerba 2005-02-04 08:02:05 UTC
Thanks, the patch will be applied soon.
Comment 10 Stef van der Made 2006-08-13 20:25:15 UTC
Mergeant 0.62 compiles without issues using newer versions of libgda