Home » Developer & Programmer » Precompilers, OCI & OCCI » 0711-318 ERROR: Undefined symbols
0711-318 ERROR: Undefined symbols [message #94418] Tue, 19 October 2004 09:36 Go to next message
Rosario Fiallos
Messages: 2
Registered: October 2004
Junior Member
I am getting an undefined symbols error from a program that I am trying to recompile. I did not write the original code.

I am using Pro*C/C++: Release 8.1.7.4.0 on AIX 5.1

Here is the output:
(ld): halt 4
(ld): lrgpage 0
(ld): savename ecorvbus.o
(ld): filelist 27 1
(ld): i /lib/crt0.o
(ld): i /fnsw/client/shobj/BESexp.o
(ld): i /fnsw/client/shobj/CKSexp.o
(ld): i /fnsw/client/shobj/CSMexp.o
(ld): i /fnsw/client/shobj/DOCexp.o
(ld): i /fnsw/client/shobj/DTIexp.o
(ld): i /fnsw/client/shobj/FFIexp.o
(ld): i /fnsw/client/shobj/FPexp.o
(ld): i /fnsw/client/shobj/IMSexp.o
(ld): i /fnsw/client/shobj/INXexp.o
(ld): i /fnsw/client/shobj/PRIexp.o
(ld): i /fnsw/client/shobj/PRSexp.o
(ld): i /fnsw/client/shobj/SECexp.o
(ld): i /fnsw/client/shobj/WQSexp.o
(ld): i /fnsw/client/shobj/NLTexp.o
(ld): i /fnsw/client/shobj/SQIexp.o
(ld): lib /usr/lib/libqb.a
(ld): lib /usr/lib/librts.a
(ld): lib /usr/oracle8i/lib//libclntsh.a
(ld): lib /usr/oracle8i/lib//libcore8.a
(ld): lib /usr/lib/libld.a
(ld): lib /usr/lib/libm.a
(ld): lib /usr/lib/libdl.a
(ld): lib /usr/lib/libc.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libodm.a
(ld): lib /usr/lib/libbsd_r.a
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/BESexp.o: 65
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/CKSexp.o: 2
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/CSMexp.o: 26
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/DOCexp.o: 45
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/DTIexp.o: 22
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/FFIexp.o: 11
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/FPexp.o: 34
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/IMSexp.o: 17
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/INXexp.o: 56
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/PRIexp.o: 22
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/PRSexp.o: 3
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/SECexp.o: 36
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/WQSexp.o: 32
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/NLTexp.o: 16
LIBRARY: Symbols imported from import file
/fnsw/client/shobj/SQIexp.o: 16
LIBRARY: Shared object libqb.a[[shr.o]]: 32 symbols
imported.
LIBRARY: Shared object libclntsh.a[[shr.o]]: 1316
symbols imported.
LIBRARY: Shared object libclntsh.a[[clntsh.o]]: 1316
symbols imported.
LIBRARY: Shared object libdl.a[[shr.o]]: 4 symbols
imported.
LIBRARY: Shared object libc.a[[shr.o]]: 2463 symbols
imported.
LIBRARY: Shared object libc.a[[meth.o]]: 2 symbols
imported.
LIBRARY: Shared object libc.a[[aio.o]]: 11 symbols
imported.
LIBRARY: Shared object libc.a[[pse.o]]: 5 symbols
imported.
LIBRARY: Shared object libc.a[[dl.o]]: 4 symbols
imported.
LIBRARY: Shared object libc.a[[pty.o]]: 1 symbols
imported.
LIBRARY: Shared object libpthreads.a[[shr_comm.o]]: 152
symbols imported.
LIBRARY: Shared object libpthreads.a[[shr_xpg5.o]]: 125
symbols imported.
LIBRARY: Shared object libodm.a[[shr.o]]: 40 symbols
imported.
LIBRARY: Shared object libbsd_r.a[[shr.o]]: 61 symbols
imported.
FILELIST: Number of previously inserted files
processed: 27
(ld): resolve
RESOLVE: 40 of 9572 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 4 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
         The following symbols are in error:
  Symbol                    Inpndx  TY CL
Source-File(Object-File) OR Import-File{Shared-object}
                               RLD: Address  Section
Rld-type Referencing Symbol

---------------------------------------------------------------------------------
-------------
  .main                     [[8]]     ER PR
crt0main.s(/lib/crt0.o)
                                    00000088 .text
R_RBR    [[30]]    .__start
ER: The return code is 8.

I did check filesets and links using lppchk with options -v and -l. I will be
fixing those accordingly but none seem to address the problem that I am having
with 0711-318 ERROR: Undefined symbols.

I hope you can help me.

Thanks !!

Rosario
Re: 0711-318 ERROR: Undefined symbols [message #94419 is a reply to message #94418] Tue, 19 October 2004 13:33 Go to previous messageGo to next message
Big Brotha
Messages: 1
Registered: October 2004
Junior Member
I'm working on it!

Update your system: (make lslpp -Lc first and DL to PC)
run "oslevel -r" and remember Maintenance Level

goto to:

http://www-912.ibm.com/eserver/support/fixes/maintpkg.jsp?system=2&release=5.1

or

http://www-912.ibm.com/eserver/support/fixes/FixReleaseInfo.jsp?system=2&release=5.1

and update system to latest level.

Additionally you can update more latest or critical fixes.

greets
bb
Re: 0711-318 ERROR: Undefined symbols [message #94423 is a reply to message #94419] Thu, 21 October 2004 13:08 Go to previous message
Rosario Fiallos
Messages: 2
Registered: October 2004
Junior Member
Thanks bb !!

I am going to follow your recommendations.

As it turns out, I can ignore the missing main symbol error because I am compiling an object, not an executable.

So far, the object created has worked.

Thanks again,

Rosario
Previous Topic: c++/ Oracle 8i database connectivity
Next Topic: Upgradation from 9i to 10g - Pro*C compiler
Goto Forum:
  


Current Time: Mon Nov 23 16:45:20 CST 2020