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 69058 - Problem compiling libgda 0.2.94
Problem compiling libgda 0.2.94
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: c++ bindings
0.2.94
Other Linux
: High major
: GNOME-DB-1-0
Assigned To: Chris Wiegand
Rodrigo Moya
: 69801 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-01-18 19:19 UTC by Pierre
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
One liner which probably solves the bug. Any one to test it? (425 bytes, patch)
2002-04-17 18:10 UTC, Gonzalo Paniagua Javier
none Details | Review

Description Pierre 2002-01-18 19:19:45 UTC
Hi,

I try to compile libgda-0.2.94 on my linux slackware 8 with gcc-3.0.3
there was no problem with the configure, but for the make i got this :

root@pierre:/tmp/libgda-0.2.94# gmake
gmake  all-recursive
gmake[1]: Entering directory `/tmp/libgda-0.2.94'
Making all in po
gmake[2]: Entering directory `/tmp/libgda-0.2.94/po'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/tmp/libgda-0.2.94/po'
Making all in intl
gmake[2]: Entering directory `/tmp/libgda-0.2.94/intl'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/tmp/libgda-0.2.94/intl'
Making all in macros
gmake[2]: Entering directory `/tmp/libgda-0.2.94/macros'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/tmp/libgda-0.2.94/macros'
Making all in idl
gmake[2]: Entering directory `/tmp/libgda-0.2.94/idl'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/tmp/libgda-0.2.94/idl'
Making all in lib
gmake[2]: Entering directory `/tmp/libgda-0.2.94/lib'
Making all in gda-common
gmake[3]: Entering directory `/tmp/libgda-0.2.94/lib/gda-common'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/tmp/libgda-0.2.94/lib/gda-common'
Making all in gda-client
gmake[3]: Entering directory `/tmp/libgda-0.2.94/lib/gda-client'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/tmp/libgda-0.2.94/lib/gda-client'
Making all in gda-server
gmake[3]: Entering directory `/tmp/libgda-0.2.94/lib/gda-server'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/tmp/libgda-0.2.94/lib/gda-server'
gmake[3]: Entering directory `/tmp/libgda-0.2.94/lib'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/tmp/libgda-0.2.94/lib'
gmake[2]: Leaving directory `/tmp/libgda-0.2.94/lib'
Making all in bindings
gmake[2]: Entering directory `/tmp/libgda-0.2.94/bindings'
Making all in c++
gmake[3]: Entering directory `/tmp/libgda-0.2.94/bindings/c++'
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../..
-I/usr/local/include   -I../../lib/gda-common  -I../../lib/gda-common 
-I../../lib/gda-client  -I../../lib/gda-client 
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -D_REENTRANT
-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -I/usr/local/include/gnome-xml
-I/usr/local/include/gconf/1 -I/usr/local/include
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
-I/usr/local/include/orbit-1.0 -I/usr/local/include/gnome-1.0
-I/usr/local/include -DNEED_GNOMESUPPORT_H
-I/usr/local/lib/gnome-libs/include -I/usr/local/include/gtk-1.2
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
-I/usr/local/include/gdk-pixbuf-1.0 -I/usr/local/include/freetype2
-I/usr/local/include/gnome-xml -I/usr/local/include/orbit-1.0    -g -O2 -c
gdaBatch.cpp
rm -f .libs/gdaBatch.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include
-I../../lib/gda-common -I../../lib/gda-common -I../../lib/gda-client
-I../../lib/gda-client -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -D_REENTRANT -I/usr/local/include/gtk-1.2
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
-I/usr/local/include/gnome-xml -I/usr/local/include/gconf/1
-I/usr/local/include -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -I/usr/local/include/orbit-1.0
-I/usr/local/include/gnome-1.0 -I/usr/local/include -DNEED_GNOMESUPPORT_H
-I/usr/local/lib/gnome-libs/include -I/usr/local/include/gtk-1.2
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
-I/usr/local/include/gdk-pixbuf-1.0 -I/usr/local/include/freetype2
-I/usr/local/include/gnome-xml -I/usr/local/include/orbit-1.0 -g -O2 -c
gdaBatch.cpp  -fPIC -DPIC -o .libs/gdaBatch.lo
In file included from gdaBatch.h:22,
                 from gdaIncludes.h:45,
                 from gdaBatch.cpp:20:
gdaConnection.h:44: parse error before `&' token
gdaConnection.h:45: parse error before `)' token
gdaConnection.h:47: parse error before `&' token
gdaConnection.h:48: parse error before `&' token
gdaConnection.h:57: parse error before `&' token
gdaConnection.h:58: parse error before `&' token
gdaConnection.h:65: parse error before `)' token
gdaConnection.h:66: parse error before `)' token
gdaConnection.h:76: parse error before `)' token
In file included from gdaBatch.h:23,
                 from gdaIncludes.h:45,
                 from gdaBatch.cpp:20:
gdaValue.h:70: parse error before `)' token
gdaValue.h:87: parse error before `&' token
In file included from gdaIncludes.h:45,
                 from gdaBatch.cpp:20:
gdaBatch.h:37: parse error before `&' token
gdaBatch.h:38: parse error before `&' token
In file included from gdaIncludes.h:46,
                 from gdaBatch.cpp:20:
