Problem compiling under Ubuntu and connecting to postgresql

dick <dickkniep-nI4mw7d/IixmR6Xm/[email protected]> Thu, 26 Nov 2009 22:37:18 +0100
Newsgroups gmane.text.rlib.user
Organization Lindix
Message-ID <[email protected]>
hi list,

We are trying to use rlib in our application (very large python application 
with postgresql) and want to dynamically create XML to generate standard 
reports on the fly.

Currently we are trying to get started. Now I have a couple of problems.

1. When we compile the library, we do not get rlib, but only an rlibcompat 
that we can import. Why is this happening. However, if it still works no 
problem.


2. When we try one of the simple examples
---------//-------------

import sys
sys.path.append('/usr/lib/python2.6/site-packages')
import rlibcompat as rlib

myrlib = rlib.rlib_init();
rlib.rlib_add_datasource_postgre(myrlib, "cvix", 
"Host=localhost;Database=cvix;User Id=postgres");
rlib.rlib_add_query_as(myrlib, "cvix", "select * FROM 
adeuxproductie.producten", "products");
rlib.rlib_add_report(myrlib, "products.xml");
rlib.rlib_set_output_format_from_text(myrlib, "pdf");
rlib.rlib_execute(myrlib);
rlib.rlib_spool(myrlib);
rlib.rlib_free(myrlib);

---------//-------------

I get the following error:

desktop:~/rlib-1.3.7/src/examples/python$ python compat-example.py
Could Not Load POSTGRES Input [/usr/local/lib/libr-postgres.so: undefined 
symbol: g_free]
rlib_add_query_as: Could not find input source [cvix]!
No queries added to report

It looks like it is trying to use g_free that is not available. Is that 
because rlib simply does not work with newer versions of Postgresql?

-- 
Cheers,
D. Kniep

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july