Menu ▾ ▴

#30 AIX Compile Issues

open
nobody
None
5
2003-10-29
2003-10-29
No

Hi Andrew,

I'm experimenting awka on AIX.
Since I have a lot of old awk programs, I wanted to see if
compiling them with awka would speed them up.

My environment:

AIX 4.3.3.77
gcc 3.0.1
awka 0.7.5

So far, I found some problems:

- awka builds .c files that may have too long lines.

As an example, I got a line with 4411 characters ...
Starting with:
a_VAR *_litd0_awka=NULL, *_litd1_awka=NULL,
*_litd2_awka=NULL, *_litd3_awka=NULL
, *_litd4_awka=NULL, *_litd5_awka=NULL,
*_litd6_awka=NULL, *_litd7_awka=NULL, *_
litd8_awka=NULL, *_litd9_awka=NULL, *_litd10_awka=NULL,
*_litd11_awka=NULL, *_li
td12_awka=NULL, *_litd13_awka=NULL, *_litd14_awka=NULL,
*_litd15_awka=NULL;
a_VAR *_lits0_awka=NULL, *_lits1_awka=NULL,
*_lits2_awka=NULL, *_lits3_awka=NULL
, *_lits4_awka=NULL, *_lits5_awka=NULL,
*_lits6_awka=NULL, *_lits7_awka=NULL, *_
lits8_awka=NULL, *_lits9_awka=NULL, *_lits10_awka=NULL,
*_lits11_awka=NULL, *_li

- ld is complaining about a missing function : .fmod

PreFormatClass.c: awka_vardblset(dr_awk,
fmod(awka_getd(_lvar[0]), 1440));
PreFormatClass.c: awka_vardblset(mn_awk,
fmod(awka_getd(_lvar[0]), 60));

gcc
-Wl,-bnoquiet,/users2/reixt/AWK/awka-0.7.5/lib/libawka.a ->
(ld): halt 4
(ld): setopt r/o->w
(ld): setopt nodelcsect
(ld): savename PreFormatClass
(ld): filelist 6 1
(ld): i /lib/crt0.o
(ld): i /tmp/ccO8dnGf.o
(ld): i /users2/reixt/AWK/awka-0.7.5/lib/libawka.a
(ld): i PreFormatClass.o
(ld): i
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1/libgcc.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libc.a[shr.o]: 2268 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]: 78 symbols imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
FILELIST: Number of previously inserted files processed: 6
(ld): initfini _GLOBAL__FI_PreFormatClass
_GLOBAL__FD_PreFormatClass
(ld): resolve
RESOLVE: 1798 of 6478 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 79 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
----------------------------------------------------------------------------------------------
ld: 0711-317 ERROR: Undefined symbol: .fmod
.fmod [128] ER PR
PreFormatClass.c(PreFormatClass.o)
00023b88 .text
R_RBR [306] .Cnv_MnFormat_fn
00023c2c .text
R_RBR [306] .Cnv_MnFormat_fn
ER: The return code is 8.

Amicalement/Regards,

Tony

Discussion


Log in to post a comment.