Originally posted by: ruxi002
I would need a recent version of clamAV for AIX.
The newest version 0.100.0 does not compile because of some type conflicts for unrar. I will adress this issue on the clamAV forum too if nobody thinks that it should be part of the AIX toolbox.
We use clamAV for different products running on our AIX LPAR's - just for additional scanning mostly because using more than one AV product seems to be worthy.
For me it would be nice if clamAV could become a standard product of the AIX toolbox.
For all interested in the compile try, here the interesting part of the gcc output:
The makefile is generated with configure. I couldn't find any useful hint on google - only with older versions that the clamav developers needed to fix those things.
Target "all-am" is up to date.
CC unrar15.lo
CC unrar.lo
CC unrar20.lo
In file included from ../libclamunrar/unrar.h:27:0,
from ../libclamunrar/unrar20.c:22:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:210:16: error: conflicting types for 'lseek64'
extern off64_t lseek64(int, off64_t, int);
^
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:208:14: note: previous declaration of 'lseek64' was here
extern off_t lseek(int, off_t, int);
^
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:841:0,
from ../libclamunrar/unrar.h:27,
from ../libclamunrar/unrar20.c:22:
/usr/include/sys/lockf.h:64:13: error: conflicting types for 'lockf64'
extern int lockf64 (int, int, off64_t);
^
/usr/include/sys/lockf.h:62:13: note: previous declaration of 'lockf64' was here
extern int lockf (int, int, off_t);
^
In file included from ../libclamunrar/unrar.h:27:0,
from ../libclamunrar/unrar20.c:22:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:914:14: error: conflicting types for 'ftruncate64'
extern int ftruncate64(int, off64_t);
^
In file included from ../libclamunrar/unrar.h:27:0,
from ../libclamunrar/unrar20.c:22:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:912:14: note: previous declaration of 'ftruncate64' was here
extern int ftruncate(int, off_t);
^
In file included from ../libclamunrar/unrar.h:27:0,
from ../libclamunrar/unrar20.c:22:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:971:14: error: conflicting types for 'truncate64'
extern int truncate64(const char *, off64_t);
^
In file included from ../libclamunrar/unrar.h:27:0,
from ../libclamunrar/unrar20.c:22:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:969:14: note: previous declaration of 'truncate64' was here
extern int truncate(const char *, off_t);
^
In file included from ../libclamunrar/unrar.h:27:0,
from ../libclamunrar/unrar20.c:22:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:990:18: error: conflicting types for 'pread64'
extern ssize_t pread64(int, void *, size_t, off64_t);
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:987:18: note: previous declaration of 'pread64' was here
extern ssize_t pread(int, void *, size_t, off_t);
^
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:991:18: error: conflicting types for 'pwrite64'
extern ssize_t pwrite64(int, const void *, size_t, off64_t);
^
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:988:18: note: previous declaration of 'pwrite64' was here
extern ssize_t pwrite(int, const void *, size_t, off_t);
^
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:1076:17: error: conflicting types for 'fclear64'
extern off64_t fclear64(int, off64_t);
^
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:1073:15: note: previous declaration of 'fclear64' was here
extern off_t fclear(int, off_t);
^
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:1077:13: error: conflicting types for 'fsync_range64'
extern int fsync_range64(int, int, off64_t, off64_t);
^
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.9.4/include-fixed/unistd.h:1074:13: note: previous declaration of 'fsync_range64' was here
extern int fsync_range(int, int, off_t, off_t);
^
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
If somebody has a hint how to solve this problem quickly I would also be thankful.
Thanks in advance
Martin