gdaCommand.h:41: parse error before `)' token
gdaCommand.h:42: parse error before `&' token
gdaCommand.h:47: parse error before `&' token
gdaCommand.h:62: 'vector' is used as a type, but is not defined as a type.
In file included from gdaIncludes.h:48,
                 from gdaBatch.cpp:20:
gdaError.h:41: parse error before `)' token
gdaError.h:43: parse error before `)' token
gdaError.h:44: parse error before `)' token
gdaError.h:45: parse error before `)' token
gdaError.h:46: parse error before `)' token
gdaError.h:47: parse error before `)' token
In file included from gdaIncludes.h:49,
                 from gdaBatch.cpp:20:
gdaErrorList.h:28: parse error before `<' token
gdaErrorList.h:35: parse error before `*' token
gdaErrorList.h:36: parse error before `*' token
gdaErrorList.h:37: parse error before `const'
gdaErrorList.h:38: destructors must be member functions
gdaErrorList.h:40: syntax error before `&' token
gdaErrorList.h:44: `errorList' was not declared in this scope
gdaErrorList.h:49: parse error before `}' token
In file included from gdaIncludes.h:50,
                 from gdaBatch.cpp:20:
gdaField.h:48: parse error before `)' token
gdaField.h:66: parse error before `)' token
gdaField.h:73: ISO C++ forbids declaration of `string' with no type
gdaField.h:73: parse error before `(' token
gdaField.h:74: parse error before `&' token
gdaField.h:76: parse error before `)' token
gdaField.h:83: parse error before `)' token
In file included from gdaIncludes.h:51,
                 from gdaBatch.cpp:20:
gdaRecordset.h:38: parse error before `&' token
gdaRecordset.h:39: parse error before `)' token
gdaRecordset.h:41: parse error before `&' token
gdaRecordset.h:54: parse error before `&' token
gdaRecordset.h:62: `string' was not declared in this scope
gdaRecordset.h:62: parse error before `)' token
gdaRecordset.h:63: parse error before `)' token
In file included from gdaBatch.cpp:21:
gdaHelpers.h:23: parse error before `*' token
gdaBatch.cpp:67: parse error before `&' token
gdaBatch.cpp: In member function `bool gda::Batch::loadFile(...)':
gdaBatch.cpp:70: `filename' undeclared (first use this function)
gdaBatch.cpp:70: (Each undeclared identifier is reported only once for each 
   function it appears in.)
gdaBatch.cpp:70: `clean' undeclared (first use this function)
gdaBatch.cpp: At global scope:
gdaBatch.cpp:74: parse error before `&' token
gdaBatch.cpp: In member function `void gda::Batch::addCommand(...)':
gdaBatch.cpp:77: `cmdText' undeclared (first use this function)
gmake[3]: *** [gdaBatch.lo] Error 1
gmake[3]: Leaving directory `/tmp/libgda-0.2.94/bindings/c++'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/libgda-0.2.94/bindings'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/libgda-0.2.94'
gmake: *** [all-recursive-am] Error 2



It would be great if you could help me with this !

Best regards,

Pierre.
Comment 1 Rodrigo Moya 2002-01-18 19:33:38 UTC
yes, it seems there are problems with the C++ bindings and gcc-3.

for a quick solution, if you don't need the C++ bindings (ie, you're
not going to develop libgda apps in C++), just edit
libgda/bindings/Makefile.am, and remove c++ from the SUBDIRS variable.
Then rerun configure.
Comment 2 Pierre 2002-01-25 20:58:20 UTC
I have the same problem with libgda 0.2.95
Comment 3 Rodrigo Moya 2002-02-09 00:14:50 UTC
*** Bug 69801 has been marked as a duplicate of this bug. ***
Comment 4 Pierre 2002-03-04 18:10:27 UTC
The problem is always there in libgda 0.2.96 !
Comment 5 Rodrigo Moya 2002-03-04 18:28:13 UTC
yes, but the GNOME 1.x version (0.2.9x) is now officially dead, since
the next released version will be for GNOME 2. So, all the bugs for
the GNOME 1.x version are not going to be fixed.

If you want to open a bug for the GNOME 2 version, do it please.
Comment 6 Gonzalo Paniagua Javier 2002-04-17 18:10:56 UTC
Created attachment 7763 [details] [review]
One liner which probably solves the bug. Any one to test it?
Comment 7 Pierre 2002-04-17 20:33:45 UTC
I have tested it, and got always the same error.
Comment 8 Pierre 2002-10-29 16:11:59 UTC
Couldn't it be fixed ? Gnome 1.x is always used...
Comment 9 Rodrigo Moya 2002-11-07 15:14:50 UTC
yes, it can be fixed, if you've got a patch that fixes it, we can fix
it. I personally don't know how to fix it, I've already asked several
times on the mailing list, and, furthermore, this is unmaintained
code, that is no longer supposed to be used at all.

So, if you've got a fix, please attach it to the bug.
Comment 10 Rodrigo Moya 2003-01-15 02:14:06 UTC
Closing, this is obsolete code. For C++ bindings, please see bug #78670