This is a discussion on build/install xml2 when configured with libxml within the Pgsql Patches forums, part of the PostgreSQL category; --> Since contrib/xml2 seems to be staying with us at least for now, this small patch enables it to be ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Since contrib/xml2 seems to be staying with us at least for now, this small patch enables it to be built and installed from the contrib Makefile when --with-libxml is given to configure. If there's no objection I'll apply in a day or two. cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| |||
| Andrew Dunstan wrote: > Since contrib/xml2 seems to be staying with us at least for now, this > small patch enables it to be built and installed from the contrib > Makefile when --with-libxml is given to configure. contrib/xml2 also requires libxslt. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| |||
| Peter Eisentraut wrote: > Andrew Dunstan wrote: > >> Since contrib/xml2 seems to be staying with us at least for now, this >> small patch enables it to be built and installed from the contrib >> Makefile when --with-libxml is given to configure. >> > > contrib/xml2 also requires libxslt. > > Well, how often is libxslt missing when libxml is present, in practice? And if it is, then you have several options: .. don't configure with libxml, or .. don't build contrib modules from the contrib Makefile (use the individual module Makefiles instead), or .. change the xml2 Makefile My main purpose is to complete buildfarm build coverage. cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate |
| |||
| Andrew Dunstan wrote: > Well, how often is libxslt missing when libxml is present, in > practice? A local sample shows a probability of 100%. > And if it is, then you have several options: > . don't configure with libxml, or > . don't build contrib modules from the contrib Makefile (use the > individual module Makefiles instead), or > . change the xml2 Makefile Any of these could be worth considering, but it needs to be thought through first. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org |
| |||
| Peter Eisentraut wrote: >> And if it is, then you have several options: >> . don't configure with libxml, or >> . don't build contrib modules from the contrib Makefile (use the >> individual module Makefiles instead), or >> . change the xml2 Makefile >> > > Any of these could be worth considering, but it needs to be thought > through first. > > Well, I'm happy to receive suggestions. cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| |||
| Andrew Dunstan wrote: > Peter Eisentraut wrote: > >> And if it is, then you have several options: > >> . don't configure with libxml, or > >> . don't build contrib modules from the contrib Makefile (use the > >> individual module Makefiles instead), or > >> . change the xml2 Makefile > >> > > > > Any of these could be worth considering, but it needs to be thought > > through first. > > > > > > Well, I'm happy to receive suggestions. Andrew has enabled /contrib/xml2 builds. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| |||
| Bruce Momjian wrote: > Andrew Dunstan wrote: > >> Peter Eisentraut wrote: >> >>>> And if it is, then you have several options: >>>> . don't configure with libxml, or >>>> . don't build contrib modules from the contrib Makefile (use the >>>> individual module Makefiles instead), or >>>> . change the xml2 Makefile >>>> >>>> >>> Any of these could be worth considering, but it needs to be thought >>> through first. >>> >>> >>> >> Well, I'm happy to receive suggestions. >> > > Andrew has enabled /contrib/xml2 builds. > > And in turn we have found some warnings we should look at cleaning up, e.g.: ccache gcc -no-cpp-precomp -I/opt/libxml2-2.6.27_20070107/include/libxml2 -I. -I../../src/include -I/opt/libxml2-2.6.27_20070107/include/libxml2 -c -o xpath.o xpath.c -MMD -MP -MF .deps/xpath.Po xpath.c: In function 'xml_encode_special_chars': xpath.c:212: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness xpath.c: In function 'pgxmlNodeSetToText': xpath.c:268: warning: pointer targets in passing argument 2 of 'xmlBufferWriteChar' differ in signedness xpath.c: In function 'pgxml_result_to_text': xpath.c:607: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness xpath.c:612: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness xpath.c: In function 'xpath_table': xpath.c:663: warning: pointer targets in initialization differ in signedness xpath.c:738: warning: pointer targets in assignment differ in signedness xpath.c:742: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness xpath.c:742: warning: pointer targets in passing argument 2 of 'strstr' differ in signedness xpath.c:742: warning: pointer targets in assignment differ in signedness xpath.c:896: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness xpath.c:904: warning: pointer targets in assignment differ in signedness ccache gcc -no-cpp-precomp -I/opt/libxml2-2.6.27_20070107/include/libxml2 -I. -I../../src/include -I/opt/libxml2-2.6.27_20070107/include/libxml2 -c -o xslt_proc.o xslt_proc.c -MMD -MP -MF .deps/xslt_proc.Po xslt_proc.c: In function 'xslt_process': xslt_proc.c:105: warning: pointer targets in passing argument 1 of 'xsltParseStylesheetFile' differ in signedness cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| |||
| Bruce Momjian wrote: > Andrew Dunstan wrote: > >> Peter Eisentraut wrote: >> >>>> And if it is, then you have several options: >>>> . don't configure with libxml, or >>>> . don't build contrib modules from the contrib Makefile (use the >>>> individual module Makefiles instead), or >>>> . change the xml2 Makefile >>>> >>>> >>> Any of these could be worth considering, but it needs to be thought >>> through first. >>> >>> >>> >> Well, I'm happy to receive suggestions. >> > > Andrew has enabled /contrib/xml2 builds. > > The attached patch adds a test for libxslt/xslt.h and only builds contrib/xml2 if it's found, which I think should handle Peter's objection, as well as unbreak the buildfarm. (The patch is large because cvs diff seems to have behaved a bit oddly with the configure script - but otherwise it's fairly minimal). cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate |
| |||
| Andrew Dunstan <andrew@dunslane.net> writes: > The attached patch adds a test for libxslt/xslt.h and only builds > contrib/xml2 if it's found, which I think should handle Peter's > objection, as well as unbreak the buildfarm. (The patch is large because > cvs diff seems to have behaved a bit oddly with the configure script - > but otherwise it's fairly minimal). [squint...] Are you using the same autoconf version as the rest of us? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| ||||
| Andrew Dunstan wrote: > The attached patch adds a test for libxslt/xslt.h and only builds > contrib/xml2 if it's found, But the policy is that the presence of features in the final build should not depend on the incidental presence of features in the build environment. Either you select a feature, then it's built, or you don't, then it's not. So the only options we really have are adding another switch for libxslt, or including it with libxml. I'm not sure which is better. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |
| Thread Tools | |
| Display Modes | |
|
|