Skip to content

Compilation error linked to deprecation ? #1

Description

@vlycop

Hello :)
I realise that this project is as dead as the mir:ror.
I still have one, and since i am tinkering with dbus, i wanted to use it with your tool, it really sounded amazing to me.

Sadly it won't compile, surely because thing have evolved since.
First error i got was

reflectd.vala:148.46-156.2: error: value is less accessible than constant `Main.entries'
  148 | 	public static const OptionEntry[] entries = {
      | 	                                            ^
  149 | 		{"version", 'v', OptionFlags.NO_ARG, OptionArg.CALLBACK,
      | 		~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  150 | 			(void *)show_version_and_quit, N_("Show the application's version"), null},
      | 			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  151 | 		{"system", 0, 0, OptionArg.NONE,
      | 		~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  152 | 			ref system, N_("Use system message bus."), null},
      | 			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  153 | 		{"session", 0, 0, OptionArg.NONE,
      | 		~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  154 | 			ref session, N_("Use session message bus."), null},
      | 			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  155 | 		{null}
      | 		~~~~~~
  156 | 	};
      | 	~ 

I removed the public flag and it went onward.
No i'm stuck with

/usr/include/glib-2.0/glib/gi18n-lib.h:27:2: error: #error You must define GETTEXT_PACKAGE before including gi18n-lib.h. Did you forget to include config.h?
   27 | #error You must define GETTEXT_PACKAGE before including gi18n-lib.h.  Did you forget to include config.h?
      |  ^~~~~

I do see that the config.h is stored in a var, but with the level of abstraction and variable in variable make does, i can't read it to understand it :(

I am hopping you know how to quickly fix it and that it will be so trivial it would be worth it, but i would understand that you don't want to spend any time on this.

I am running fedora 36 and Vala 0.56.1

Have a good day

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions