[clamav-users] Compiling error: /usr/lib/libxml2.so: error adding symbols: File in wrong format

Alexander Tampermeier alexander at tampermeier.at
Thu May 8 07:49:31 UTC 2014


Shawn,

I am very sorry. Obviously I mixed something up totally.

Here is the corrected output of the configure command (now including 
option --disable-silent-rules): http://de.pastebin.de/124760

And here is the corrected output of the make command: 
http://de.pastebin.de/124761

Regards
Alexander


Am 08.05.2014 09:29, schrieb Shawn Webb:
> Did you add the --disable-silent-rules to your ./configure run? It looks
> like step 3 is still producing friendly output.
>
>
> On Thu, May 8, 2014 at 3:21 AM, Alexander Tampermeier <
> alexander at tampermeier.at> wrote:
>
>> Hello Shawn,
>>
>> I executed 'make clean distclean'.
>>
>> I pasted the output of command #2 (CC="gcc ${BUILD64}" ./configure ...) at
>> http://de.pastebin.de/124756
>>
>> Output of command #3 (make) is pasted at http://de.pastebin.de/124757
>>
>> Regards
>> Alexander
>>
>>
>> Am 08.05.2014 08:40, schrieb Shawn Webb:
>>
>>> Can you run these commands, and paste the output of commands 2 and 3 to
>>> your pastebin service (friendly remember to pipe stderr to stdout):
>>>
>>> 1. make clean distclean
>>> 2. CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc/clamav
>>>
>>> --with-zlib=/usr --with-dbdir=/usr/share/clamav --disable-silent-rules
>>> 3. make
>>>
>>> Thanks,
>>>
>>> Shawn
>>>
>>>
>>> On Thu, May 8, 2014 at 2:33 AM, Alexander Tampermeier <
>>>
>>> alexander at tampermeier.at> wrote:
>>>
>>>   Hello Shawn,
>>>> thank you for your response.
>>>>
>>>> This is output of 'file /usr/lib/libxml2.so':
>>>> /usr/lib/libxml2.so: symbolic link to `libxml2.so.2.9.1'
>>>>
>>>> And 'file /usr/lib/libxml2.so.2.9.1' outputs:
>>>> /usr/lib/libxml2.so.2.9.1: ELF 32-bit LSB shared object, Intel 80386,
>>>> version 1 (SYSV), dynamically linked, not stripped
>>>>
>>>> As my box is cross compiled x86/x64 there are also 64bit libraries, so
>>>> that 'file /usr/lib64/libxml2.so' gives:
>>>> /usr/lib64/libxml2.so: symbolic link to `libxml2.so.2.9.1'
>>>>
>>>> And file 'file /usr/lib64/libxml2.so.2.9.1' outputs:
>>>> /usr/lib64/libxml2.so.2.9.1: ELF 64-bit LSB shared object, x86-64,
>>>> version
>>>> 1 (SYSV), dynamically linked, not stripped
>>>>
>>>> This is my configure command (building 64bit):
>>>> CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc/clamav
>>>> --with-zlib=/usr --with-dbdir=/usr/share/clamav
>>>>
>>>> Where 'echo ${BUILD64}' outputs:
>>>> -m64
>>>>
>>>> I pasted the content of my config.log at http://de.pastebin.de/124754
>>>>
>>>> Regards
>>>> Alexander
>>>>
>>>>
>>>>
>>>>
>>>> Am 08.05.2014 07:52, schrieb Shawn Webb:
>>>>
>>>>   What's the output of this command: file /usr/lib/libxml2.so
>>>>> Can you paste (preferably to a pastebin service) your config.log? What
>>>>> options did you pass to ./configure?
>>>>>
>>>>>
>>>>> On Thu, May 8, 2014 at 1:48 AM, Alexander Tampermeier <
>>>>> alexander at tampermeier.at> wrote:
>>>>>
>>>>>    I have been using ClamAV on my Linux box (Cross Compiled Linux from
>>>>>
>>>>>> Scratch; gcc 4.8.2) for years now and it always compiled well.
>>>>>>
>>>>>> Now, compiling version 0.98.3 (and also in 0.98.2) I get the following
>>>>>> compiling error:
>>>>>>
>>>>>>      CC     libclamav_la-fp_sqr_comba_8.lo
>>>>>>      CC     libclamav_la-fp_sqr_comba_9.lo
>>>>>>      CC     libclamav_la-fp_sqr_comba_generic.lo
>>>>>>      CC     libclamav_la-fp_sqr_comba_small_set.lo
>>>>>>      CC     libclamav_la-fp_sqrmod.lo
>>>>>>      CC     libclamav_internal_utils_la-str.lo
>>>>>>      CC     libclamav_internal_utils_la-crypto.lo
>>>>>>      CC     libclamav_internal_utils_la-iowrap.lo
>>>>>>      CC     libclamav_internal_utils_la-others_common.lo
>>>>>>      CC     libclamav_internal_utils_la-qsort.lo
>>>>>>      CC     libclamav_internal_utils_la-regcomp.lo
>>>>>>      CC     libclamav_internal_utils_la-regerror.lo
>>>>>>      CC     libclamav_internal_utils_la-regexec.lo
>>>>>>      CC     libclamav_internal_utils_la-regfree.lo
>>>>>>      CCLD   libclamav_internal_utils.la
>>>>>>      CCLD   libclamav.la
>>>>>> /usr/lib/libxml2.so: error adding symbols: File in wrong format
>>>>>> collect2: error: ld returned 1 exit status
>>>>>> Makefile:969: recipe for target 'libclamav.la' failed
>>>>>> make[4]: *** [libclamav.la] Error 1
>>>>>> make[4]: Leaving directory '/j/development/clamav-0.98.3/libclamav'
>>>>>> Makefile:3011: recipe for target 'all-recursive' failed
>>>>>> make[3]: *** [all-recursive] Error 1
>>>>>> make[3]: Leaving directory '/j/development/clamav-0.98.3/libclamav'
>>>>>> Makefile:893: recipe for target 'all' failed
>>>>>> make[2]: *** [all] Error 2
>>>>>> make[2]: Leaving directory '/j/development/clamav-0.98.3/libclamav'
>>>>>> Makefile:649: recipe for target 'all-recursive' failed
>>>>>> make[1]: *** [all-recursive] Error 1
>>>>>> make[1]: Leaving directory '/j/development/clamav-0.98.3'
>>>>>> Makefile:477: recipe for target 'all' failed
>>>>>> make: *** [all] Error 2
>>>>>>
>>>>>> Does anybody know how to get around this? I already recompiled libxml2
>>>>>> (v2.9.1) but the error persists.
>>>>>> ClamAV v0.98.1 still compiles perfectly.
>>>>>>
>>>>>> Regards
>>>>>> Alexander
>>>>>> _______________________________________________
>>>>>> Help us build a comprehensive ClamAV guide:
>>>>>> https://github.com/vrtadmin/clamav-faq
>>>>>> http://www.clamav.net/support/ml
>>>>>>
>>>>>>    _______________________________________________
>>>>>>
>>>>> Help us build a comprehensive ClamAV guide:
>>>>> https://github.com/vrtadmin/clamav-faq
>>>>> http://www.clamav.net/support/ml
>>>>>
>>>>>
>>>>>   _______________________________________________
>>>> Help us build a comprehensive ClamAV guide:
>>>> https://github.com/vrtadmin/clamav-faq
>>>> http://www.clamav.net/support/ml
>>>>
>>>>   _______________________________________________
>>> Help us build a comprehensive ClamAV guide:
>>> https://github.com/vrtadmin/clamav-faq
>>> http://www.clamav.net/support/ml
>>>
>>>
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide:
>> https://github.com/vrtadmin/clamav-faq
>> http://www.clamav.net/support/ml
>>
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> http://www.clamav.net/support/ml
>




More information about the clamav-users mailing list