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

Libfm compilation error #31

Closed
agaida opened this issue Jul 23, 2017 · 8 comments
Closed

Libfm compilation error #31

agaida opened this issue Jul 23, 2017 · 8 comments

Comments

@agaida
Copy link
Member

agaida commented Jul 23, 2017

original reporter was Ilya87 lxqt/pcmanfm-qt#548

I use the following command line to compile libfm (master version):
./configure \ --without-gtk \ --disable-gtk-doc \ --disable-udisks \ --enable-actions \ --prefix="/usr" \ --sysconfdir="/etc" \ --disable-debug \ --disable-exif && make
build fails with error:
VALAC libfmactions_la_vala.stamp condition.vala:149.18-155.34: warning: unhandled errorGLib.Error'
condition.vala:192.8-193.40: warning: unhandled error GLib.SpawnError' action.vala:81.4-81.30: error: usenew' operator to create new objects
FileAction.from_keyfile(kf);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
action.vala:144.4-144.34: error: use new' operator to create new objects FileActionMenu.from_keyfile(kf); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ action.vala:185.28-185.31: warning: Argument 1: Cannot pass null to non-null parameter type cached_children.append(null); ^^^^ action.vala:177.8-177.82: warning: unhandled errorGLib.SpawnError'
if(Process.spawn_command_line_sync(command, out output, null, out exit_status)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
action.vala:238.21-238.24: warning: Argument 1: Cannot pass null to non-null parameter type
children.append(null);
^^^^
action.vala:334.10-334.40: warning: unhandled error GLib.KeyFileError' if(kf.load_from_file(full_path, 0)) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Compilation failed: 2 error(s), 6 warning(s)

vala version is 0.36.4

@agaida
Copy link
Member Author

agaida commented Jul 23, 2017

@LStranger: Would you be so kind and take care of it asap?

@tsujan
Copy link
Contributor

tsujan commented Jul 23, 2017

In short, these are the errors:

action.vala:81.4-81.30: error: use `new' operator to create new objects
                        FileAction.from_keyfile(kf);
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
action.vala:144.4-144.34: error: use `new' operator to create new objects
                        FileActionMenu.from_keyfile(kf);

@mtasaka
Copy link
Contributor

mtasaka commented Jul 23, 2017

Already being tracked on #22 .

@tsujan
Copy link
Contributor

tsujan commented Jul 23, 2017

Great! @agaida, could you merge it?

@tsujan
Copy link
Contributor

tsujan commented Jul 23, 2017

It's known since Apr 7 and the fix has been there for more that 3 months!!

@agaida
Copy link
Member Author

agaida commented Jul 24, 2017

done

@agaida agaida closed this as completed Jul 24, 2017
@drescherjm
Copy link

I just got this error in gentoo. rev 1.2.5 does not appear to have this fix.

@tsujan
Copy link
Contributor

tsujan commented Mar 16, 2019

@drescherjm pcmanfm-qt doesn't depend on libfm anymore.

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

4 participants