Datablade compile problem on AIX!
Posted in 2005
Hi informix datablade developers!
I have downloaded the IUtil bladelet from the IBM's "Downloadable
Bladelets and Demos" page, and successfully compile and link on Sun
Solaris and HP Itanium Servers but i have problems with AIX 5.2.2. I
have installed gcc and using this commands:
gcc -g -I/opt/app/informix9/incl/public -c -maix64 -o
./SOL/ascii.o -c c/ascii.c
ld -G -b64 -o ./bin/iutil.bld ./SOL/ascii.o
The result is:
ld: 0711-327 WARNING: Entry point not found: __start
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
make: 1254-004 The error code from the last command is 8.
If used -bnoentry -bexpall flags the bld file is linked, but the
informix does not find the routine entry point:
onstat -m:09:57:14 ERROR: C Language Symbol <ascii> (procid 6723) not found in
<$INFORMIXDIR/extend/IUtil/iutil.bld>
09:57:14 (-1): ERROR: Loading Routine <ascii> procid=6723
What liker or compliler flags is missing?
Please help!
PS: This is the dump of the bld file:
informix@lab6000:/opt/app/informix9/extend/IUtil>dump -X64 -Tv -o
iutil.bld
iutil.bld:
***Object Module Header***
# Sections Symbol Ptr # Symbols Opt Hdr Len Flags
5 0x00005974 491 120 0x3002
Flags=( EXEC DYNLOAD SHROBJ )
Timestamp = "Mar 11 09:45:54 2005"
Magic = 0x1f7 (64-bit XCOFF)
***Optional Header***
Tsize Dsize Bsize Tstart Dstart
0x000001ec 0x00000058 0x00000000 0x00000000 0x00000000
SNloader SNentry SNtext SNtoc SNdata
0x0004 0x0000 0x0001 0x0002 0x0002
TXTalign DATAalign TOC vstamp entry
0x0002 0x0003 0x00000030 0x0001 0xffffffffffffffff
maxSTACK maxDATA SNbss magic modtype
0x00000000 0x00000000 0x0003 0x010b RE
***Loader Section***
***Loader Symbol Table Information***
[Index] Value Scn IMEX Sclass Type IMPid
Name
[0] 0x00000000 .data EXP DS Ldef [noIMid]
ascii
[1] 0x00000018 .data EXP DS Ldef [noIMid] chr
[2] 0x00000000 undef IMP DS EXTref ..
mi_lvarchar_to_string
[3] 0x00000000 undef IMP DS EXTref ..
mi_fp_setreturnisnull
[4] 0x00000000 undef IMP DS EXTref ..
mi_string_to_lvarchar