[clamav-users] Problem configuring clamav-0.99

Steven Morgan smorgan at sourcefire.com
Wed Dec 16 22:26:38 UTC 2015


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 <smorgan at sourcefire.com>
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 <todd.aiken at ubishops.ca>
> 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 <clamav-users-bounces at lists.clamav.net> on behalf of
>> Steven Morgan <smorgan at sourcefire.com>
>> Reply-To: ClamAV users ML <clamav-users at lists.clamav.net>
>> Date: Wednesday, December 16, 2015 at 2:43 PM
>> To: ClamAV users ML <clamav-users at lists.clamav.net>
>> 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 <todd.aiken at ubishops.ca>
>> wrote:
>> >
>> >> -----Original Message-----
>> >>
>> >>
>> >> From: clamav-users <clamav-users-bounces at lists.clamav.net> on behalf
>> of "
>> >> atik at cerist.dz" <atik at cerist.dz>
>> >> Reply-To: ClamAV users ML <clamav-users at lists.clamav.net>
>> >> Date: Monday, December 7, 2015 at 12:25 PM
>> >> To: ClamAV users ML <clamav-users at lists.clamav.net>
>> >> 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
>>
>> http://www.clamav.net/contact.html#ml
>>
>
>



More information about the clamav-users mailing list