LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-30-2007, 01:28 AM   #1
jerald
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Angry Solaris to Linux Porting - dbutils error


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...

Quote:
proc `echo -I. -I./gen -I../include -I/usr/include -I/home/oracle/oracle/product/10.2.0/client_1/precomp/public|sed 's/-I/include=/g'` `echo -DPROD_b -DCLIENT_ARCHITECTURE -DICRS_TABLES -DDATA_LOAD -DICRS_AUTOLOAD -DLINUX_REDHAT -D__USE_XOPEN_EXTENDED -DUSE_DDS_TABLES |sed 's/-D/define=/g'` iname=`echo sessiondb.pc ` code=ansi parse=full user=cts_a04/cts_a04@ctsdev SQLCHECK=SEMANTICS

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
Can anyone help me in this regard...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
porting issues from solaris to linux vinod_indus Programming 2 09-12-2005 11:05 AM
solaris to linux porting vinod_indus Linux - General 3 09-12-2005 10:51 AM
Porting from Solaris to Linux gan_04 Linux - General 2 07-15-2005 08:37 AM
Porting from Solaris to Linux raees Linux - General 3 11-10-2003 09:26 AM
Porting from Solaris 2.6 to Linux rajneesh_134 Solaris / OpenSolaris 1 10-22-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration