dbTalk Databases Forums  

[BUGS] compile error in contrib/xml2

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] compile error in contrib/xml2 in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Markus Bertheau
 
Posts: n/a

Default [BUGS] compile error in contrib/xml2 - 07-09-2004 , 09:14 AM






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 <twanger (AT) bluetwanger (DOT) de>


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

Reply With Quote
  #2  
Old   
John Gray
 
Posts: n/a

Default Re: [BUGS] compile error in contrib/xml2 - 07-09-2004 , 06:10 PM






On Fri, 09 Jul 2004 16:04:30 +0200, Markus Bertheau wrote:

Quote:
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


Quote:
I haven't found a declaration of work_mem anywhere in /usr/include/pgsql
- what am I doing wrong?

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.