Re: [clamav-users] Problem configuring clamav-0.99

2015-12-16 Thread Steven Morgan
Ali / Todd,

Thanks for the updates, I am looking into what is the possible cause for
the "Structure packing" error.

What are your compiler versions?

Steve

On Wed, Dec 16, 2015 at 2:53 PM, Todd Aiken  wrote:

> HI Steve, thanks for your reply.
>
> I did install a new version of PCRE to the directory /usr/local/pcre
> (configured it with --prefix=/usr/local/prce so as to not interfere with
> the older installed pcre), and told clamav's configure to use it with the
> line --with-pcre=/usr/local/pcre.  This is what got me to the "configure:
> error: Structure packing seems to be available, but is not working with
> this compiler", which is the same issue that ali atik is having.
>
>
>
> Todd A. Aiken
> Systems Analyst & Administrator
> ITS Department
> BISHOP'S UNIVERSITY
> 2600 College Street
> Sherbrooke, Quebec
> CANADA   J1M 1Z7
>
>
>
>
>
>
>
>
> -Original Message-
> From: clamav-users  on behalf of
> Steven Morgan 
> Reply-To: ClamAV users ML 
> Date: Wednesday, December 16, 2015 at 2:43 PM
> To: ClamAV users ML 
> Subject: Re: [clamav-users] Problem configuring clamav-0.99
>
> >Todd,
> >
> >PCRE support is new in ClamAV 0.99 and ./configure looks for it by
> default.
> >So in your case it found an old version of pcre which is incompatible with
> >ClamAV 0.99. Minimum PCRE version checks have been added for the upcoming
> >0.99.1 release. For installing 0.99 on your system, you will either need
> to
> >use './configure --with-pcre=no ...' or install a more current version of
> >PCRE.
> >
> >Steve
> >
> >On Mon, Dec 7, 2015 at 1:25 PM, Todd Aiken 
> wrote:
> >
> >> -Original Message-
> >>
> >>
> >> From: clamav-users  on behalf
> of "
> >> a...@cerist.dz" 
> >> Reply-To: ClamAV users ML 
> >> Date: Monday, December 7, 2015 at 12:25 PM
> >> To: ClamAV users ML 
> >> Subject: Re: [clamav-users] Problem configuring clamav-0.99
> >>
> >> >checking bzlib.h presence... yes
> >> >checking for bzlib.h... yes
> >> >checking for CVE-2008-1372... linkfailed
> >> >configure: WARNING: ** Unable to link bzip2 testcase
> >> >configure: WARNING: ** You may be affected by CVE-2008-1372 bug,
> but I
> >> >need to be able to link a testcase to verify
> >> >configure: WARNING: ** It is recommended to fix your build
> environment
> >> >so that we can run the testcase!
> >> >configure: WARNING: ** Please do not report stability problems to
> the
> >> >ClamAV developers!
> >> >checking for CVE-2010-0405... linkfailed
> >> >configure: WARNING: ** Unable to link bzip2 testcase
> >> >configure: WARNING: ** You may be affected by CVE-2010-0405 bug,
> but I
> >> >need to be able to link a testcase to verify
> >> >configure: WARNING: ** It is recommended to fix your build
> environment
> >> >so that we can run the testcase!
> >> >configure: WARNING: ** Please do not report stability problems to
> the
> >> >ClamAV developers!
> >> >checking for getaddrinfo... no
> >>
> >> -snip-
> >>
> >> >checking for type aligning via __attribute__((aligned))... yes
> >> >checking that structure packing works... no
> >> >configure: error: Structure packing seems to be available, but is not
> >> >working with this compiler
> >>
> >> I am having the exact same issue with trying to compile on an old
> >> Slackware server (running Slackware 10.2.0).  I had to install an
> updated
> >> version of pcre in order to get past a different compiling issue, and
> >> installed the new version to /usr/local/pcre with the configure
> parameter
> >> --prefix=/usr/local/pcre, but when I try to configure clamav-0.99 using
> >> --with-pcre=/usr/local/pcre, I get this same structure error.  Here is
> the
> >> full configure line I am using for clamav-0.99:
> >>
> >> ./configure --prefix=/usr --sysconfdir=/etc --disable-llvm
> --disable-ipv6
> >> --with-openssl=/usr/local/ssl --with-pcre=/usr/local/pcre
> >>
> >> Removing --with-pcre=/usr/local/pcre, configure completes successfully,
> >> but then I get this when I run make:
> >>
> >> CC libclamav_la-matcher-pcre.lo
> >> matcher-pcre.c: In function `cli_pcre_scanbuf':
> >> matcher-pcre.c:740: error: `PCRE_ERROR_RECURSIONLIMIT' undeclared (first
> >> use in this function)
> >> matcher-pcre.c:740: error: (Each undeclared identifier is reported only
> >> once
> >> matcher-pcre.c:740: error: for each function it appears in.)
> >> make[4]: *** [libclamav_la-matcher-pcre.lo] Error 1
> >> make[4]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
> >> make[3]: *** [all-recursive] Error 1
> >> make[3]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
> >> make[2]: *** [all] Error 2
> >> make[2]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
> >> make[1]: 

Re: [clamav-users] Problem configuring clamav-0.99

2015-12-16 Thread Todd Aiken
HI Steve, thanks for your reply.

I did install a new version of PCRE to the directory /usr/local/pcre 
(configured it with --prefix=/usr/local/prce so as to not interfere with the 
older installed pcre), and told clamav's configure to use it with the line 
--with-pcre=/usr/local/pcre.  This is what got me to the "configure: error: 
Structure packing seems to be available, but is not working with this 
compiler", which is the same issue that ali atik is having.



Todd A. Aiken
Systems Analyst & Administrator
ITS Department
BISHOP'S UNIVERSITY
2600 College Street
Sherbrooke, Quebec
CANADA   J1M 1Z7








-Original Message-
From: clamav-users  on behalf of Steven 
Morgan 
Reply-To: ClamAV users ML 
Date: Wednesday, December 16, 2015 at 2:43 PM
To: ClamAV users ML 
Subject: Re: [clamav-users] Problem configuring clamav-0.99

>Todd,
>
>PCRE support is new in ClamAV 0.99 and ./configure looks for it by default.
>So in your case it found an old version of pcre which is incompatible with
>ClamAV 0.99. Minimum PCRE version checks have been added for the upcoming
>0.99.1 release. For installing 0.99 on your system, you will either need to
>use './configure --with-pcre=no ...' or install a more current version of
>PCRE.
>
>Steve
>
>On Mon, Dec 7, 2015 at 1:25 PM, Todd Aiken  wrote:
>
>> -Original Message-
>>
>>
>> From: clamav-users  on behalf of "
>> a...@cerist.dz" 
>> Reply-To: ClamAV users ML 
>> Date: Monday, December 7, 2015 at 12:25 PM
>> To: ClamAV users ML 
>> Subject: Re: [clamav-users] Problem configuring clamav-0.99
>>
>> >checking bzlib.h presence... yes
>> >checking for bzlib.h... yes
>> >checking for CVE-2008-1372... linkfailed
>> >configure: WARNING: ** Unable to link bzip2 testcase
>> >configure: WARNING: ** You may be affected by CVE-2008-1372 bug, but I
>> >need to be able to link a testcase to verify
>> >configure: WARNING: ** It is recommended to fix your build environment
>> >so that we can run the testcase!
>> >configure: WARNING: ** Please do not report stability problems to the
>> >ClamAV developers!
>> >checking for CVE-2010-0405... linkfailed
>> >configure: WARNING: ** Unable to link bzip2 testcase
>> >configure: WARNING: ** You may be affected by CVE-2010-0405 bug, but I
>> >need to be able to link a testcase to verify
>> >configure: WARNING: ** It is recommended to fix your build environment
>> >so that we can run the testcase!
>> >configure: WARNING: ** Please do not report stability problems to the
>> >ClamAV developers!
>> >checking for getaddrinfo... no
>>
>> -snip-
>>
>> >checking for type aligning via __attribute__((aligned))... yes
>> >checking that structure packing works... no
>> >configure: error: Structure packing seems to be available, but is not
>> >working with this compiler
>>
>> I am having the exact same issue with trying to compile on an old
>> Slackware server (running Slackware 10.2.0).  I had to install an updated
>> version of pcre in order to get past a different compiling issue, and
>> installed the new version to /usr/local/pcre with the configure parameter
>> --prefix=/usr/local/pcre, but when I try to configure clamav-0.99 using
>> --with-pcre=/usr/local/pcre, I get this same structure error.  Here is the
>> full configure line I am using for clamav-0.99:
>>
>> ./configure --prefix=/usr --sysconfdir=/etc --disable-llvm --disable-ipv6
>> --with-openssl=/usr/local/ssl --with-pcre=/usr/local/pcre
>>
>> Removing --with-pcre=/usr/local/pcre, configure completes successfully,
>> but then I get this when I run make:
>>
>> CC libclamav_la-matcher-pcre.lo
>> matcher-pcre.c: In function `cli_pcre_scanbuf':
>> matcher-pcre.c:740: error: `PCRE_ERROR_RECURSIONLIMIT' undeclared (first
>> use in this function)
>> matcher-pcre.c:740: error: (Each undeclared identifier is reported only
>> once
>> matcher-pcre.c:740: error: for each function it appears in.)
>> make[4]: *** [libclamav_la-matcher-pcre.lo] Error 1
>> make[4]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/usr/src/software/clamav-0.99'
>> make: *** [all] Error 2
>>
>> (This is with PCRE version 6.4 that came with Slackware 10.2.0)
>>
>> As with the original poster, clamav-0.98.7 compiled fine on this same
>> server and is currently running there.
>>
___
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq


Re: [clamav-users] Problem configuring clamav-0.99

2015-12-16 Thread Steven Morgan
Todd,

PCRE support is new in ClamAV 0.99 and ./configure looks for it by default.
So in your case it found an old version of pcre which is incompatible with
ClamAV 0.99. Minimum PCRE version checks have been added for the upcoming
0.99.1 release. For installing 0.99 on your system, you will either need to
use './configure --with-pcre=no ...' or install a more current version of
PCRE.

Steve

On Mon, Dec 7, 2015 at 1:25 PM, Todd Aiken  wrote:

> -Original Message-
>
>
> From: clamav-users  on behalf of "
> a...@cerist.dz" 
> Reply-To: ClamAV users ML 
> Date: Monday, December 7, 2015 at 12:25 PM
> To: ClamAV users ML 
> Subject: Re: [clamav-users] Problem configuring clamav-0.99
>
> >checking bzlib.h presence... yes
> >checking for bzlib.h... yes
> >checking for CVE-2008-1372... linkfailed
> >configure: WARNING: ** Unable to link bzip2 testcase
> >configure: WARNING: ** You may be affected by CVE-2008-1372 bug, but I
> >need to be able to link a testcase to verify
> >configure: WARNING: ** It is recommended to fix your build environment
> >so that we can run the testcase!
> >configure: WARNING: ** Please do not report stability problems to the
> >ClamAV developers!
> >checking for CVE-2010-0405... linkfailed
> >configure: WARNING: ** Unable to link bzip2 testcase
> >configure: WARNING: ** You may be affected by CVE-2010-0405 bug, but I
> >need to be able to link a testcase to verify
> >configure: WARNING: ** It is recommended to fix your build environment
> >so that we can run the testcase!
> >configure: WARNING: ** Please do not report stability problems to the
> >ClamAV developers!
> >checking for getaddrinfo... no
>
> -snip-
>
> >checking for type aligning via __attribute__((aligned))... yes
> >checking that structure packing works... no
> >configure: error: Structure packing seems to be available, but is not
> >working with this compiler
>
> I am having the exact same issue with trying to compile on an old
> Slackware server (running Slackware 10.2.0).  I had to install an updated
> version of pcre in order to get past a different compiling issue, and
> installed the new version to /usr/local/pcre with the configure parameter
> --prefix=/usr/local/pcre, but when I try to configure clamav-0.99 using
> --with-pcre=/usr/local/pcre, I get this same structure error.  Here is the
> full configure line I am using for clamav-0.99:
>
> ./configure --prefix=/usr --sysconfdir=/etc --disable-llvm --disable-ipv6
> --with-openssl=/usr/local/ssl --with-pcre=/usr/local/pcre
>
> Removing --with-pcre=/usr/local/pcre, configure completes successfully,
> but then I get this when I run make:
>
> CC libclamav_la-matcher-pcre.lo
> matcher-pcre.c: In function `cli_pcre_scanbuf':
> matcher-pcre.c:740: error: `PCRE_ERROR_RECURSIONLIMIT' undeclared (first
> use in this function)
> matcher-pcre.c:740: error: (Each undeclared identifier is reported only
> once
> matcher-pcre.c:740: error: for each function it appears in.)
> make[4]: *** [libclamav_la-matcher-pcre.lo] Error 1
> make[4]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/software/clamav-0.99/libclamav'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/software/clamav-0.99'
> make: *** [all] Error 2
>
> (This is with PCRE version 6.4 that came with Slackware 10.2.0)
>
> As with the original poster, clamav-0.98.7 compiled fine on this same
> server and is currently running there.
>
>
> Thanks.
>
>
> Todd A. Aiken
> Systems Analyst & Administrator
> ITS Department
> BISHOP'S UNIVERSITY
> 2600 College Street
> Sherbrooke, Quebec
> CANADA   J1M 1Z7
>
>
>
> ___
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
>
___
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [clamav-users] Problem configuring clamav-0.99

