Erro in generating executable file in PRO*C


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Erro in generating executable file in PRO*C
# 1  
Old 02-14-2012
Erro in generating executable file in PRO*C

Good day to everyone.
Im new to pro*c and my boss gave me an assignment regarding oracle forms which uses User_Exit function encoded in pro*c.
I already compiled the enhanced pro*c code and generated .c file.
The problem was, I cannot make an executable file from the generated .c file.

Below is the error.
Code:
/opt/cygnus-sol2-2.0/bin/gcc -g REGPR014.c /u12/ssaname/myfs/n3elregc.o  /u12/ss
aname/myfs/n3elregp.o  /u12/ssaname/myfs/n3sgreg.o /u15/migrate/TEMP/libbarc.a.p
rod  /appl1/home/oracle/lib/libsql.a  /appl1/home/oracle/lib/osntab.o  /appl1/ho
me/oracle/lib/libsqlnet.a  /appl1/home/oracle/lib/libnetv2.a  /appl1/home/oracle
/lib/libnetwork.a  /appl1/home/oracle/lib/libora.a  /appl1/home/oracle/lib/libsq
lnet.a  /appl1/home/oracle/lib/__fstd.o  /appl1/home/oracle/lib/libsql.a  /appl1
/home/oracle/lib/libnlsrtl.a  /appl1/home/oracle/lib/libcv6.a  /appl1/home/oracl
e/lib/libcore.a  /appl1/home/oracle/lib/libnlsrtl.a  /appl1/home/oracle/lib/libc
v6.a  /appl1/home/oracle/lib/libcore.a  /opt/cygnus-sol2-2.0/lib/libg++.a  /lib/
libsocket.so  /lib/libnsl.so  /lib/libm.so  /lib/libdl.so  /lib/libaio.so /u12/s
saname/lib/name3.a  /u12/ssaname/lib/support.a  /u12/ssaname/lib/tables.a -o REG
PR014 ;
Undefined                       first referenced
 symbol                             in file
iappfo                              /appl1/home/oracle/lib/libsql.a(sqlpfo.o)
iapprs                              /appl1/home/oracle/lib/libsql.a(sqlgfo.o)
iaprval                             /appl1/home/oracle/lib/libsql.a(sqlgfo.o)
ld: fatal: Symbol referencing errors. No output written to REGPR014
*** Error code 1
make: Fatal error: Command failed for target `REGPR014'

same err

Last edited by Scott; 02-17-2012 at 10:24 AM.. Reason: Code tags
# 2  
Old 02-14-2012
MySQL

It was not able to identify the below references in the corresponding object file.
Code:
Reference  Object
iappfo                                   /appl1/home/oracle/lib/libsql.a(sqlpfo.o)
iapprs                                   /appl1/home/oracle/lib/libsql.a(sqlgfo.o)
iaprval                                  /appl1/home/oracle/lib/libsql.a(sqlgfo.o)

Check whether sqlgfo.c has the variable.

Last edited by Scott; 02-17-2012 at 10:25 AM.. Reason: Code tags
# 3  
Old 02-14-2012
I searched for the object but can't find it..
Code:
$find / -name sqlpfo.o 2>/dev/null

at the same time i cant view libsql.a

Last edited by Scott; 02-17-2012 at 10:25 AM.. Reason: Code tags
# 4  
Old 02-15-2012
MySQL

libsql.a contains the sqlpfo.o.
You can extract the .a file using the "ar" utility.
Code:
ar -x libsql.a


Last edited by Scott; 02-17-2012 at 10:25 AM.. Reason: Code tags
# 5  
Old 02-16-2012
libsql.a extracted
how can i view sqlpfo.o?

---------- Post updated at 01:25 AM ---------- Previous update was at 01:12 AM ----------
Code:
$ nm -C sqlpfo.o

sqlpfo.o:
[Index]   Value      Size    Type  Bind  Other Shndx   Name
[2]     |         0|       0|SECT |LOCL |0    |2      |
[3]     |         0|       0|SECT |LOCL |0    |3      |
[4]     |         0|       0|SECT |LOCL |0    |4      |
[5]     |         0|       0|SECT |LOCL |0    |5      |
[12]    |         0|       0|NOTY |GLOB |0    |UNDEF  |iappfo
[8]     |         0|       0|NOTY |GLOB |0    |UNDEF  |memcpy
[10]    |         0|       0|NOTY |GLOB |0    |UNDEF  |sqloer
[7]     |         0|       0|NOTY |GLOB |0    |UNDEF  |sqloew
[6]     |        16|     576|FUNC |GLOB |0    |3      |sqlpfo
[1]     |         0|       0|FILE |LOCL |0    |ABS    |sqlpfo.c
[11]    |         0|       0|NOTY |GLOB |0    |UNDEF  |sqlu2s
[9]     |         0|       0|NOTY |GLOB |0    |UNDEF  |strlen

so what does this mean?
iappfo was detected in sqlpfo but iapprs and iaprval were not.

---------- Post updated 02-16-12 at 12:15 AM ---------- Previous update was 02-15-12 at 01:25 AM ----------

--CORRECTION--
Code:
nm -C sqlgfo.o

sqlgfo.o:
[Index]   Value      Size    Type  Bind  Other Shndx   Name
[2]     |         0|       0|SECT |LOCL |0    |2      |
[3]     |         0|       0|SECT |LOCL |0    |3      |
[4]     |         0|       0|SECT |LOCL |0    |4      |
[5]     |         0|       0|SECT |LOCL |0    |5      |
[6]     |         0|       0|SECT |LOCL |0    |6      |
[15]    |         0|       0|NOTY |GLOB |0    |UNDEF  |iapprs
[9]     |         0|       0|NOTY |GLOB |0    |UNDEF  |iaprval
[12]    |         0|       0|NOTY |GLOB |0    |UNDEF  |memcpy
[8]     |         0|       0|NOTY |GLOB |0    |UNDEF  |sqldbf
[10]    |        16|     536|FUNC |GLOB |0    |4      |sqlgfo
[1]     |         0|       0|FILE |LOCL |0    |ABS    |sqlgfo.c
[14]    |         0|       0|NOTY |GLOB |0    |UNDEF  |sqloer
[13]    |         0|       0|NOTY |GLOB |0    |UNDEF  |sqloew
[16]    |         0|       0|NOTY |GLOB |0    |UNDEF  |sqls2u
[7]     |         0|       0|NOTY |GLOB |0    |UNDEF  |sqluev
[11]    |         0|       0|NOTY |GLOB |0    |UNDEF  |st

iappfo, iapprs, iaprval were found but UNDEF
what do i need to do next?

Last edited by Scott; 02-17-2012 at 10:26 AM.. Reason: Code tags, please...
# 6  
Old 02-17-2012
Sorry pedro.penduko. Am helpless. Smilie

I faced the similar issue while creating the binary. In my scenario the variable was in out of scope so i got the same error. But i had a source code of it and modified the scope.

But in your scenario you dont have the .cpp or .c file to modify.
# 7  
Old 02-17-2012
regarding the .c file. Do you mean the compiled/result when I use
Code:
proc myfile.pc

cause i can generate .c file from my .pc file

Last edited by Scott; 02-17-2012 at 10:26 AM.. Reason: Code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sh_sin_bloqTarjeta.sh[15]: test: argument expected erro

Hello good day you can tell me why this command gives me error if ; then sh_sin_bloqTarjeta.sh: test: argument expected (2 Replies)
Discussion started by: tricampeon81
2 Replies

2. Shell Programming and Scripting

Python Name Erro

Hi There, I have the following code: import time import paramiko node_list = for node in node_list: ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(node, username='lord', password='xxxx') variables = {} stdin,... (0 Replies)
Discussion started by: infinitydon
0 Replies

3. Ubuntu

erro while installing new program

Hi, I am using ubuntu 12.04 and everytime I installed a new program I get except from the error message I have no problem. I mean it does install the progrm, and I can use it. but still everytime I installed a program I get that error message, what is the reason for this? (3 Replies)
Discussion started by: programAngel
3 Replies

4. Red Hat

Erro in Installing OPENOFFICE SOFTWARE

Dear All I want to install openoffice on my redhat 5.1 linux os. open office folder is already extracted on Desktop. #cd Desktop/OOO310_m11_native_packed-2_en-US.9399 #./setup After run the setup command, i am getting the Error mentioned below.Please any body can help me. ERROR:- ... (1 Reply)
Discussion started by: sahu.tapan
1 Replies

5. Shell Programming and Scripting

Performance issue in UNIX while generating .dat file from large text file

Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Discussion started by: KRAMA
19 Replies

6. UNIX for Dummies Questions & Answers

Generating different columns from same file

Hi, Our requirement is we have to create file from one file where all the rows from source file is converted into columns of the target file. For example Source file is : Status Report ABC Generated: 2009-05-05 08:49:47 Job start time=2009-05-05 08:43:43 Job end time=2009-05-05... (1 Reply)
Discussion started by: Amey Joshi
1 Replies

7. Shell Programming and Scripting

Ksh - finding pattern in file and generating a new file

I am trying to find for the pattern in first 5 bytes of every line in a text file and then generate a new file with the pattern found. Example: expected pattern is '-' to be serached in first 5 bytes of file only. Input File ab-cd jan-09 ddddd jan09 cc-ww jan09 dsgdq jan-09 ... (2 Replies)
Discussion started by: net
2 Replies

8. UNIX for Dummies Questions & Answers

help boot system erro

being nosey on sons laptop and set a password and now need to undo this but its in the boot system :eek::eek::eek: (4 Replies)
Discussion started by: hempel
4 Replies

9. Shell Programming and Scripting

scp syntax erro

hi all i'm getting the following syntax error when i'm running the scripts,can any one pls explain : warning: Connecting to /transfer/common/utilities/99990 failed: No address associated to the name Copying via cmd: scp -Q ... (1 Reply)
Discussion started by: bkan77
1 Replies

10. UNIX for Dummies Questions & Answers

domain logon problem - FreeBSD PDC w/ win2k pro and winxp pro

this is the seventh problem i'm having with samba. for some reason, i cannot logon to the domain. i've created user accounts... and i was able to establish a connection between the samba server (my PDC) and my workstations by logging in as "root." however now when i try to logon it gives... (5 Replies)
Discussion started by: xyyz
5 Replies
Login or Register to Ask a Question