Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to port my application from Solaris to Redhat Linux server.
But I came across one Pro*C compilation error while trying to create the library file libdbutils.so .
The error shows as follows...
Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Oct 30 14:04:20 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /home/oracle/oracle/product/10.2.0/client_1/precomp/admin/pcscfg.cfg
mv `echo sessiondb.pc |sed 's:\.pc:.c:'` ./gen/sessiondb.c.p
gawk -f /home/users/bldadm1/pvcs/cms_approved/cms/source/tools/bin/procpatch ./gen/sessiondb.c.p > ./gen/sessiondb.c
cc -c -KPIC -DPROD_b -DCLIENT_ARCHITECTURE -DICRS_TABLES -DDATA_LOAD -DICRS_AUTOLOAD -DLINUX_REDHAT -D__USE_XOPEN_EXTENDED -DUSE_DDS_TABLES -instances=static -g -DMOTIF12_HEADERS -I. -I./gen -I../include -I/usr/include -I/home/oracle/oracle/product/10.2.0/client_1/precomp/public options ./gen/sessiondb.c
cc: Warning: illegal option -nstances=static
"./gen/sessiondb.c", line 519: syntax error before or at: (
"./gen/sessiondb.c", line 520: warning: old-style declaration or incorrect type for: ECPGget_sqlca
"./gen/sessiondb.c", line 520: identifier redeclared: ECPGget_sqlca
current : function() returning pointer to int
previous: function(void) returning pointer to struct sqlca_t {array[8] of char sqlcaid, long sqlabc, long sqlcode, struct {..} sqlerrm, array[8] of char sqlerrp, array[6] of long sqlerrd, array[8] of char sqlwarn, array[5] of char sqlstate} : "/usr/include/sqlca.h", line 56
"./gen/sessiondb.c", line 533: warning: syntax error: empty declaration
"./gen/sessiondb.c", line 539: syntax error before or at: (
"./gen/sessiondb.c", line 539: syntax error before or at: *
"./gen/sessiondb.c", line 539: warning: old-style declaration or incorrect type for: ECPGget_sqlca
"./gen/sessiondb.c", line 539: identifier redefined: ECPGget_sqlca
current : function() returning pointer to function() returning int
previous: function() returning pointer to int : "./gen/sessiondb.c", line 520
"./gen/sessiondb.c", line 554: warning: syntax error: empty declaration
"./gen/sessiondb.c", line 720: left operand of "." must be struct/union object
"./gen/sessiondb.c", line 722: left operand of "." must be struct/union object
"./gen/sessiondb.c", line 723: warning: implicit function declaration: utl_debug_message
"./gen/sessiondb.c", line 731: left operand of "." must be struct/union object
"./gen/sessiondb.c", line 763: left operand of "." must be struct/union object
"./gen/sessiondb.c", line 765: left operand of "." must be struct/union object
"./gen/sessiondb.c", line 772: left operand of "." must be struct/union object
cc: acomp failed for ./gen/sessiondb.c
make: *** [sessiondb.o] Error 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.