[Scilab-Dev] scilab-5.4 compilation issues

Sylvestre Ledru sylvestre.ledru at scilab-enterprises.com
Mon Jul 2 12:41:51 CEST 2012


Which version of libxml do you have ?

S

Le 02/07/2012 06:50, Guillaume Horel a écrit :
> Thanks for the reply, so the question is how do I fix the first error
> then? If I don't remove the extern statements I get a bunch of "error:
> template with C linkage" errors.
>
> Guillaume
>
> On Sun, Jul 1, 2012 at 8:01 AM, Sylvestre Ledru
> <sylvestre.ledru at scilab-enterprises.com> wrote:
>> Bonjour Guillaume
>>
>> Sorry about le lag, we had crazy days here!
>>
>>
>> Le 27/06/2012 04:14, Guillaume Horel a écrit :
>>> Hello all,
>>>
>>> I'm trying to package the scilab-5.4 for gentoo. Scilab-5.3 compiles
>>> fine on my computer, so my setup is nothing crazy. When I try to
>>> compile from the latest snapshot from master or the beta1 tag, I get
>>> the following error inside the compilation of the xml modules:
>>> http://pastebin.com/hqTdW7Pm
>> Interesting. I never saw that bug. Which version of libxml do you have ?
>>> A bit of googling reveals that this is likely caused by ``dangling
>>> extern "C" statements''. I tried to fix it using the following patch:
>>> http://paste.lugons.org/show/2649/ These extern "C" clearly look
>>> redundant since they're already in the libxml2 header files. This
>>> allows the compilation to keep on going. However I get the following
>>> error later on:
>>>
>>> make[1]: Entering directory
>> [...]
>>> /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so:
>>> undefined reference to `isXMLAttr(int*, void*)'
>>> collect2: ld returned 1 exit status
>>>
>>> This may or may not be related to the previous fix given that the
>>> missing symbols are xml related. Does anybody has any idea how to fix
>>> this?
>> Yes, the extern changes the mangeling of the library symbol (C++ vs C).
>> It is the consequence of your previous change.
>>
>>
>> Sylvestre
>>




More information about the dev mailing list