6.0.0 + master: build fails
Just texted libgda up to the 884f3bc5 and looks like there are at least two issues:
- build fails because
LIBGDA_ABI_NAME
is unknowsn - looks like it is not possible to use latest vala
[1/4] Compiling C object providers/web/libgda-web-6.0.so.p/libmain.c.o
FAILED: providers/web/libgda-web-6.0.so.p/libmain.c.o
/usr/bin/gcc -Iproviders/web/libgda-web-6.0.so.p -Iproviders/web -I../providers/web -I. -I.. -Ilibgda -I../libgda -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/libsecret-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -pthread -include /home/tkloczko/rpmbuild/BUILD/libgda-6.0.0/x86_64-redhat-linux-gnu/config.h -MD -MQ providers/web/libgda-web-6.0.so.p/libmain.c.o -MF providers/web/libgda-web-6.0.so.p/libmain.c.o.d -o providers/web/libgda-web-6.0.so.p/libmain.c.o -c ../providers/web/libmain.c
../providers/web/libmain.c: In function ‘plugin_get_dsn_spec’:
../providers/web/libmain.c:83:52: error: ‘LIBGDA_ABI_NAME’ undeclared (first use in this function)
83 | dir = gda_gbr_get_file_path (GDA_DATA_DIR, LIBGDA_ABI_NAME, NULL);
| ^~~~~~~~~~~~~~~
../providers/web/libmain.c:83:52: note: each undeclared identifier is reported only once for each function it appears in
../providers/web/libmain.c:84:15: warning: implicit declaration of function ‘gda_server_provider_load_file_contents’; did you mean ‘gda_server_provider_load_resource_contents’? [-Wimplicit-function-declaration]
84 | ret = gda_server_provider_load_file_contents (module_path, dir, "web_specs_dsn.xml");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| gda_server_provider_load_resource_contents
../providers/web/libmain.c:84:13: warning: assignment to ‘gchar *’ {aka ‘char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
84 | ret = gda_server_provider_load_file_contents (module_path, dir, "web_specs_dsn.xml");
| ^
../providers/web/libmain.c: In function ‘plugin_get_auth_spec’:
../providers/web/libmain.c:97:52: error: ‘LIBGDA_ABI_NAME’ undeclared (first use in this function)
97 | dir = gda_gbr_get_file_path (GDA_DATA_DIR, LIBGDA_ABI_NAME, NULL);
| ^~~~~~~~~~~~~~~
../providers/web/libmain.c:98:13: warning: assignment to ‘gchar *’ {aka ‘char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
98 | ret = gda_server_provider_load_file_contents (module_path, dir, "web_specs_auth.xml");
| ^
[2/4] Generating libgda-6.0 with a custom command
FAILED: libgda/libgda-6.0.vapi
/usr/bin/vapigen-0.54 --girdir=/home/tkloczko/rpmbuild/BUILD/libgda-6.0.0/libgda --metadatadir=/home/tkloczko/rpmbuild/BUILD/libgda-6.0.0/libgda --library=libgda-6.0 --directory=/home/tkloczko/rpmbuild/BUILD/libgda-6.0.0/x86_64-redhat-linux-gnu/libgda --pkg=libxml-2.0 --pkg=gio-2.0 libgda/Gda-6.0.gir ../libgda/Gda-6.0-custom.vala
Gda-6.0.gir:46993.7-46994.88: error: `Gda.SqlStatement' already contains a definition for `get_contents_infos'
Gda-6.0-custom.vala:95.3-95.63: note: previous definition of `get_contents_infos' was here
public static Gda.SqlStatementContentsInfo get_contents_infos (Gda.SqlStatementType type);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Generation failed: 1 error(s), 0 warning(s)
ninja: build stopped: cannot make progress due to previous errors.