Re: [HACKERS] orafce does NOT build with Sun Studio compiler

2008-06-06 Thread Bjorn Munch
On 05/06 10.44, Mayuresh Nirhali wrote: Sun Studio does not like array declarations with null as dimenstion. So, In pipe.c we have, typedef struct { LWLockId shmem_lock; pipe *pipes; alert_event *events; alert_lock *locks; size_t size; unsigned

Re: [HACKERS] orafce does NOT build with Sun Studio compiler

2008-06-06 Thread Jonah H. Harris
On Fri, Jun 6, 2008 at 10:35 AM, Bjorn Munch [EMAIL PROTECTED] wrote: Have you tried with Studio 12? I have a vague recollection that it might treat this differently (in order words, accept it), but I may be wrong... It may work, but it's still unportable code. Correcting the root problem is

Re: [HACKERS] orafce does NOT build with Sun Studio compiler

2008-06-05 Thread Tom Lane
Mayuresh Nirhali [EMAIL PROTECTED] writes: Sun Studio does not like array declarations with null as dimenstion. So, In pipe.c we have, typedef struct { LWLockId shmem_lock; pipe *pipes; alert_event *events; alert_lock *locks; size_t size;

Re: [HACKERS] orafce does NOT build with Sun Studio compiler

2008-06-05 Thread Mayuresh Nirhali
Tom Lane wrote: Most C compilers don't like that either. The standard locution is something like char data[1]; /* VARIABLE LENGTH ARRAY */ Yes, I tried this already and forgot to mention earlier that with such patch, I do not see any other errors. So, this is

Re: [HACKERS] orafce does NOT build with Sun Studio compiler

2008-06-05 Thread Jonah H. Harris
On Thu, Jun 5, 2008 at 2:18 AM, Mayuresh Nirhali [EMAIL PROTECTED] wrote: Most C compilers don't like that either. The standard locution is something like char data[1]; /* VARIABLE LENGTH ARRAY */ So, this is the only issue with Sun Studio compilation of orafce.

Re: [HACKERS] orafce does NOT build with Sun Studio compiler

2008-06-05 Thread Pavel Stehule
Hello 2008/6/5 Mayuresh Nirhali [EMAIL PROTECTED]: Hello hackers, During the Oracle migration tutorial by peter at PGCon, I took an action item for myself to try orafce on Solaris/OpenSolaris. As pg binaries are bundled with Solaris now (using Sun Studio compiler), I decided to try out

[HACKERS] orafce does NOT build with Sun Studio compiler

2008-06-04 Thread Mayuresh Nirhali
Hello hackers, During the Oracle migration tutorial by peter at PGCon, I took an action item for myself to try orafce on Solaris/OpenSolaris. As pg binaries are bundled with Solaris now (using Sun Studio compiler), I decided to try out building orafce against the same bundled binaries (with