compile error in contrib/xml2
compile error in contrib/xml2
От:
Markus Bertheau <twanger@bluetwanger.de>
Дата:
Hi, I'm trying to compile the CVS version of contrib/xml2 for postgresql-7.4.2. I'm hitting that error: [bertheau@dicaprio pgxml2]$ gcc -fpic -c xpath.c -I`pg_config --includedir-server` `pkg-config libxml-2.0 --cflags` xpath.c: In function `xpath_table': xpath.c:653: error: `work_mem' undeclared (first use in this function) xpath.c:653: error: (Each undeclared identifier is reported only once xpath.c:653: error: for each function it appears in.) I haven't found a declaration of work_mem anywhere in /usr/include/pgsql - what am I doing wrong? -- Markus Bertheau
Re: compile error in contrib/xml2
От:
John Gray <jgray@azuli.co.uk>
Дата:
On Fri, 09 Jul 2004 16:04:30 +0200, Markus Bertheau wrote: > Hi, > > I'm trying to compile the CVS version of contrib/xml2 for > postgresql-7.4.2. I'm hitting that error: > > [bertheau@dicaprio pgxml2]$ gcc -fpic -c xpath.c -I`pg_config --includedir-server` `pkg-config libxml-2.0 --cflags` > xpath.c: In function `xpath_table': > xpath.c:653: error: `work_mem' undeclared (first use in this function) > xpath.c:653: error: (Each undeclared identifier is reported only once > xpath.c:653: error: for each function it appears in.) > This is because the variable sort_mem in 7.4 and before was renamed to work_mem in 7.5. If you change any occurrence of work_mem to sort_mem in contrib/xml2 then it should work. Please let me know if you have any further problems. John > I haven't found a declaration of work_mem anywhere in /usr/include/pgsql > - what am I doing wrong?