Question : Installing/Upgrading sendmail on AIX 5.3

I am attempting to upgrade our version of sendmail on an AIX 5.3 box.  However, when I run sh ./Build it fails with the following error.  How can I get this to compile and install?

# sh ./Build
Making all in:
/usr/local/src/sendmail-8.14.3/libsm
Configuration: pfx=, os=AIX, rel=5.3.0, rbase=5, rroot=5.3, arch=PPC, sfx=, variant=optimized
Using M4=/usr/bin/m4
Creating /usr/local/src/sendmail-8.14.3/obj.AIX.5.3.0.PPC/libsm using /usr/local/src/sendmail-8.14.3/devtools/OS/AIX.5.3
Making dependencies in /usr/local/src/sendmail-8.14.3/obj.AIX.5.3.0.PPC/libsm
        rm -f sm_os.h
        ln -f -s ../../include/sm/os/sm_os_aix.h sm_os.h
        for i in assert.c debug.c errstring.c exc.c heap.c match.c rpool.c strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c wbuf.c wsetup.c string.c stringf.c xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c signal.c clock.c config.c shm.c sem.c mbdb.c strexit.c cf.c ldap.c niprop.c mpeix.c memstat.c util.c   ;  do  /usr/bin/xlc -M -E -I. -I../../include  -DNDBM -DNIS -DMAP_REGEX -D_AIX5=50300   $i > /dev/null;  cat `basename $i .c`.u >> Makefile ;  rm -f `basename $i .c`.u ;  done;
Making in /usr/local/src/sendmail-8.14.3/obj.AIX.5.3.0.PPC/libsm
        /usr/bin/xlc -O3 -qstrict -I. -I../../include  -DNDBM -DNIS -DMAP_REGEX -D_AIX5=50300    -c assert.c
"../../include/sm/types.h", line 53.17: 1506-114 (W) Duplicate length adjective long ignored.
"../../include/sm/types.h", line 54.26: 1506-114 (W) Duplicate length adjective long ignored.
"../../include/sm/io.h", line 122.2: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 122.34: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 122.42: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 122.50: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 123.2: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 123.32: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 123.41: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 124.2: 1506-037 (S) Member of struct or union cannot be a function.
"../../include/sm/io.h", line 124.12: 1506-046 (S) Syntax error.
"../../include/sm/io.h", line 146.2: 1506-046 (S) Syntax error.
"../../include/sm/setjmp.h", line 30.20: 1506-046 (S) Syntax error.
"../../include/sm/exc.h", line 133.2: 1506-046 (S) Syntax error.
    1506-163: (S) Error recovery not possible. Compilation ended.
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.
#

Answer : Installing/Upgrading sendmail on AIX 5.3

Well,

no real idea, but I think it could help using gcc instead of xlC.

gcc for AIX is here -

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

Install it using rpm.

Good luck!

wmp

Random Solutions  
 
programming4us programming4us