Re: [gnome-db] Error compiling libgda 1.3.4 on RHES 4.1



Hi Vivien,
Thanks. I edited the gamin.pc file and got past that point. It is now breaking on the free tds provider.
Here is the gamin.pc file:
---------------------------------------
$ cat /usr/lib/pkgconfig/gamin.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: gamin
Description: The gamin file monitoring system.
Version: 0.0.17
Requires: glib-2.0 gthread-2.0
Libs: -L${libdir}
Cflags: -I${includedir}
--------------------------

This is the error from the freetds provider:
------------------------------
gcc "-DPACKAGE_NAME=\"GNU Data Access\"" -DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"1.3.4\" "-DPACKAGE_STRING=\"GNU Data Access 1.3.4\"" -DPACKAGE_BUGREPORT=\"gnome-db-list gnome org\" -DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 -DGETTEXT_PACKAGE=\"libgda-3\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_FAM= -DHAVE_MYSQL=1 -DHAVE_FREETDS_VER0_6X=1 -DHAVE_FREETDS=1 -DHAVE_SYBASE=1 -DHAVE_LDAP=1 -DHAVE_POPT_H=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1 -I. -I. -I../.. -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/local//include -g -O2 -MT gda-freetds-provider.lo -MD-MP -MF .deps/gda-freetds-provider.Tpo -c gda-freetds-provider.c -fPIC -DPIC -o .libs/gda-freetds-provider.o
In file included from gda-freetds.h:31,
                from gda-freetds-provider.c:32:
gda-freetds-provider.h:67: error: syntax error before "TDSCONNECTINFO"
gda-freetds-provider.h:67: warning: no semicolon at end of struct or union
gda-freetds-provider.h:77: error: syntax error before '}' token
In file included from gda-freetds.h:33,
                from gda-freetds-provider.c:32:
gda-freetds-types.h:37: error: syntax error before "TDSCOLINFO"
gda-freetds-types.h:39: error: syntax error before '*' token
In file included from gda-freetds.h:34,
                from gda-freetds-provider.c:32:
gda-freetds-message.h:42: error: syntax error before "TDSMSGINFO"
gda-freetds-message.h:42: warning: no semicolon at end of struct or union
gda-freetds-message.h:46: error: syntax error before "TDSMSGINFO"
gda-freetds-message.h:49: error: syntax error before "TDSMSGINFO"
gda-freetds-provider.c:122: error: syntax error before "TDSMSGINFO"
gda-freetds-provider.c:125: error: syntax error before "TDSMSGINFO"
gda-freetds-provider.c: In function `gda_freetds_provider_open_connection':
gda-freetds-provider.c:203: error: invalid application of `sizeof' to incomplete type `gda-freetds-provider.h'
gda-freetds-provider.c:205: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:207: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:214: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:215: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:222: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:223: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:230: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:236: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:237: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:238: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:241: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:243: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:245: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:248: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:250: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:251: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:252: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:256: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:257: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:265: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:266: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:273: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:273: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:274: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:280: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:281: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:281: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:281: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:282: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:282: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:291: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:307: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:309: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:317: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:339: error: dereferencing pointer to incomplete type
gda-freetds-provider.c: In function `gda_freetds_free_connection_data':
gda-freetds-provider.c:351: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:352: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:353: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:355: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:356: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:357: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:359: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:361: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:365: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:367: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:369: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:370: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:371: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:374: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:376: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:377: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:378: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:379: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:382: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:383: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:384: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:387: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:388: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:389: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:394: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:397: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:398: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:401: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:402: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:403: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:409: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:412: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:413: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:416: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:417: error: dereferencing pointer to incomplete type
gda-freetds-provider.c: In function `gda_freetds_provider_get_database':
gda-freetds-provider.c:454: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:456: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:457: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:459: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:462: error: dereferencing pointer to incomplete type
gda-freetds-provider.c: In function `gda_freetds_provider_get_server_version':
gda-freetds-provider.c:633: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:642: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:648: error: dereferencing pointer to incomplete type
gda-freetds-provider.c: In function `gda_freetds_provider_get_types':
gda-freetds-provider.c:666: error: `TDSCOLINFO' undeclared (first use in this function) gda-freetds-provider.c:666: error: (Each undeclared identifier is reported onlyonce
gda-freetds-provider.c:666: error: for each function it appears in.)
gda-freetds-provider.c:666: error: syntax error before "col"
gda-freetds-provider.c:675: error: `col' undeclared (first use in this function)
gda-freetds-provider.c: In function `gda_freetds_execute_cmd':
gda-freetds-provider.c:794: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:796: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:796: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:797: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:799: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:806: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:806: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:806: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:806: error: too few arguments to function `tds_process_result_tokens'
gda-freetds-provider.c:811: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:813: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:820: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:820: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:821: error: dereferencing pointer to incomplete type
gda-freetds-provider.c: In function `gda_freetds_execute_query':
gda-freetds-provider.c:841: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:843: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:843: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:845: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:846: error: dereferencing pointer to incomplete type
gda-freetds-provider.c: In function `gda_freetds_provider_process_sql_commands':
gda-freetds-provider.c:948: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:956: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:956: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:958: error: dereferencing pointer to incomplete type
gda-freetds-provider.c:959: error: dereferencing pointer to incomplete type
gda-freetds-provider.c: In function `gda_freetds_provider_tds_handle_message': gda-freetds-provider.c:1046: error: `TDSMSGINFO' undeclared (first use in this function) gda-freetds-provider.c:1046: error: `msg_info' undeclared (first use in this function)
gda-freetds-provider.c:1046: error: syntax error before ')' token
gda-freetds-provider.c: At top level:
gda-freetds-provider.c:1102: error: syntax error before "TDSMSGINFO"
gda-freetds-provider.c: In function `gda_freetds_provider_tds_handle_info_msg': gda-freetds-provider.c:1104: error: `tds' undeclared (first use in this function) gda-freetds-provider.c:1106: error: `msg' undeclared (first use in this function)
gda-freetds-provider.c: At top level:
gda-freetds-provider.c:1124: error: syntax error before "TDSMSGINFO"
gda-freetds-provider.c: In function `gda_freetds_provider_tds_handle_err_msg': gda-freetds-provider.c:1126: error: `tds' undeclared (first use in this function) gda-freetds-provider.c:1128: error: `msg' undeclared (first use in this function)
make[2]: *** [gda-freetds-provider.lo] Error 1
make[2]: Leaving directory `/usr/src/libgda-1.3.4/providers/freetds'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/libgda-1.3.4/providers'
make: *** [all-recursive] Error 1
--------------------------------------------



Vivien Malerba wrote:

I think it's safe to edit that file (this is probably a packaging
problem) as long as you make sure the description you make is OK. If I
compare to my local copy (which is version 0.0.25, the @MAJOR_VERSION@
is simply 1. In any case, make sure the directory mentionned in the
Cflags flag does contain the fam.h file (which is the one included in
libgda's sources).

Cheers,

Vivien



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