Thread: re: Please help for error ( file is required for XML support )

re: Please help for error ( file is required for XML support )

From
Ranier Vilela
Date:
>checking for libxml/parser.h... no
>configure: error: header file <libxml/parser.h> is required for XML support

sudo yum install libxml2-devel

You need to install the development package before ./configure.

regards,
Ranier Vilela

RE: Please help for error ( file is required for XML support )

From
Sachin Khanna
Date:

Package libxml2-devel-2.9.1-6.el7.4.ppc64le is already installed.

 

Thanks and Regards,
SACHIN KHANNA
212 BASIS DBA TEAM OFFSHORE

Office : 204058624
Cell : 9049522511

 

From: Ranier Vilela <ranier.vf@gmail.com>
Sent: Thursday, August 27, 2020 6:46 PM
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Sachin Khanna <Sachin_Khanna@infosys.com>
Subject: re: Please help for error ( file <libxml/parser.h> is required for XML support )

 

[**EXTERNAL EMAIL**]

>checking for libxml/parser.h... no
>configure: error: header file <libxml/parser.h> is required for XML support

 

sudo yum install libxml2-devel

 

You need to install the development package before ./configure.

 

regards,

Ranier Vilela

 

RE: Please help for error ( file is required for XML support )

From
Sachin Khanna
Date:

 

Now I can see the that libraries are identified in config.log . I also found some error in configuration file as well. Highlight below.

Please find the attached config.log file for reference.

Please help and let me know if I there is any issue in configuration script and I need to change it ?

 

I am using PostgreSQL version postgresql-12.3.tar.gz

 

configure:8291: checking for XML2_CONFIG

configure:8293: result: /usr/lib64/libxml2.so

configure:8416: checking for grep that handles long lines and -e

configure:8474: result: /bin/grep

configure:8479: checking for egrep

configure:8541: result: /bin/grep -E

configure:8588: checking for ld used by GCC

configure:8651: result: /bin/ld

configure:8658: checking if the linker (/bin/ld) is GNU ld

GNU ld version 2.27-44.base.el7

 

at-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2  -D_GNU_SOURCE  conftest.c >&5

conftest.c: In function 'main':

conftest.c:76:20: error: expected expression before ')' token

if (sizeof ((_Bool)))

                    ^

configure:12910: $? = 1

configure: failed program was:

| /* confdefs.h */

 

at-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2  -D_GNU_SOURCE  conftest.c >&5

conftest.c:75:20: fatal error: atomic.h: No such file or directory

#include <atomic.h>

                    ^

compilation terminated.

 

 

| #include <libxml/parser.h>

configure:13266: result: no

configure:13266: checking libxml/parser.h presence

configure:13266: gcc -std=gnu99 -E  -D_GNU_SOURCE  conftest.c

conftest.c:63:27: fatal error: libxml/parser.h: No such file or directory

#include <libxml/parser.h>

                           ^

compilation terminated.

 

 

 

 

 

 

 

Thanks and Regards,
SACHIN KHANNA
212 BASIS DBA TEAM OFFSHORE

Office : 204058624
Cell : 9049522511

 

From: Sachin Khanna
Sent: Friday, August 28, 2020 12:14 PM
To: 'Ranier Vilela' <ranier.vf@gmail.com>; PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: RE: Please help for error ( file <libxml/parser.h> is required for XML support )

 

Package libxml2-devel-2.9.1-6.el7.4.ppc64le is already installed.

 

Thanks and Regards,
SACHIN KHANNA
212 BASIS DBA TEAM OFFSHORE

Office : 204058624
Cell : 9049522511

 

From: Ranier Vilela <ranier.vf@gmail.com>
Sent: Thursday, August 27, 2020 6:46 PM
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Sachin Khanna <Sachin_Khanna@infosys.com>
Subject: re: Please help for error ( file <libxml/parser.h> is required for XML support )

 

[**EXTERNAL EMAIL**]

>checking for libxml/parser.h... no
>configure: error: header file <libxml/parser.h> is required for XML support

 

sudo yum install libxml2-devel

 

You need to install the development package before ./configure.

 

regards,

Ranier Vilela

 

Attachment

Re: Please help for error ( file is required for XML support )

From
Ranier Vilela
Date:
Em sex., 28 de ago. de 2020 às 04:37, Sachin Khanna <Sachin_Khanna@infosys.com> escreveu:

 

Now I can see the that libraries are identified in config.log . I also found some error in configuration file as well. Highlight below.

Please find the attached config.log file for reference.

Please help and let me know if I there is any issue in configuration script and I need to change it ?

 

I am using PostgreSQL version postgresql-12.3.tar.gz

 

configure:8291: checking for XML2_CONFIG

configure:8293: result: /usr/lib64/libxml2.so

configure:8416: checking for grep that handles long lines and -e

configure:8474: result: /bin/grep

configure:8479: checking for egrep

configure:8541: result: /bin/grep -E

configure:8588: checking for ld used by GCC

configure:8651: result: /bin/ld

configure:8658: checking if the linker (/bin/ld) is GNU ld

GNU ld version 2.27-44.base.el7

 

at-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2  -D_GNU_SOURCE  conftest.c >&5

conftest.c: In function 'main':

conftest.c:76:20: error: expected expression before ')' token

if (sizeof ((_Bool)))

                    ^

configure:12910: $? = 1

configure: failed program was:

| /* confdefs.h */

What version of gcc is being used in this environment?

regards,
Ranier Vilela

Re: Please help for error ( file is required for XML support )

From
Ranier Vilela
Date:
em sex., 28 de ago. de 2020 às 11:05, Ranier Vilela <ranier.vf@gmail.com> escreveu:
Em sex., 28 de ago. de 2020 às 04:37, Sachin Khanna <Sachin_Khanna@infosys.com> escreveu:

 

Now I can see the that libraries are identified in config.log . I also found some error in configuration file as well. Highlight below.

Please find the attached config.log file for reference.

Please help and let me know if I there is any issue in configuration script and I need to change it ?

 

I am using PostgreSQL version postgresql-12.3.tar.gz

 

configure:8291: checking for XML2_CONFIG

configure:8293: result: /usr/lib64/libxml2.so

configure:8416: checking for grep that handles long lines and -e

configure:8474: result: /bin/grep

configure:8479: checking for egrep

configure:8541: result: /bin/grep -E

configure:8588: checking for ld used by GCC

configure:8651: result: /bin/ld

configure:8658: checking if the linker (/bin/ld) is GNU ld

GNU ld version 2.27-44.base.el7

 

at-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2  -D_GNU_SOURCE  conftest.c >&5

conftest.c: In function 'main':

conftest.c:76:20: error: expected expression before ')' token

if (sizeof ((_Bool)))

                    ^

configure:12910: $? = 1

configure: failed program was:

| /* confdefs.h */

What version of gcc is being used in this environment?
It seems gcc does not compile C99, without -std=c99
configure:4421: checking for gcc option to accept ISO C99
conftest.c:130:3: note: use option -std=c99 or -std=gnu99 to compile your code

try add -std=c99
./configure -std=c99

regards,
Ranier Vilela