[gnome-db] Cannot build libgda-odbc.0.10.0-1.i386.rpm



Cannot build libgda-odbc.0.10.0-1.i386.rpm
and when 
%define           ODBC     0
%define           SYBASE     0
in libgda.spec is set, it still attempts to build ODBC and SYBASE
I had to set try_odbc to false in configure script to stop it from trying.

When I try to build with odbc I get the following error:
i386-redhat-linux-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" 
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" 
-DPACKAGE=\"libgda\" -DVERSION=\"0.10.0\" 
-DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-2\" -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-2\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 
-DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 
-DENABLE_NLS=1 -DHAVE_ODBC=1 -DHAVE_MYSQL=1 -DHAVE_POSTGRES=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../.. -D_REENTRANT 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 
-I/usr/include -O2 -march=i386 -mcpu=i686 -Wall -Wunused -Wchar-subscripts 
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
-Wno-sign-compare -c gda-odbc-provider.c  -fPIC -DPIC -o 
.libs/gda-odbc-provider.lo
gda-odbc-provider.c:25:20: config.h: No such file or directory
make[2]: *** [gda-odbc-provider.lo] Error 1
make[2]: Leaving directory 
`/usr/src/redhat/BUILD/libgda-0.10.0/providers/odbc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/libgda-0.10.0/providers'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.13005 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.13005 (%build)

When I try to build without odbc I get the following error:
i386-redhat-linux-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" 
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" 
-DPACKAGE=\"libgda\" -DVERSION=\"0.10.0\" 
-DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-2\" -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-2\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 
-DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 
-DENABLE_NLS=1 -DHAVE_MYSQL=1 -DHAVE_POSTGRES=1 -DHAVE_SYBASE=1 -DHAVE_LDAP=1 
-DHAVE_POPT_H=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1 -I. 
-I. -I/opt/sybase-12.5/OCS/include -I../.. -I../.. -D_REENTRANT 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 
-O2 -march=i386 -mcpu=i686 -Wall -Wunused -Wchar-subscripts 
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith 
-Wno-sign-compare -c gda-sybase-provider.c  -fPIC -DPIC -o 
.libs/gda-sybase-provider.lo
In file included from gda-sybase-provider.c:31:
gda-sybase.h:45:32: gda-sybase-schemas.h: No such file or directory
make[2]: *** [gda-sybase-provider.lo] Error 1
make[2]: Leaving directory 
`/usr/src/redhat/BUILD/libgda-0.10.0/providers/sybase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/libgda-0.10.0/providers'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.61459 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.61459 (%build)


Some other warnings during the build:
gda-data-model.c: In function `gda_data_model_describe_column':
gda-data-model.c:374: warning: passing arg 1 of `gda_value_get_type' discards 
qualifiers from pointer target type
gda-data-model.c: In function `gda_data_model_to_xml_node':
gda-data-model.c:859: warning: assignment from incompatible pointer type
gda-data-model.c:861: warning: passing arg 1 of `xmlSetProp' from incompatible 
pointer type
gda-data-model.c:872: warning: passing arg 1 of `xmlFreeNode' from 
incompatible pointer type
gda-data-model.c:876: warning: passing arg 1 of `xmlNewChild' from 
incompatible pointer type
gda-data-model.c:879: warning: implicit declaration of function 
`gda_type_to_string'
gda-data-model.c:879: warning: passing arg 3 of `xmlSetProp' makes pointer 
from integer without a cast
gda-data-model.c:895: warning: passing arg 1 of `xmlNewChild' from 
incompatible pointer type
gda-data-model.c:904: warning: passing arg 1 of `gda_value_stringify' discards 
qualifiers from pointer target type
gda-data-model.c:913: warning: return from incompatible pointer type

gda-select.c: In function `gda_select_append_row':
gda-select.c:106: warning: unused variable `row'
gda-select.c: In function `gda_select_init':
gda-select.c:134: warning: unused variable `i'
gda-select.c: In function `gda_select_finalize':
gda-select.c:159: warning: unused variable `l'
gda-select.c: In function `gda_select_add_source':
gda-select.c:258: warning: passing arg 3 of `g_hash_table_insert' discards 
qualifiers from pointer target type

gda-mysql-provider.c: In function `process_sql_commands': 
gda-mysql-provider.c:349: warning: passing arg 1 of 
`gda_data_model_set_command_text' from incompatible pointer type 
gda-mysql-provider.c:350: warning: passing arg 1 of 
`gda_data_model_set_command_type' from incompatible pointer type 
gda-mysql-provider.c: In function `add_aggregate_row': 
gda-mysql-provider.c:676: warning: implicit declaration of function 
`gda_type_to_string' gda-mysql-provider.c:676: warning: passing arg 1 of 
`gda_value_new_string' makes pointer from integer without a cast 
gda-mysql-provider.c:678: warning: passing arg 1 of `gda_value_new_string' 
makes pointer from integer without a cast gda-mysql-provider.c:684: warning: 
passing arg 2 of `g_list_foreach' from incompatible pointer type 
gda-mysql-provider.c:662: warning: unused variable `value' 
gda-mysql-provider.c: In function `get_mysql_tables': 
gda-mysql-provider.c:884: warning: assignment from incompatible pointer type 
gda-mysql-provider.c:896: warning: passing arg 1 of `gda_value_stringify' 
discards qualifiers from pointer target type gda-mysql-provider.c:903: 
warning: passing arg 1 of `gda_value_stringify' discards qualifiers from 
pointer target type gda-mysql-provider.c:913: warning: passing arg 1 of 
`gda_value_stringify' discards qualifiers from pointer target type



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