Re: FW: Working with XML.

From: Mirko Zeibig <mirko-postgresql(at)zeibig(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Cc: Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au
Subject: Re: FW: Working with XML.
Date: 2005-02-21 20:36:17
Message-ID: 421A4641.7010504@zeibig.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Theo Galanakis wrote:
> Hi,
> I have copied all the files manually from http
> <http://developer.postgresql.org/docs/pgsql/contrib/>
> ://developer.postgresql.org/docs/pgsql/contrib/ for the xml2 contribution.
> However I have the following issue when I attempt to compile with gmake:
>
> gcc -I/usr/include/libxml2 -fpic -I. -I../../src/include -D_GNU_SOURCE -c
> -o xpath.o xpath.c
> xpath.c: In function `xpath_table':
> xpath.c:689: `work_mem' undeclared (first use in this function)
> xpath.c:689: (Each undeclared identifier is reported only once
> xpath.c:689: for each function it appears in.)
> gmake: *** [xpath.o] Error 1
>
> I have installed :
>
> libxml2-devel-2.5.10-1.rpm
>
> What am I doing wrong, or can someone point me to the direction of a binary
> for XML2 on RedHat ES3, Postgres 7.4.5.

Hello Theo,

this has nothing to do with libxml2. `work_mem` is a variable declared
in one of the PostgreSQL include files. The `-I../../src/include`
directive in the compile statement above should point to the include-dir
of your PostgreSQL installation.

Regards
Mirko

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Martín Marqués 2005-02-21 20:42:54 Re: query for records based on date
Previous Message Brandon Metcalf 2005-02-21 20:00:06 query for records based on date