Vasily gave me this patch last year when i came across the same
problem.. granted I was still in ver 4.. you may take the lines from the
patch and apply manually if the code has changed... 

The problem is,
g_slist_free_full replaced g_free() in 2.28... 

On 31.01.2013 10:01,
Pavel Herrmann wrote: 

> On Wednesday 30 of January 2013 21:59:08 Pavel
Herrmann wrote:
> 
>> Hi, On Wednesday 30 of January 2013 16:18:40
newzenca wrote: 
>> 
>>> El mié, 30-01-2013 a las 17:53 +0100, Bastien
Nocera escribió: 
>>> 
>>>> On Wed, 2013-01-30 at 12:07 -0430, newzenca
wrote: 
>>>> 
>>>>> Hello. i get this problem [newzen@i5Desk v_0_5_0]$
make
>>>> 
>>>>> drivers/aes1610.c: En la función
'capture_read_strip_cb': drivers/aes1610.c:619: error: declaración
implícita de la función 'g_slist_free_full'
>>>> You need GLib 2.28 or
newer. The check is fixed in master. See:
https://bugs.freedesktop.org/show_bug.cgi?id=59790 [1] Cheers
>>> that
interesting, becouse i have to change my distro for , actually im
working with Centos 6.3 glib version is glibc-2.12-1.80.el6_3.6.x86_64.
is there any way to patch for Centos distro?
>> I would look into
non-system-vendor repositories first, theres a good chance you will find
newer glib compatible with your system there
> 
> scratch that, glib and
glibc are two separate things
> 
>
_______________________________________________
> fprint mailing list
>
[email protected]
>
http://lists.freedesktop.org/mailman/listinfo/fprint




Links:
------
[1] https://bugs.freedesktop.org/show_bug.cgi?id=59790
diff --git a/libfprint/drivers/aes1610.c b/libfprint/drivers/aes1610.c
index 2e04c59..a4847fb 100644
--- a/libfprint/drivers/aes1610.c
+++ b/libfprint/drivers/aes1610.c
@@ -616,7 +616,8 @@ static void capture_read_strip_cb(struct libusb_transfer 
*transfer)
                aesdev->strips = g_slist_reverse(aesdev->strips);
                img = aes_assemble(aesdev->strips, aesdev->strips_len,
                        FRAME_WIDTH, FRAME_HEIGHT);
-               g_slist_free_full(aesdev->strips, g_free);
+               g_slist_foreach(aesdev->strips, (GFunc) g_free, NULL);
+               g_slist_free(aesdev->strips);
                aesdev->strips = NULL;
                aesdev->strips_len = 0;
                aesdev->blanks_count = 0;
diff --git a/libfprint/drivers/aes2501.c b/libfprint/drivers/aes2501.c
index 75d19fc..f4912b7 100644
--- a/libfprint/drivers/aes2501.c
+++ b/libfprint/drivers/aes2501.c
@@ -485,7 +485,8 @@ static void capture_read_strip_cb(struct libusb_transfer 
*transfer)
                        aesdev->strips = g_slist_reverse(aesdev->strips);
                        img = aes_assemble(aesdev->strips, aesdev->strips_len,
                                FRAME_WIDTH, FRAME_HEIGHT);
-                       g_slist_free_full(aesdev->strips, g_free);
+                       g_slist_foreach(aesdev->strips, (GFunc) g_free, NULL);
+                       g_slist_free(aesdev->strips);
                        aesdev->strips = NULL;
                        aesdev->strips_len = 0;
                        fpi_imgdev_image_captured(dev, img);
diff --git a/libfprint/drivers/aes2550.c b/libfprint/drivers/aes2550.c
index 96ce590..30b6dc6 100644
--- a/libfprint/drivers/aes2550.c
+++ b/libfprint/drivers/aes2550.c
@@ -252,7 +252,8 @@ static void capture_set_idle_reqs_cb(struct libusb_transfer 
*transfer)
                aesdev->strips = g_slist_reverse(aesdev->strips);
                img = aes_assemble(aesdev->strips, aesdev->strips_len,
                        FRAME_WIDTH, FRAME_HEIGHT);
-               g_slist_free_full(aesdev->strips, g_free);
+               g_slist_foreach(aesdev->strips, (GFunc) g_free, NULL);
+               g_slist_free(aesdev->strips);
                aesdev->strips = NULL;
                aesdev->strips_len = 0;
                fpi_imgdev_image_captured(dev, img);
_______________________________________________
fprint mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/fprint

Reply via email to