Thread: xml2 compile error - work_mem undeclared
I am trying to compile contrib/xml2 under version 7.3.2, and receive the following error message:
xpath.c:659: error: `work_mem' undeclared (first use in this function)
xpath.c:659: error: (Each undeclared identifier is reported only once
xpath.c:659: error: for each function it appears in.)
xpath.c:659: error: too many arguments to function `tuplestore_begin_heap'
Can someone help?
George
Vishal, I do not have libxpath installed, but I have installed libxml2, libxml2-devel, and libxslt from Cygwin. I have solved the compilation problem by using SortMem in place of work_mem and removing one of the arguments to align with the tuplestore.h version of 7.3.2 which only takes two arguements. Now I receive the message: dlltool --export-all --output-def pgxml.def xpath.o xslt_proc.o dllwrap -o pgxml.dll --dllname pgxml.dll --def pgxml.def xpath.o xslt_proc.o ../../src /utils/dllinit.o -L/usr/local/lib -lxml2 -lxslt -L../../src/backend -lpostgres /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/ld: cannot find -lxml2 collect2: ld returned 1 exit status dllwrap: gcc exited with status 1 make: *** [libpgxml.a] Error 1 George ----- Original Message ----- From: "Vishal Kashyap @ [SaiHertz]" <vishalonlist@gmail.com> To: "George Weaver" <gweaver@shaw.ca> Sent: Monday, November 22, 2004 2:11 PM Subject: Re: [NOVICE] xml2 compile error - work_mem undeclared > Is libxpath installed > > > On Mon, 22 Nov 2004 13:48:50 -0600, George Weaver <gweaver@shaw.ca> wrote: >> >> I am trying to compile contrib/xml2 under version 7.3.2, and receive the >> following error message: >> >> >> xpath.c:659: error: `work_mem' undeclared (first use in this function) >> xpath.c:659: error: (Each undeclared identifier is reported only once >> xpath.c:659: error: for each function it appears in.) >> xpath.c:659: error: too many arguments to function >> `tuplestore_begin_heap' >> Can someone help? >> >> George >> >> >> >> > > > -- > With Best Regards, > Vishal Kashyap. > Did you know SaiPACS is one and only PACS > Management tool. > http://saihertz.com, > http://vishalkashyap.tk >