Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > orafce does NOT...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 9486 of 10966
Post > Topic >>

orafce does NOT build with Sun Studio compiler

by Mayuresh.Nirhali@[EMAIL PROTECTED] (Mayuresh Nirhali) Jun 5, 2008 at 10:44 AM

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 USE_PGXS=1).

I see following build error,
/opt/SUNWspro/SS11/bin/cc -xc99=none -xCC -KPIC -I. 
-I/usr/include/pgsql/server -I/usr/include/pgsql/internal 
-I/usr/sfw/include -I/usr/include/kerberosv5  -c -o pipe.o pipe.c
"pipe.c", line 149: null dimension: data
cc: acomp failed for pipe.c
gmake[1]: *** [pipe.o] Error 2
gmake[1]: Leaving directory `/builds2/postgres/orafce/orafce'
*** Error code 2
make: Fatal error: Command failed for target `orafce/config.status'
Current working directory /builds2/postgres/orafce

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 int sid;
        char data[];                   /* line 149 */
} sh_memory;

A quick look tells me that this should not be hard to fix, but have not 
prepared any patch as I dont understand the code very well.
Is it possible to fix this soon ? This will increase the ****tability and 
would help people use orafce with existing pg binaries on Solaris.

Thanks
Mayuresh




-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 7 Posts in Topic:
orafce does NOT build with Sun Studio compiler
Mayuresh.Nirhali@[EMAIL P  2008-06-05 10:44:23 
Re: orafce does NOT build with Sun Studio compiler
tgl@[EMAIL PROTECTED] (T  2008-06-05 02:13:47 
Re: orafce does NOT build with Sun Studio compiler
Mayuresh.Nirhali@[EMAIL P  2008-06-05 11:48:32 
Re: orafce does NOT build with Sun Studio compiler
jonah.harris@[EMAIL PROTE  2008-06-05 02:30:56 
Re: orafce does NOT build with Sun Studio compiler
pavel.stehule@[EMAIL PROT  2008-06-06 04:58:20 
Re: orafce does NOT build with Sun Studio compiler
Bjorn.Munch@[EMAIL PROTEC  2008-06-06 16:35:02 
Re: orafce does NOT build with Sun Studio compiler
jonah.harris@[EMAIL PROTE  2008-06-06 12:06:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 11:56:54 CST 2008.