X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E03378B9C51 for ; Mon, 21 Feb 2005 20:36:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27656-04 for ; Mon, 21 Feb 2005 20:36:27 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.250.190.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0F1058B9C3C for ; Mon, 21 Feb 2005 20:36:27 +0000 (GMT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 931F630DCF; Mon, 21 Feb 2005 21:36:27 +0100 (MET) From: Mirko Zeibig X-Newsgroups: pgsql.sql Subject: Re: FW: Working with XML. Date: Mon, 21 Feb 2005 21:36:17 +0100 Organization: Hub.Org Networking Services Lines: 31 Message-ID: <421A4641.7010504@zeibig.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org Cc: Theo.Galanakis@lonelyplanet.com.au User-Agent: Mozilla Thunderbird 0.9 (X11/20041127) X-Accept-Language: en-us, en In-Reply-To: To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200502/261 X-Sequence-Number: 20372 Theo Galanakis wrote: > Hi, > I have copied all the files manually from http > > ://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