[Scilab-Dev] scilab-5.4 compilation issues

Sylvestre Ledru sylvestre.ledru at scilab-enterprises.com
Sun Jul 1 14:01:25 CEST 2012


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