Thread: Problems compiling contribs in Open Solaris

Problems compiling contribs in Open Solaris

From
Emanuel Calvo Franco
Date:
HI all,

I trying to compile several contribs in Osol. I had in result some
problems to take them work.

/opt/SUNWspro/bin/cc -Xa -xO3 -xarch=native -xspace -W0,-Lt
-W2,-Rcond_elim -Xa -xildoff -xc99=none -xCC -KPIC -I.
-I../../src/include   -c -o xpath.o xpath.c
Putting child 0x080a3290 (xpath.o) PID 1718 on the chain.
Live child 0x080a3290 (xpath.o) PID 1718
"xpath.c", line 18: cannot find include file: <libxml/xpath.h>
"xpath.c", line 19: cannot find include file: <libxml/tree.h>
"xpath.c", line 20: cannot find include file: <libxml/xmlmemory.h>
"xpath.c", line 21: cannot find include file: <libxml/xmlerror.h>
"xpath.c", line 22: cannot find include file: <libxml/parserInternals.h>
"xpath.c", line 38: syntax error before or at: *
"xpath.c", line 38: syntax error before or at: nodeset
"xpath.c", line 38: warning: undefined or missing type for: nodeset
"xpath.c", line 39: parameter redeclared: xmlChar
"xpath.c", line 40: parameter redeclared: xmlChar
"xpath.c", line 40: warning: old-style declaration or incorrect type
for: pgxmlNodeSetToText
"xpath.c", line 42: syntax error before or at: res
"xpath.c", line 42: warning: undefined or missing type for: res
"xpath.c", line 43: parameter redeclared: xmlChar
"xpath.c", line 43: parameter redeclared: xmlChar
"xpath.c", line 45: warning: old-style declaration or incorrect type
for: xmlChar
"xpath.c", line 45: warning: identifier redeclared; ANSI C requires
"static": xmlChar
"xpath.c", line 45: syntax error before or at: *
"xpath.c", line 45: warning: old-style declaration or incorrect type
for: pgxml_texttoxmlchar
"xpath.c", line 47: syntax error before or at: pgxml_xpath
"xpath.c", line 47: syntax error before or at: xmlChar
"xpath.c", line 47: warning: undefined or missing type for: xmlChar
"xpath.c", line 47: warning: old-style declaration or incorrect type
for: pgxml_xpath
"xpath.c", line 157: undefined symbol: xmlLoadExtDtdDefaultValue
"xpath.c", line 175: undefined symbol: xmlDocPtr
"xpath.c", line 175: syntax error before or at: doctree
"xpath.c", line 176: warning: declaration can not follow a statement
"xpath.c", line 177: warning: declaration can not follow a statement
"xpath.c", line 181: undefined symbol: doctree
"xpath.c", line 190: cannot recover from previous errors
cc: acomp failed for xpath.c
Reaping losing child 0x080a3290 PID 1718
gmake: *** [xpath.o] Error 2
Removing child 0x080a3290 PID 1718 from chain.

The other problem was compiling uuid-opps and tablefunc contribs.

Someone had the same problems.

I'm using gmake and sunstudio 12 for compiling.

Thkx!

--
              Emanuel Calvo Franco
      www.emanuelcalvofranco.com.ar

Re: Problems compiling contribs in Open Solaris

From
Alvaro Herrera
Date:
Emanuel Calvo Franco escribió:
> HI all,
>
> I trying to compile several contribs in Osol. I had in result some
> problems to take them work.
>
> /opt/SUNWspro/bin/cc -Xa -xO3 -xarch=native -xspace -W0,-Lt
> -W2,-Rcond_elim -Xa -xildoff -xc99=none -xCC -KPIC -I.
> -I../../src/include   -c -o xpath.o xpath.c
> Putting child 0x080a3290 (xpath.o) PID 1718 on the chain.
> Live child 0x080a3290 (xpath.o) PID 1718
> "xpath.c", line 18: cannot find include file: <libxml/xpath.h>
> "xpath.c", line 19: cannot find include file: <libxml/tree.h>
> "xpath.c", line 20: cannot find include file: <libxml/xmlmemory.h>
> "xpath.c", line 21: cannot find include file: <libxml/xmlerror.h>
> "xpath.c", line 22: cannot find include file: <libxml/parserInternals.h>

You need to tell configure where to find libxml's headers
(--with-includes).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Re: Problems compiling contribs in Open Solaris

From
Emanuel Calvo Franco
Date:
>> I trying to compile several contribs in Osol. I had in result some
>> problems to take them work.
>>
>> /opt/SUNWspro/bin/cc -Xa -xO3 -xarch=native -xspace -W0,-Lt
>> -W2,-Rcond_elim -Xa -xildoff -xc99=none -xCC -KPIC -I.
>> -I../../src/include   -c -o xpath.o xpath.c
>> Putting child 0x080a3290 (xpath.o) PID 1718 on the chain.
>> Live child 0x080a3290 (xpath.o) PID 1718
>> "xpath.c", line 18: cannot find include file: <libxml/xpath.h>
>> "xpath.c", line 19: cannot find include file: <libxml/tree.h>
>> "xpath.c", line 20: cannot find include file: <libxml/xmlmemory.h>
>> "xpath.c", line 21: cannot find include file: <libxml/xmlerror.h>
>> "xpath.c", line 22: cannot find include file: <libxml/parserInternals.h>
>
> You need to tell configure where to find libxml's headers
> (--with-includes).
>

Ok, sounds good :)

I will try to take a woraround on this shortly.

Thkx Alvaro!

--
              Emanuel Calvo Franco
      www.emanuelcalvofranco.com.ar