Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling gjallarhorn fails on Debian Stable #179

Open
flack opened this issue Oct 2, 2012 · 5 comments
Open

Compiling gjallarhorn fails on Debian Stable #179

flack opened this issue Oct 2, 2012 · 5 comments

Comments

@flack
Copy link
Member

flack commented Oct 2, 2012

I just tried compiling gjallarhorn on Debian stable, with the following config:

./autogen.sh --prefix=/usr --with-dbus-support --enable-introspection=no

When I run make, I get the following output:

make
make  all-am
make[1]: Entering directory `/var/repos/midgard-core'
  CC     src_libmidgard2_la-midgard.lo
  CC     src_libmidgard2_la-midgard_base_abstract.lo
  CC     src_libmidgard2_la-midgard_base_interface.lo
  CC     src_libmidgard2_la-midgard_base_mixin.lo
  CC     src_libmidgard2_la-midgard_content_manager.lo
  CC     src_libmidgard2_la-midgard_key_config.lo
  CC     src_libmidgard2_la-midgard_key_config_context.lo
  CC     src_libmidgard2_la-midgard_key_config_file.lo
  CC     src_libmidgard2_la-midgard_key_config_file_context.lo
  CC     src_libmidgard2_la-midgard_object.lo
src/midgard_object.c:4010:2: warning: #warning "Get workspace via WorkspaceManager"
  CC     src_libmidgard2_la-uuid.lo
  CC     src_libmidgard2_la-guid.lo
  CC     src_libmidgard2_la-midgard_type.lo
  CC     src_libmidgard2_la-midgard_config.lo
  CC     src_libmidgard2_la-query_builder.lo
  CC     src_libmidgard2_la-midgard_metadata.lo
  CC     src_libmidgard2_la-midgard_timestamp.lo
  CC     src_libmidgard2_la-midgard_reflection_property.lo
  CC     src_libmidgard2_la-midgard_connection.lo
src/midgard_connection.c: In function ‘__midgard_connection_open’:
src/midgard_connection.c:560: error: ‘GDA_CONNECTION_OPTIONS_THREAD_ISOLATED’ undeclared (first use in this function)
src/midgard_connection.c:560: error: (Each undeclared identifier is reported only once
src/midgard_connection.c:560: error: for each function it appears in.)
make[1]: *** [src_libmidgard2_la-midgard_connection.lo] Fehler 1
make[1]: Leaving directory `/var/repos/midgard-core'
make: *** [all] Fehler 2
@piotras
Copy link
Member

piotras commented Oct 3, 2012

It will be "self fixed" with upcoming new debian stable release. As a workaround I propose to edit source file and replace GDA_CONNECTION_OPTIONS_THREAD_ISOLATED with GDA_CONNECTION_OPTIONS_THREAD_SAFE.

@brainformance-cledeg
Copy link

your workaround results in:
src/midgard_connection.c: In function '__midgard_connection_open':
src/midgard_connection.c:560: error: 'GDA_CONNECTION_OPTIONS_THREAD_SAFE' undeclared (first use in this function)
src/midgard_connection.c:560: error: (Each undeclared identifier is reported only once
src/midgard_connection.c:560: error: for each function it appears in.)

@piotras
Copy link
Member

piotras commented Nov 14, 2012

Please, paste output:

grep -re OPTIONS /usr/include/libgda-4.0/libgda/gda-connection.h

@brainformance-cledeg
Copy link

  • @GDA_CONNECTION_OPTIONS_NONE: no specific aspect
  • @GDA_CONNECTION_OPTIONS_READ_ONLY: this flag specifies that the connection to open should be in a read-only mode
  • @GDA_CONNECTION_OPTIONS_THREAD_SAFE: this flag specifies that the connection to open will be used
  • @GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE: this flag specifies that SQL identifiers submitted as input
  • Additionnal information about the GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE flag:
    GDA_CONNECTION_OPTIONS_NONE = 0,
    GDA_CONNECTION_OPTIONS_READ_ONLY = 1 << 0,
    GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE = 1 << 1

@brainformance-cledeg
Copy link

i added the enum GDA_CONNECTION_OPTIONS_THREAD_SAFE = 1 << 2 in /usr/include/libgda-4.0/libgda/gda-connection.h and now it seems to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants