Errors while Compiling a PC script.


 
Thread Tools Search this Thread
Top Forums Programming Errors while Compiling a PC script.
# 1  
Old 12-01-2005
Errors while Compiling a PC script.

Hi all,

I have created a post-C (PC) script OrdItmpopulate.pc. When I am compiling this using the “Make” command I am getting the following error. My “make” command looks like this:



make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk build EXE=OrdItmpopulate8.exe OBJS="OrdItmpopulate8.o" exfcns.c PROCFLAGS="MODE=ANSI" CC="c89" CFLAGS="shell_flags_compiler_hp"



“msg_open” is a function declared in exfcns.c which is #included in my PC script.

The .o file is getting created and the exe file is also getting created but it is not executing.



The compile time error is:



c89 -o OrdItmpopulate8.exe OrdItmpopulate8.o -L/u01/app/oracle/dev/produ

ct/8.1.7/lib/ -lclntsh `cat /u01/app/oracle/dev/product/8.1.7/lib/sysliblist`

-lm -lpthread -lpthread

/usr/ccs/bin/ld: Unsatisfied symbols:

msg_open (first referenced in OrdItmpopulate8.o) (code)

ex_is_spaces (first referenced in OrdItmpopulate8.o) (code)

ex_set_ifile_decimal_from_part (first referenced in OrdItmpopulate8.o) (code)

ex_set_decimal_part_from_part (first referenced in OrdItmpopulate8.o) (code)

ex_string_part_value (first referenced in OrdItmpopulate8.o) (code)

program_return_code (first referenced in OrdItmpopulate8.o) (data)

terminating_flag (first referenced in OrdItmpopulate8.o) (data)

ex_operators (first referenced in OrdItmpopulate8.o) (code)

ex_set_generic_char_from_part (first referenced in OrdItmpopulate8.o) (code)

ex_set_part_from_ifile (first referenced in OrdItmpopulate8.o) (code)

ex_arithmetic (first referenced in OrdItmpopulate8.o) (code)

ex_keyword (first referenced in OrdItmpopulate8.o) (code)

ex_set_varstr_part_from_part (first referenced in OrdItmpopulate8.o) (code)

ex_set_ifile_integer_from_part (first referenced in OrdItmpopulate8.o) (code)

ex_init_chbuf (first referenced in OrdItmpopulate8.o) (code)

ex_set_part_from_long (first referenced in OrdItmpopulate8.o) (code)

ex_reuse_chbuf (first referenced in OrdItmpopulate8.o) (code)

ex_set_integer_part_from_part (first referenced in OrdItmpopulate8.o) (code)

ex_keyword_zero_num (first referenced in OrdItmpopulate8.o) (data)

msg_write_msg (first referenced in OrdItmpopulate8.o) (code)

msg_terminate (first referenced in OrdItmpopulate8.o) (code)

ex_keyword_space (first referenced in OrdItmpopulate8.o) (data)

*** Error exit code 1



Stop.



Please help me in this as soon as possible.
# 2  
Old 12-01-2005
It's not a Pro*C problem. It's a linking problem. Since you are dealing with a lot of variables: complex make file, multiple source files, precompilers, etc - there are too many things to rule out for us to get a good solution

So, I'll make a simple suggestion that may not be the best solution but has the highest probability of working:

Somewhere near the top of your OrdItmpopulate.pc file (before you invoke "msg_open" or any of the other calls that are causing errors) put the following:
Code:
EXEC SQL INCLUDE exfcns.c;

NOTE: exfcns.c has to exist either in the current directory or in one of the directories specified to the proc (pro*C precompiler) command. The directories specified with -I
I would place exfcns.c in the current directory and add
Code:
 -I.

as another proc command line parameter.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

How to solve compiling handbrake errors?

Hello friends, Am trying to compile and build Handbrake 0.9.9 on my redhat box but getting the below errors. Same errors when I compile the source from github and also from the official web site. # uname -a Linux blah.com 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64... (0 Replies)
Discussion started by: prvnrk
0 Replies

2. Shell Programming and Scripting

Need Help writing Bulk-Compiling Script

I'm trying to write a script that can compile my students' homework submissions in bulk. My students' c code is buried in a file path that looks like this: ./Homework\ X/Doe, John/Submission\ Attachments Where I'm struggling is determining how to navigate to each of the submission attachment... (11 Replies)
Discussion started by: GingerGiant
11 Replies

3. OS X (Apple)

FFMPEG install on 10.4.11, errors compiling and also using port

i've got an older white macbook running 10.4.11. about 5 years old i think. trying to install ffmpeg in 2 different ways. having errors on both. first tried this one: ffmpeg installation on Mac OSX and i got this error when i got down to "make" on the ffmpeg itself make(350) malloc: ***... (1 Reply)
Discussion started by: danpaluska
1 Replies

4. Shell Programming and Scripting

Compiling to shell script

I have the following lines of script to run sequentially(i.e one after the other as arranged). how can I compile it to one shell script of the form DATABASE.sh awk '$2~/eaw/{BSC=$3}{print BSC,$0}' RXMOP.log | grep GSM | awk '{print $1,$2,$3,$5}'>TX.data sed 's/RXOTX/RXORX/g' TX.data>RX.data sed... (4 Replies)
Discussion started by: aydj
4 Replies

5. Shell Programming and Scripting

Compiling Shell script

I want to compile a shell script so that anyone can run it on any linux platform without being able to view its content. Is there any way to do this? Thanks in advance ---------- Post updated at 12:00 PM ---------- Previous update was at 11:35 AM ---------- shc creates a stripped binary ... (2 Replies)
Discussion started by: proactiveaditya
2 Replies

6. UNIX for Dummies Questions & Answers

Custom kernel compiling, won't boot, and errors.

First of all, I'd like to preface this post by relaying that I have considerable experience with FreeBSD but I'm a Linux newb. I've been attempting to compile linux-2.6.29.3 from source and I'm having some problems and have a few newb questions... a) First of all, my kernel won't boot, it fails... (0 Replies)
Discussion started by: urbanriot
0 Replies

7. Solaris

Errors compiling Bind

Hi all, Apologies if this is the wrong forum for this question, if it is, could some one point me to the right one please. I am trying to compile bind-9.5.1b1 on Solaris 10 Get the error when try to configure: checking for OpenSSL library... using OpenSSL from /usr/local/lib and... (5 Replies)
Discussion started by: callmebob
5 Replies

8. HP-UX

errors while compiling c++ module

hello everyone, here i attempting to compile a c++ module . I am using the following command make -d dummyCHARGP. i am using the gcc compiler .my os is HP-UX 11.11. here i am getting the following errors. errors: ======= /swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:146:... (1 Reply)
Discussion started by: mannam srinivas
1 Replies

9. UNIX for Dummies Questions & Answers

errors compiling gcc 4.2.1

Hello, I have never had a successful compile on the 2.6 kernel. On every arch in which I try to compile gcc I get either "i686-pc-cygwin-ar command not found or "i686-suse-linux-ar command not found. This always happens during the make process after configure checks for ar and finds it's just ar.... (2 Replies)
Discussion started by: kwa71
2 Replies

10. Programming

Compiling Errors -- Symbol referencing

I'm trying to compile a FTP_API program. To do this you must use the libftp.so libary. But that libary has references which are not defined. Has anyone had this problems and how is it corrected?? The command line looks like this:-------------------------------------------- # cc ftpstock.c -lftp... (5 Replies)
Discussion started by: spotanddot
5 Replies
Login or Register to Ask a Question