ML symbols in petscksp.so

Barry Smith bsmith at mcs.anl.gov
Thu Oct 29 15:57:11 CDT 2009


On Oct 29, 2009, at 3:52 PM, Lisandro Dalcin wrote:

> On Thu, Oct 29, 2009 at 4:45 PM, Jed Brown <jed at 59a2.org> wrote:
>>
>> I realize that the real problem here was OpenCV's libml and the fact
>> that linkers don't resolve symbols by starting with the most recent  
>> -L
>> path [*], but we should at least remember that putting - 
>> L{PETSC_LIB_DIR}
>> at the beginning of the line can completely change the way symbols  
>> are
>> resolved.
>>
>
> I think that the real problem here is that developers should be
> smarter and they should not use such short names for a library... "ml"
> .. just two characters... What "ml" stand for? "mailing list"? the
> internet country code for Mali at Africa? "milliliter" ? "Markup
> Language", "ML" the programming language? Well... I'll stop here...
> :-)
>
> IMHO, I think that what Jed suggested in previous mail about using
> -Wl,-whole-archive ${PETSC_EXTERNAL_LIB} -Wl,-no-whole-archive when
> --with-shared is in action could be a VERY good idea... Then PETSc
> link lines will not need to refer at all to these static libs from
> external packages...

    Agreed.

    Barry


>
>
>
>
> -- 
> Lisandro Dalcín
> ---------------
> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
> Tel/Fax: +54-(0)342-451.1594




More information about the petsc-dev mailing list