[Scilab-Dev] umf_divcomplex problem in compilation

Sylvestre Ledru sylvestre.ledru at scilab-enterprises.com
Mon Jan 28 12:15:46 CET 2013


That is the error:

gcc -o conftest -g -O2   conftest.c -lumfpack  -lamd -lblas -lpthread
-ldl -lcurses  -lm -lm >&5
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.7.2/../../../../lib64/libumfpack.so:
undefined reference to `SuiteSparse_time'

A priori, I would say that umfpack is not explicitly linked against lib
SuiteSparse.so (-lSuiteSparse) if it exists or the -Wl,--as-needed
created some mess.

Basically, it is a bug of the suitesparse package in Mageia.

Scilab should build with:
--with-umfpack-library="-lumfpack -lSuiteSparse"
or with the attached patch (which is mageia specific)

Could you report a bug ? I will try to workaround this issue from Scilab.


Sylvestre



On 28/01/2013 11:51, Filipe Saraiva wrote:
> The config.log file after umfpack error -> http://paste.kde.org/658088/
> 
> 2013/1/28 Sylvestre Ledru <sylvestre.ledru at scilab-enterprises.com
> <mailto:sylvestre.ledru at scilab-enterprises.com>>
> 
>     OK. Could you share the failing config.log ?
> 
>     Thanks
>     S
> 
>     On 28/01/2013 11:23, Filipe Saraiva wrote:
>     > I used --without-umfpack.
>     >
>     > Scilab package's mantainer in Mageia get the same problem. Apparently
>     > --without-umfpack is used in Scilab package in Mageia too ->
>     > https://bugs.mageia.org/show_bug.cgi?id=7668#c2
>     >
>     > 2013/1/28 Sylvestre Ledru <sylvestre.ledru at scilab-enterprises.com
>     <mailto:sylvestre.ledru at scilab-enterprises.com>
>     > <mailto:sylvestre.ledru at scilab-enterprises.com
>     <mailto:sylvestre.ledru at scilab-enterprises.com>>>
>     >
>     >     You are welcome.
>     >     Could you share how you fixed it ?
>     >
>     >     S
>     >
>     >     On 28/01/2013 11:14, Filipe Saraiva wrote:
>     >     > Oh, great Sylvestre! Thank for your tip!
>     >     >
>     >     > 2013/1/27 xuhaida <xuhaida at gmail.com
>     <mailto:xuhaida at gmail.com> <mailto:xuhaida at gmail.com
>     <mailto:xuhaida at gmail.com>>
>     >     <mailto:xuhaida at gmail.com <mailto:xuhaida at gmail.com>
>     <mailto:xuhaida at gmail.com <mailto:xuhaida at gmail.com>>>>
>     >     >
>     >     >
>     >     >
>     >     >     Sylvestre Ledru <sylvestre.ledru at scilab-enterprises.com
>     <mailto:sylvestre.ledru at scilab-enterprises.com>
>     >     <mailto:sylvestre.ledru at scilab-enterprises.com
>     <mailto:sylvestre.ledru at scilab-enterprises.com>>
>     >     >     <mailto:sylvestre.ledru at scilab-enterprises.com
>     <mailto:sylvestre.ledru at scilab-enterprises.com>
>     >     <mailto:sylvestre.ledru at scilab-enterprises.com
>     <mailto:sylvestre.ledru at scilab-enterprises.com>>>>编写:
>     >     >
>     >     >     >On 26/01/2013 17:58, Filipe Saraiva wrote:
>     >     >     >> Hello,
>     >     >     >>
>     >     >     >> I have a error during Scilab compilation. The error
>     message
>     >     is below:
>     >     >     >>
>     >     >     >> checking for umf_divcomplex in -lumfpack... no
>     >     >     >> configure: error: libumfpack: Library missing.
>     (Cannot find
>     >     symbol
>     >     >     >> umf_divcomplex). Check if libumfpack is installed and
>     if the
>     >     >     version is
>     >     >     >> correct (also called lib suitesparse)
>     >     >     >>
>     >     >     >> But umfpack is installed. I submitted a bug report to my
>     >     distribution
>     >     >     >> some months ago
>     >     (https://bugs.mageia.org/show_bug.cgi?id=7668) but I
>     >     >     >> don't had replies yet.
>     >     >     >>
>     >     >     >> Have you some idea about this?
>     >     >     >Yeh, you should have a look in the config.log, you will
>     find more
>     >     >     >information about the issue.
>     >     >     >Otherwise, --without-umfpack is your friend.
>     >     >     >
>     >     >     >S
>     >     >     >
>     >     >     >_______________________________________________
>     >     >     >dev mailing list
>     >     >     >dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>>
>     >     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>>>
>     >     >     >http://lists.scilab.org/mailman/listinfo/dev
>     >     >     _______________________________________________
>     >     >     dev mailing list
>     >     >     dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>>
>     >     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>>>
>     >     >     http://lists.scilab.org/mailman/listinfo/dev
>     >     >
>     >     >
>     >     >
>     >     >
>     >     > --
>     >     > Filipe Saraiva
>     >     > http://filipesaraiva.info/
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > dev mailing list
>     >     > dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>>
>     >     > http://lists.scilab.org/mailman/listinfo/dev
>     >     >
>     >
>     >     _______________________________________________
>     >     dev mailing list
>     >     dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     <mailto:dev at lists.scilab.org <mailto:dev at lists.scilab.org>>
>     >     http://lists.scilab.org/mailman/listinfo/dev
>     >
>     >
>     >
>     >
>     > --
>     > Filipe Saraiva
>     > http://filipesaraiva.info/
>     >
>     >
>     > _______________________________________________
>     > dev mailing list
>     > dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     > http://lists.scilab.org/mailman/listinfo/dev
>     >
> 
>     _______________________________________________
>     dev mailing list
>     dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>     http://lists.scilab.org/mailman/listinfo/dev
> 
> 
> 
> 
> -- 
> Filipe Saraiva
> http://filipesaraiva.info/
> 
> 
> _______________________________________________
> dev mailing list
> dev at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/dev
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Workaround-to-fix-the-build-failure-with-the-SuiteSp.patch
Type: text/x-patch
Size: 3030 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20130128/cd265125/attachment.bin>


More information about the dev mailing list