2015-12-16 Thread atik
> bzip2 1.0.5 looks kind of old. Can you try a more current version?


Hi Steven

i dont think it is an bzip2 problem because when i have tried to configure
my clamav without  bzip2 (--disable-bzip2  option), i 've got nothing
changed (same error)

[root@mail clamav-0.99]# ./configure --disable-llvm --enable-check
--enable-clamdtop --with-user=clamav --with-group=clamav
--enable-experimental --disable-bzip2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
creating target.h - canonical system defines
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
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... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu
format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
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 whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking which extension is used for runtime loadable modules... .so
checking which variable specifies run-time module search path...
LD_LIBRARY_PATH
checking for the default library search path... /lib /usr/lib
/usr/lib/mysql /usr/lib/qt-3.3/lib /usr/lib/xulrunner
checking for library containing dlopen... -ldl
checking for dlerror... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dld_link in -ldld... no
checking for _ prefix in compiled symbols... no
checking whether deplibs are 

Re: [clamav-users] Problem configuring clamav-0.99

2015-12-16 Thread Steven Morgan
Ali,

Please look in your config.log file for Structure packing. Do you have the
same or similar error?

configure:20381: checking that structure packing works
configure:20438: gcc -o conftest -g -O2  -I/opt/pcre837/include
-L/opt/pcre837/lib -lpcre conftest.c -ldl  >&5
conftest.c:147: warning: 'packed' attribute ignored for field of type 'char'
configure:20438: $? = 0
configure:20438: ./conftest
./conftest: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No such file or directory

This is the conftest for "structure packing" failing because it cannot link
to the pcre shared library. If this is the case, I can suggest looking into
using ldconfig or setting the environment variable LD_LIBRARY_PATH to
resolve the link issue, and then configure ClamAV.

Hope this helps,
Steve

On Wed, Dec 16, 2015 at 3:00 PM, Steven Morgan 
wrote:

> Ali / Todd,
>
> Thanks for the updates, I am looking into what is the possible cause for
> the "Structure packing" error.
>
> What are your compiler versions?
>
> Steve
>
> On Wed, Dec 16, 2015 at 2:53 PM, Todd Aiken 
> wrote:
>
>> HI Steve, thanks for your reply.
>>
>> I did install a new version of PCRE to the directory /usr/local/pcre
>> (configured it with --prefix=/usr/local/prce so as to not interfere with
>> the older installed pcre), and told clamav's configure to use it with the
>> line --with-pcre=/usr/local/pcre.  This is what got me to the "configure:
>> error: Structure packing seems to be available, but is not working with
>> this compiler", which is the same issue that ali atik is having.
>>
>>
>>
>> Todd A. Aiken
>> Systems Analyst & Administrator
>> ITS Department
>> BISHOP'S UNIVERSITY
>> 2600 College Street
>> Sherbrooke, Quebec
>> CANADA   J1M 1Z7
>>
>>
>>
>>
>>
>>
>>
>>
>> -Original Message-
>> From: clamav-users  on behalf of
>> Steven Morgan 
>> Reply-To: ClamAV users ML 
>> Date: Wednesday, December 16, 2015 at 2:43 PM
>> To: ClamAV users ML 
>> Subject: Re: [clamav-users] Problem configuring clamav-0.99
>>
>> >Todd,
>> >
>> >PCRE support is new in ClamAV 0.99 and ./configure looks for it by
>> default.
>> >So in your case it found an old version of pcre which is incompatible
>> with
>> >ClamAV 0.99. Minimum PCRE version checks have been added for the upcoming
>> >0.99.1 release. For installing 0.99 on your system, you will either need
>> to
>> >use './configure --with-pcre=no ...' or install a more current version of
>> >PCRE.
>> >
>> >Steve
>> >
>> >On Mon, Dec 7, 2015 at 1:25 PM, Todd Aiken 
>> wrote:
>> >
>> >> -Original Message-
>> >>
>> >>
>> >> From: clamav-users  on behalf
>> of "
>> >> a...@cerist.dz" 
>> >> Reply-To: ClamAV users ML 
>> >> Date: Monday, December 7, 2015 at 12:25 PM
>> >> To: ClamAV users ML 
>> >> Subject: Re: [clamav-users] Problem configuring clamav-0.99
>> >>
>> >> >checking bzlib.h presence... yes
>> >> >checking for bzlib.h... yes
>> >> >checking for CVE-2008-1372... linkfailed
>> >> >configure: WARNING: ** Unable to link bzip2 testcase
>> >> >configure: WARNING: ** You may be affected by CVE-2008-1372 bug,
>> but I
>> >> >need to be able to link a testcase to verify
>> >> >configure: WARNING: ** It is recommended to fix your build
>> environment
>> >> >so that we can run the testcase!
>> >> >configure: WARNING: ** Please do not report stability problems to
>> the
>> >> >ClamAV developers!
>> >> >checking for CVE-2010-0405... linkfailed
>> >> >configure: WARNING: ** Unable to link bzip2 testcase
>> >> >configure: WARNING: ** You may be affected by CVE-2010-0405 bug,
>> but I
>> >> >need to be able to link a testcase to verify
>> >> >configure: WARNING: ** It is recommended to fix your build
>> environment
>> >> >so that we can run the testcase!
>> >> >configure: WARNING: ** Please do not report stability problems to
>> the
>> >> >ClamAV developers!
>> >> >checking for getaddrinfo... no
>> >>
>> >> -snip-
>> >>
>> >> >checking for type aligning via __attribute__((aligned))... yes
>> >> >checking that structure packing works... no
>> >> >configure: error: Structure packing seems to be available, but is not
>> >> >working with this compiler
>> >>
>> >> I am having the exact same issue with trying to compile on an old
>> >> Slackware server (running Slackware 10.2.0).  I had to install an
>> updated
>> >> version of pcre in order to get past a different compiling issue, and
>> >> installed the new version to /usr/local/pcre with the configure
>> parameter
>> >> --prefix=/usr/local/pcre, but when I try to configure clamav-0.99 using
>> >> --with-pcre=/usr/local/pcre, I get this same structure error.  Here is
>> the
>> >> full configure