Emil Brink wrote:
> > libsigrok/.libs/libsigrok.so: undefined reference to
> > `g_ptr_array_new_with_free_func'
> 
> See this page for the API documentation:
> 
> http://library.gnome.org/devel/glib/stable/glib-Pointer-Arrays.html#g-ptr-array-new-with-free-func
> 
> It seems you need at least version 2.22 of glib, so verify that you
> indeed have that installed.
> 
> I've had issues with software I've written that the rules in the
> configure script were out of date, then things like these can happen.
> I'm not saying that is the case with sigrok, just an idea (I don't
> have the code handy).

Yup. Patch is attached.


//Peter
>From 579be45db0c49956ed44ba5a08332229c529edff Mon Sep 17 00:00:00 2001
From: Peter Stuge <[email protected]>
Date: Thu, 3 Mar 2011 03:43:32 +0100
Subject: [PATCH] configure.ac: Loading session files requires glib-2.22.0

---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 91d270d..996ee13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,7 +132,7 @@ fi
 # Checks for libraries.
 
 # libglib-2.0 is always needed.
-AM_PATH_GLIB_2_0(2.0.0,
+AM_PATH_GLIB_2_0(2.22.0,
        CFLAGS="$CFLAGS $GLIB_CFLAGS"; LIBS="$LIBS $GLIB_LIBS")
 
 # libgthread-2.0 is always needed (e.g. for the demo hardware driver).
-- 
1.7.2

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to