Summary: | x11-misc/lightdm-gtk-greeter-2.0.1-r1 : lightdm-gtk-greeter.c:1935:9: error: too few arguments to function ‘lightdm_greeter_authenticate’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Marek Szuba (RETIRED) <marecki> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | orzel, Sander.Sweers, sven.eden |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://launchpad.net/bugs/1606183 https://bugs.gentoo.org/show_bug.cgi?id=627208 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-history.txt
environment x11-misc:lightdm-gtk-greeter-2.0.1-r1:20160713-164537.log comment lightdm-gtk-greeter-2.0.1-lightdm-1.19.patch add address operator to the added error variable in previous patch |
Description
Toralf Förster
![]() Created attachment 440582 [details]
emerge-history.txt
Created attachment 440584 [details]
environment
Created attachment 440586 [details]
x11-misc:lightdm-gtk-greeter-2.0.1-r1:20160713-164537.log
I have the same issue. the same I'd like to add that lightdm-gtk-greeter compiles just fine with lightdm-1.8.1, so it's most likely some api change in newer versions. Created attachment 441800 [details]
comment
Created attachment 442616 [details, diff]
lightdm-gtk-greeter-2.0.1-lightdm-1.19.patch
I have quickly added as the last parameter GError *error to the affected function calls in x11-misc/lightdm-gtk-greeter-2.0.1-r1, and it compiled successfully against x11-misc/lightdm-1.19.3.
(In reply to Honza Macháček from comment #8) > Created attachment 442616 [details, diff] [details, diff] > lightdm-gtk-greeter-2.0.1-lightdm-1.19.patch > > I have quickly added as the last parameter GError *error to the affected > function calls in x11-misc/lightdm-gtk-greeter-2.0.1-r1, and it compiled > successfully against x11-misc/lightdm-1.19.3. The functions want (GError **), so with your patch, the compiler gives out a ton of warnings about incompatible pointer types. So instead of (example) : lightdm_greeter_authenticate (greeter, NULL, error); it should patch to : lightdm_greeter_authenticate (greeter, NULL, &error); Then the greeter compiles fine with just one warning about "gdk_cursor_new" being deprecated, which can be happily ignored by now. Forgot to mention, upstream bug is here: https://bugs.launchpad.net/lightdm-gtk-greeter/+bug/1606183 Created attachment 443146 [details, diff]
add address operator to the added error variable in previous patch
This patch just sets the proper type of the new error variable by submitting its pointer.
(In reply to Sven Eden from comment #11) > Created attachment 443146 [details, diff] [details, diff] > add address operator to the added error variable in previous patch > > This patch just sets the proper type of the new error variable by submitting > its pointer. Thanks, the patch seems to work for me. Can I assume this does not happen when compiling against some versions of x11-misc/lightdm? (In reply to Jeroen Roovers from comment #13) > Can I assume this does not happen when compiling against some versions of > x11-misc/lightdm? Yes, it's fine with stable x11-misc/lightdm-1.16.7. |