Re: [clamav-users] About ClamAV 0.101.3 builds on AIX6.1

2019-08-20 Thread Tsutomu Oyamada
Hi Micah,

I'm sorry for the slow response.
It was another issue on AIX6.1, but your advice was helpful in AIX7.1.
I was able to build correctly in my environment.

Thank you so much.

Regards,
Tsutomu Oyamada

On Tue, 13 Aug 2019 16:14:48 +
"Micah Snyder \(micasnyd\) via clamav-users"  
wrote:

> Hi Tsutomu,
> 
> It looks like you are seeing a similar issue to what these folks had when 
> building libtool on Solaris:
> https://forums.gentoo.org/viewtopic-t-1080858-start-0.html
> 
> Here the user solved it by changing the NM environment variable: 
> https://lists.gnu.org/archive/html/libtool/2012-11/msg00014.html
> 
> Ex:
> NM=/usr/xpg4/bin/nm\ \-p
> export NM
> 
> For Solaris 10 in the past, we've found that if you're not using the OpenCSW 
> tools you need to use gnm (gnu's nm utility).  The same is probably true for 
> AIX.  
> Please install gnm and give this a try (I've made the assumption that it'll 
> install to /usr/local.  Of course adjust the path as needed. I'm not sure if 
> the "-p" argument is required:
> 
> ./configure NM=/usr/local/bin/gnm AR="/usr/bin/ar -X64" LDFLAGS="-maix64 
> -Wl,-bbigtoc -lbsd -lclamav" CFLAGS="-maix64" CXXFLAGS="-maix64" 
> LDFLAGS="-maix64 -Wl,-bbigtoc -lbsd" --prefix=/usr/lib/clamav 
> --exec-prefix=/usr/lib/clamav --bindir=/usr/lib/clamav 
> --sbindir=/usr/lib/clamav --sysconfdir=/etc/clamav --libdir=/usr/lib/clamav 
> --datarootdir=/usr/lib/clamav --with-dbdir=/usr/lib/clamav --disable-clamav 
> --enable-shared --disable-static --disable-zlib-vcheck --with-pcre 
> --with-openssl=/opt/freeware --enable-strni
> 
> Regards,
> Micah 
> 
> ?On 8/12/19, 10:04 PM, "clamav-users on behalf of Tsutomu Oyamada" 
>  
> wrote:
> 
> Hi, all
> 
> I am trying to build ClamAV 0.101.3 on AIX6.1.
> I did the following procedure, but it fails to make.
> What can I do?
> Excuse me in a long sentence below.
> 
> 1. Download clamav-0.101.3.tar.gz package.
> 2. Extract package.
> 3. Execute configure
> 
> AR="/usr/bin/ar -X64" LDFLAGS="-maix64 -Wl,-bbigtoc -lbsd -lclamav"
> ./configure CFLAGS="-maix64" CXXFLAGS="-maix64" LD
> FLAGS="-maix64 -Wl,-bbigtoc -lbsd" --prefix=/usr/lib/clamav 
> --exec-prefix=/usr/lib/clamav --bindir=/usr/lib/clamav --sbindir=/us
> r/lib/clamav --sysconfdir=/etc/clamav --libdir=/usr/lib/clamav 
> --datarootdir=/usr/lib/clamav --with-dbdir=/usr/lib/clamav --disa
> ble-clamav --enable-shared --disable-static --disable-zlib-vcheck 
> --with-pcre --with-openssl=/opt/freeware --enable-strni
> 
> checking for g++... g++
> checking whether the C++ compiler works... yes
> checking for C++ compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking build system type... powerpc-ibm-aix6.1.0.0
> checking host system type... powerpc-ibm-aix6.1.0.0
> checking target system type... powerpc-ibm-aix6.1.0.0
> creating target.h - canonical system defines
> checking for a BSD-compatible install... config/install-sh -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... config/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking whether make sets $(MAKE)... yes
> checking for style of include used by make... GNU
> checking whether make supports nested variables... yes
> checking whether UID '0' is supported by ustar format... yes
> checking whether GID '0' is supported by ustar format... yes
> checking how to create a ustar tar archive... gnutar
> checking dependency style of g++... gcc3
> checking whether make supports nested variables... (cached) yes
> checking for gcc... gcc
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking whether gcc understands -c and -o together... yes
> checking dependency style of gcc... gcc3
> checking the archiver (/usr/bin/ar -X64) interface... ar
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking minix/config.h usability... no
> checking minix/config.h presence... no
> checking for minix/config.h... no

Re: [clamav-users] About ClamAV 0.101.3 builds on AIX6.1

2019-08-13 Thread Micah Snyder (micasnyd) via clamav-users
Hi Tsutomu,

It looks like you are seeing a similar issue to what these folks had when 
building libtool on Solaris:
https://forums.gentoo.org/viewtopic-t-1080858-start-0.html

Here the user solved it by changing the NM environment variable: 
https://lists.gnu.org/archive/html/libtool/2012-11/msg00014.html

Ex:
NM=/usr/xpg4/bin/nm\ \-p
export NM

For Solaris 10 in the past, we've found that if you're not using the OpenCSW 
tools you need to use gnm (gnu's nm utility).  The same is probably true for 
AIX.  
Please install gnm and give this a try (I've made the assumption that it'll 
install to /usr/local.  Of course adjust the path as needed. I'm not sure if 
the "-p" argument is required:

./configure NM=/usr/local/bin/gnm AR="/usr/bin/ar -X64" LDFLAGS="-maix64 
-Wl,-bbigtoc -lbsd -lclamav" CFLAGS="-maix64" CXXFLAGS="-maix64" 
LDFLAGS="-maix64 -Wl,-bbigtoc -lbsd" --prefix=/usr/lib/clamav 
--exec-prefix=/usr/lib/clamav --bindir=/usr/lib/clamav 
--sbindir=/usr/lib/clamav --sysconfdir=/etc/clamav --libdir=/usr/lib/clamav 
--datarootdir=/usr/lib/clamav --with-dbdir=/usr/lib/clamav --disable-clamav 
--enable-shared --disable-static --disable-zlib-vcheck --with-pcre 
--with-openssl=/opt/freeware --enable-strni

Regards,
Micah   

On 8/12/19, 10:04 PM, "clamav-users on behalf of Tsutomu Oyamada" 
 
wrote:

Hi, all

I am trying to build ClamAV 0.101.3 on AIX6.1.
I did the following procedure, but it fails to make.
What can I do?
Excuse me in a long sentence below.

1. Download clamav-0.101.3.tar.gz package.
2. Extract package.
3. Execute configure

AR="/usr/bin/ar -X64" LDFLAGS="-maix64 -Wl,-bbigtoc -lbsd -lclamav"
./configure CFLAGS="-maix64" CXXFLAGS="-maix64" LD
FLAGS="-maix64 -Wl,-bbigtoc -lbsd" --prefix=/usr/lib/clamav 
--exec-prefix=/usr/lib/clamav --bindir=/usr/lib/clamav --sbindir=/us
r/lib/clamav --sysconfdir=/etc/clamav --libdir=/usr/lib/clamav 
--datarootdir=/usr/lib/clamav --with-dbdir=/usr/lib/clamav --disa
ble-clamav --enable-shared --disable-static --disable-zlib-vcheck 
--with-pcre --with-openssl=/opt/freeware --enable-strni

checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking build system type... powerpc-ibm-aix6.1.0.0
checking host system type... powerpc-ibm-aix6.1.0.0
checking target system type... powerpc-ibm-aix6.1.0.0
creating target.h - canonical system defines
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of g++... gcc3
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking the archiver (/usr/bin/ar -X64) interface... ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes

[clamav-users] About ClamAV 0.101.3 builds on AIX6.1

2019-08-12 Thread Tsutomu Oyamada
Hi, all

I am trying to build ClamAV 0.101.3 on AIX6.1.
I did the following procedure, but it fails to make.
What can I do?
Excuse me in a long sentence below.

1. Download clamav-0.101.3.tar.gz package.
2. Extract package.
3. Execute configure

AR="/usr/bin/ar -X64" LDFLAGS="-maix64 -Wl,-bbigtoc -lbsd -lclamav"
./configure CFLAGS="-maix64" CXXFLAGS="-maix64" LD
FLAGS="-maix64 -Wl,-bbigtoc -lbsd" --prefix=/usr/lib/clamav 
--exec-prefix=/usr/lib/clamav --bindir=/usr/lib/clamav --sbindir=/us
r/lib/clamav --sysconfdir=/etc/clamav --libdir=/usr/lib/clamav 
--datarootdir=/usr/lib/clamav --with-dbdir=/usr/lib/clamav --disa
ble-clamav --enable-shared --disable-static --disable-zlib-vcheck --with-pcre 
--with-openssl=/opt/freeware --enable-strni

checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking build system type... powerpc-ibm-aix6.1.0.0
checking host system type... powerpc-ibm-aix6.1.0.0
checking target system type... powerpc-ibm-aix6.1.0.0
creating target.h - canonical system defines
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of g++... gcc3
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking the archiver (/usr/bin/ar -X64) interface... ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert powerpc-ibm-aix6.1.0.0 file names to 
powerpc-ibm-aix6.1.0.0 format... func_convert_file_noop
checking how to convert powerpc-ibm-aix6.1.0.0 file names to toolchain 
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... failed
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking which variant of shared library versioning to provide... aix
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... AIX lib.a(lib.so.V)
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes