ProC and other C file compilation problem on AIX


 
Thread Tools Search this Thread
Operating Systems AIX ProC and other C file compilation problem on AIX
# 1  
Old 01-24-2009
ProC and other C file compilation problem on AIX

I am linking my compiled proC file with other C files and getting following error.

ld: 0711-711 ERROR: Input file /opt/orabase/oracle/product/10.2.0/db_1/lib/libirc.a is empty.
The file is being ignored.

I used following command to compile my proC code.

proc iname=dbConnect.pc code=ANSI_C parse=none

Now I am linking the generated C file with other C files like this :

set LIBPATH=/opt/orabase/oracle/product/10.2.0/db_1/lib

/usr/vac/bin/xlc -o echo_client echo_client.c dbConnect.c -lpthread -L /opt/orabase/oracle/product/10.2.0/db_1/lib -lclntsh -ldl -lm -lpthread -lnsl -lirc


Now getting this error:

echo_client.c:
dbConnect.c:
ld: 0711-711 ERROR: Input file /opt/orabase/oracle/product/10.2.0/db_1/lib/libirc.a is empty.
The file is being ignored.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Gcc compilation problem on AIX 6.1

Hi, I have to compile a program on my server, runs on AIX 6.1. On my test server the compilation is ok (AIX 6.1); but when I try it on production server, I have this gcc prog.c -o prog_out In file included from resmon.c:111: /usr/include/unistd.h:924: error: expected ')' before ' I noticed... (1 Reply)
Discussion started by: tnjulius
1 Replies

2. Shell Programming and Scripting

Formatting problem with sizes from /proc/partitions

How would i display the output of /proc/partitions in gb representation/ Please help. Also eager to know what is dm-0 and dm-1? # cat /proc/partitions major minor #blocks name 3 0 8388608 hda 3 1 104391 hda1 3 2 8281507 hda2 3 64 102400 hdb ... (7 Replies)
Discussion started by: pinga123
7 Replies

3. UNIX for Dummies Questions & Answers

proc program compilation in unix

hi, i need to compile a proc program, say prog.pc can we compile this program in the unix environment? does this need a make file? can anyone help me on this since i am new to this area. Thanks in advance. (1 Reply)
Discussion started by: csprog
1 Replies

4. AIX

AIX equivalent to /proc/self/cmdline to get process name from C++ program

Hi, I'm porting some old C++ code (that I didn't write) from Linux to AIX and have run into a problem in getting the process name from within the code when it is run on AIX. Basically the code is getting the process name so it can then return it to the rest of the code as argv. This code is trying... (1 Reply)
Discussion started by: tbk
1 Replies

5. UNIX and Linux Applications

AIDE on AIX. Problem with compilation.

I want install AIDE (AIDE - Advanced Intrusion Detection Environment) on AIX 5.3L # oslevel -qs | head Known Service Packs ------------------- 5300-09-02-0849 5300-09-01-0847 5300-09-00-0000 5300-08-05-0846 5300-08-04-0844 5300-08-03-0831 5300-08-02-0822 5300-08-01-0819 5300-07-07-0846... (1 Reply)
Discussion started by: jess_t03
1 Replies

6. Programming

Proc compilation error.

I'm trying to compile a proc program when use make -f proc.mk , it gives the following error . `/export/home/app/oracle/product/10.2.0/lib/libclntsh.so' is up to date. rateutil.o: No such file or directory Please advise ,, I need urgent help. Thanks, Omar Atia:) (2 Replies)
Discussion started by: atiato
2 Replies

7. UNIX for Dummies Questions & Answers

File compilation error on AIX

Hi All, I am successfully able to compile the file through gcc. At the time of compilling the file throught xlc, I am facing the following issues: 1) 1540-0836 (S) The #include file <multimap.h> is not found. 2) 1540-0836 (S) The #include file <pair.h> is not found. 3) ld: 0706-012 The... (0 Replies)
Discussion started by: Prajakta
0 Replies

8. AIX

The infamous compilation of Apache + Resin on AIX

Hello All, I'm trying to compile Apache + Resin on AIX. This seems to be a major issue with the AIX system as I've come across so far. I was able to successfully compile the apache portion with the recommended compiler 3.3.2 after googling a bit. Once agian, I'm stuck with the resin portion.... (0 Replies)
Discussion started by: mvargas2012R
0 Replies

9. Programming

Proc problem

Hello all , We have a c program , it is running well on AIX 4.3.3.0 .But when we run it on AIX 4.2.1.0 version the program exit when it begin to do this command : Exec sql connect . N.B: The version of C compiler is :4.2 Database :Oracle8 thanks in advance . Elie . (2 Replies)
Discussion started by: eyounes
2 Replies

10. UNIX for Dummies Questions & Answers

compilation diff between aix & solaris

what is the difference in awk stmt for awk in Aix & SOLARIS files="$@" for filename in $files do awk ' BEGIN { if ( FILENAME ~ ".*bad.trans.dsm" ) code = "bad"; else if ( FILENAME ~ ".*here.*.dsm" ) code = "here"; else ... (2 Replies)
Discussion started by: ls1429
2 Replies
Login or Register to Ask a Question
ldd(1)							      General Commands Manual							    ldd(1)

NAME
ldd - List dynamic dependencies of executable files or shared objects SYNOPSIS
ldd [-rdV] filename OPTIONS
Prints warnings for any unresolved data symbol references that would occur as a result of filename being executed. (Checks references to only data objects, not functions.) Prints warnings for any unresolved symbol references that would occur as a result of filename being executed. (Checks references to both data objects and functions.) Displays the version of the ldd command. DESCRIPTION
The ldd command lists the dynamic dependencies of an executable file or shared object: If filename is an executable file, ldd lists the pathnames of all shared objects that would be loaded as a result of executing filename. If filename is a shared object, ldd lists the pathnames of all shared objects that would be loaded as a result of loading filename. The ldd command expects shared objects to have exe- cute permission, and if this is not the case, it will issue a warning before attempting to process the file. NOTES
The ldd command does not list shared objects explicitly attached by using dlopen(). The ldd command prints the record of shared object pathnames to stdout. The optional list of symbol resolution problems are printed to stderr. EXIT STATUS
If filename is not an executable file or a shared object, a non-zero exit status is returned. EXAMPLES
The following command lists the static dependencies of libXm.so: ldd /usr/shlib/libXm.so The following command lists the static dependen- cies of libXm.so as well as any unresolved symbol in libXm.so or any of its dependents: ldd -r /usr/shlib/libXm.so SEE ALSO
loader(5) ldd(1)