Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling and loading with "C" on AIX

Status
Not open for further replies.

psi07004

IS-IT--Management
Apr 14, 2008
86
0
0
US
First let me say I am not a "C" person. I tried to compile and load an application after moving it from a system running AIX 5.3 to one with AIX 6.1. This is using the IBM XLC V10.1 compiler. I am getting the following errors when trying to load the program, and have not been able to figure out what they are from and how to resolve them.

ld: 0711-317 ERROR: Undefined symbol: .traceback
ld: 0711-317 ERROR: Undefined symbol: .kx$rfc
ld: 0711-317 ERROR: Undefined symbol: .pay_rectype
ld: 0711-317 ERROR: Undefined symbol: .first_record
ld: 0711-317 ERROR: Undefined symbol: .next_record
ld: 0711-317 ERROR: Undefined symbol: .last_record
ld: 0711-317 ERROR: Undefined symbol: .find_record
ld: 0711-317 ERROR: Undefined symbol: .cscpay_edit
ld: 0711-317 ERROR: Undefined symbol: .convert_cscpay_type
ld: 0711-317 ERROR: Undefined symbol: .prev_record
ld: 0711-317 ERROR: Undefined symbol: .tofld
ld: 0711-344 See the loadmap file for more information.

The section of the loadmap that references these is:

(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-F
{Shared-object}
RLD: Address Section Rld-type Referencing Sym
----------------------------------------------------------------------------
---------------
.traceback [984] ER PR pfbmain.c(/pfbsrc/libsrc/binary/pfbm
.o)
00003820 .text R_RBR [24] .main
.kx$rfc [210] ER PR edm.f(/wizard/aix/edm/source/binary/
.o)
00003b60 .text R_RBR [12] .edm
.pay_rectype [203] ER PR maint1.f(/wizard/aix/edm/source/bina
maint1.o)
000041ec .text R_RBR [12] .maint1
00004520 .text R_RBR [12] .maint1
000056e0 .text R_RBR [12] .maint1
00005770 .text R_RBR [12] .maint1
00006d4c .text R_RBR [12] .maint1
000075dc .text R_RBR [12] .maint1

00006d4c .text R_RBR [12] .maint1
000075dc .text R_RBR [12] .maint1
0000b704 .text R_RBR [12] .maint1
0000bd50 .text R_RBR [12] .maint1
0000db00 .text R_RBR [12] .maint1
.first_record [215] ER PR maint1.f(/wizard/aix/edm/source/bina
maint1.o)
00004814 .text R_RBR [12] .maint1
.next_record [217] ER PR maint1.f(/wizard/aix/edm/source/bina
maint1.o)
00004834 .text R_RBR [12] .maint1
00006808 .text R_RBR [12] .maint1
.last_record [219] ER PR maint1.f(/wizard/aix/edm/source/bina
maint1.o)
00004880 .text R_RBR [12] .maint1
.find_record [223] ER PR maint1.f(/wizard/aix/edm/source/bina
maint1.o)
00004e9c .text R_RBR [12] .maint1
.cscpay_edit [84] ER PR edchek.f(/wizard/aix/edm/source/bina
edchek.o)
0000022c .text R_RBR [12] .edchek
.convert_cscpay_type [114] ER PR tokey2.f(/wizard/aix/edm/source/bina
tokey2.o)

0000022c .text R_RBR [12] .edchek
.convert_cscpay_type [114] ER PR tokey2.f(/wizard/aix/edm/source/bina
tokey2.o)
000007e4 .text R_RBR [12] .tokey2
00000868 .text R_RBR [12] .tokey2
.convert_cscpay_type [92] ER PR tokey.f(/wizard/aix/edm/source/binar
okey.o)
000003e0 .text R_RBR [12] .tokey
0000043c .text R_RBR [12] .tokey
.prev_record [245] ER PR maint1.f(/wizard/aix/edm/source/bina
maint1.o)
00006740 .text R_RBR [12] .maint1
.tofld [289] ER PR maint1.f(/wizard/aix/edm/source/bina
maint1.o)
0000c95c .text R_RBR [12] .maint1
ER: The return code is 8.
(ld): mismatch
ld: 0711-323 WARNING: Storage-mapping class of symbol errno
changed from XMC_UA to XMC_RW because of references.
MISMATCH: No type mismatches exist.
MISMATCH: The return code is 4.
(ld): comprld
COMPRLD: Kept 14031 of 14031 relocation entries.

(ld): comprld
COMPRLD: Kept 14031 of 14031 relocation entries.
(ld): origin 0x200 0x0
(ld): pad 512 512 512
PAD: The object file pad values are .text: 512 .data: 512 .loader: 512
(ld): libpath /wizard/aix/lib:/opt/rtisam/lib:/usr/lib:/lib
LIBPATH: Library path set to /wizard/aix/lib:/opt/rtisam/lib:/usr/lib:/lib
(ld): save 1L .
SAVE: Section sizes = 654508+63708+212968 (0x9FCAC+0xF8DC+0x33FE8 hex)
SAVE: Size of TOC: 3908 (0xF44 hex)
SAVE: These object files and archive members were
used to create the output file:


Can anyone offer any suggestions as to what to look at or what to try to resolve this?

thanks in advance....

 
It would be helpful to us for you to post the exact commands that you are using. However, undefined symbols are in general the result of not specifying the correct source files, object files or libraries in the "ld" incantation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top