Bug ID 1207989
Summary liblapacke.so.3 has unresolved references
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Development
Assignee screening-team-bugs@suse.de
Reporter rguenther@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

This was created to carry the info from the closed
https://bugzilla.suse.com/show_bug.cgi?id=1087426

--

There undefined references in shared object file for the lapack library.

Simple test program to reproduce

#include <stdio.h>
#include "lapacke.h"

int main()
{
        printf("Hello world!\n");

        int* pi = NULL;
        double* pd = NULL;

        LAPACKE_dgesv(0, 1, 1, pd, 1, pi, pd, 1);

        return 0;
}

When trying to compile dynamically linked it give following error:

s12-sp2-sss:~ # gcc -o test test.c -llapack -llapacke 
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `clagge_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `clatms_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `dlagsy_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `slatms_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `zlatms_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `slagsy_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `dlagge_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `clagsy_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `claghe_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `zlagsy_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `slagge_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `zlagge_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `dlatms_'
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/liblapacke.so: undefined
reference to `zlaghe_'
collect2: error: ld returned 1 exit status

When lapacke is linked static it does work


You are receiving this mail because: