LINUX.ORG.RU

История изменений

Исправление saufesma, (текущая версия) :

pkg-config --libs lapack
-llapack

pkg-config --print-requires --print-requires-private lapack
blas
pkg-config --libs $(pkg-config --print-requires --print-requires-private lapack)
-lblas
CFLAGS = -w -O3 -L $(MY_LIB) -I $(MY_INCLUDE) -DARCH="Linux" -DMATRIXSTORAGE -lm -lc -lpthread -ldl -llapack -lblas

результат тот же

Makefile

# ARPACK
LIBS += /usr/local/lib/libarpack.so == с такой строкой
CFLAGS += -DARPACK


sudo make -f ccx_Makefile > temp.txt
/usr/bin/ld: ccx_2.11.a(dgesv.o): undefined reference to symbol 'xerbla_'
//usr/lib/x86_64-linux-gnu/liblapack.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1
Makefile
# ARPACK
LIBS += $(MY_LIB)/x86_64-linux-gnu/lapack/liblapack.so = поменял
CFLAGS += -DARPACK

sudo make -f ccx_Makefile > temp.txt
ccx_2.11.a(arpack.o): In function `arpack':
arpack.c:(.text+0x1a92): undefined reference to `dsaupd_'
arpack.c:(.text+0x1cd4): undefined reference to `dsaupd_'
arpack.c:(.text+0x2948): undefined reference to `dnaupd_'
arpack.c:(.text+0x2aec): undefined reference to `dseupd_'
arpack.c:(.text+0x465a): undefined reference to `dneupd_'
arpack.c:(.text+0x4940): undefined reference to `dnaupd_'
ccx_2.11.a(arpackbu.o): In function `arpackbu':
arpackbu.c:(.text+0x21c1): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x22b7): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x2b22): undefined reference to `dseupd_'
ccx_2.11.a(arpackcs.o): In function `arpackcs':
arpackcs.c:(.text+0x1f4c): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x20a3): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x22eb): undefined reference to `dnaupd_'
arpackcs.c:(.text+0x2cdb): undefined reference to `dseupd_'
arpackcs.c:(.text+0xf5b4): undefined reference to `dneupd_'
arpackcs.c:(.text+0xf9f0): undefined reference to `dnaupd_'
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1

и вот ещё

pkg-config --libs arpack
-L/usr/local/lib -larpack
добавил такую строку -L/usr/local/lib -larpack
CFLAGS = -w -O3 -L $(MY_LIB) -I $(MY_INCLUDE) -DARCH="Linux" -DMATRIXSTORAGE -lm -lc -lpthread -ldl -llapack -lblas -L/usr/local/lib -larpack

выхлоп тот же

sudo make -f ccx_Makefile > temp.txt
/usr/bin/ld: ccx_2.11.a(dgesv.o): undefined reference to symbol 'xerbla_'
//usr/lib/x86_64-linux-gnu/liblapack.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1

Исправление saufesma, :

pkg-config --libs lapack
-llapack

pkg-config --print-requires --print-requires-private lapack
blas
pkg-config --libs $(pkg-config --print-requires --print-requires-private lapack)
-lblas
CFLAGS = -w -O3 -L $(MY_LIB) -I $(MY_INCLUDE) -DARCH="Linux" -DMATRIXSTORAGE -lm -lc -lpthread -ldl -llapack -lblas

результат тот же

Makefile

# ARPACK
LIBS += /usr/local/lib/libarpack.so == с такой строкой
CFLAGS += -DARPACK


sudo make -f ccx_Makefile > temp.txt
/usr/bin/ld: ccx_2.11.a(dgesv.o): undefined reference to symbol 'xerbla_'
//usr/lib/x86_64-linux-gnu/liblapack.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1
Makefile
# ARPACK
LIBS += $(MY_LIB)/x86_64-linux-gnu/lapack/liblapack.so = поменял
CFLAGS += -DARPACK

sudo make -f ccx_Makefile > temp.txt
ccx_2.11.a(arpack.o): In function `arpack':
arpack.c:(.text+0x1a92): undefined reference to `dsaupd_'
arpack.c:(.text+0x1cd4): undefined reference to `dsaupd_'
arpack.c:(.text+0x2948): undefined reference to `dnaupd_'
arpack.c:(.text+0x2aec): undefined reference to `dseupd_'
arpack.c:(.text+0x465a): undefined reference to `dneupd_'
arpack.c:(.text+0x4940): undefined reference to `dnaupd_'
ccx_2.11.a(arpackbu.o): In function `arpackbu':
arpackbu.c:(.text+0x21c1): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x22b7): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x2b22): undefined reference to `dseupd_'
ccx_2.11.a(arpackcs.o): In function `arpackcs':
arpackcs.c:(.text+0x1f4c): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x20a3): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x22eb): undefined reference to `dnaupd_'
arpackcs.c:(.text+0x2cdb): undefined reference to `dseupd_'
arpackcs.c:(.text+0xf5b4): undefined reference to `dneupd_'
arpackcs.c:(.text+0xf9f0): undefined reference to `dnaupd_'
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1

и вот ещё

pkg-config --libs arpack
-L/usr/local/lib -larpack

Исправление saufesma, :

pkg-config --libs lapack
-llapack

pkg-config --print-requires --print-requires-private lapack
blas
pkg-config --libs $(pkg-config --print-requires --print-requires-private lapack)
-lblas
CFLAGS = -w -O3 -L $(MY_LIB) -I $(MY_INCLUDE) -DARCH="Linux" -DMATRIXSTORAGE -lm -lc -lpthread -ldl -llapack -lblas

результат тот же

Makefile

# ARPACK
LIBS += /usr/local/lib/libarpack.so == с такой строкой
CFLAGS += -DARPACK


sudo make -f ccx_Makefile > temp.txt
/usr/bin/ld: ccx_2.11.a(dgesv.o): undefined reference to symbol 'xerbla_'
//usr/lib/x86_64-linux-gnu/liblapack.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1
Makefile
# ARPACK
LIBS += $(MY_LIB)/x86_64-linux-gnu/lapack/liblapack.so = поменял
CFLAGS += -DARPACK

sudo make -f ccx_Makefile > temp.txt
ccx_2.11.a(arpack.o): In function `arpack':
arpack.c:(.text+0x1a92): undefined reference to `dsaupd_'
arpack.c:(.text+0x1cd4): undefined reference to `dsaupd_'
arpack.c:(.text+0x2948): undefined reference to `dnaupd_'
arpack.c:(.text+0x2aec): undefined reference to `dseupd_'
arpack.c:(.text+0x465a): undefined reference to `dneupd_'
arpack.c:(.text+0x4940): undefined reference to `dnaupd_'
ccx_2.11.a(arpackbu.o): In function `arpackbu':
arpackbu.c:(.text+0x21c1): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x22b7): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x2b22): undefined reference to `dseupd_'
ccx_2.11.a(arpackcs.o): In function `arpackcs':
arpackcs.c:(.text+0x1f4c): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x20a3): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x22eb): undefined reference to `dnaupd_'
arpackcs.c:(.text+0x2cdb): undefined reference to `dseupd_'
arpackcs.c:(.text+0xf5b4): undefined reference to `dneupd_'
arpackcs.c:(.text+0xf9f0): undefined reference to `dnaupd_'
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1

и вот ещё

pkg-config arpack

Исправление saufesma, :

pkg-config --libs lapack
-llapack

pkg-config --print-requires --print-requires-private lapack
blas
pkg-config --libs $(pkg-config --print-requires --print-requires-private lapack)
-lblas
CFLAGS = -w -O3 -L $(MY_LIB) -I $(MY_INCLUDE) -DARCH="Linux" -DMATRIXSTORAGE -lm -lc -lpthread -ldl -llapack -lblas

результат тот же

Makefile

# ARPACK
LIBS += /usr/local/lib/libarpack.so == с такой строкой
CFLAGS += -DARPACK


sudo make -f ccx_Makefile > temp.txt
/usr/bin/ld: ccx_2.11.a(dgesv.o): undefined reference to symbol 'xerbla_'
//usr/lib/x86_64-linux-gnu/liblapack.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1
Makefile
# ARPACK
LIBS += $(MY_LIB)/x86_64-linux-gnu/lapack/liblapack.so = поменял
CFLAGS += -DARPACK

sudo make -f ccx_Makefile > temp.txt
ccx_2.11.a(arpack.o): In function `arpack':
arpack.c:(.text+0x1a92): undefined reference to `dsaupd_'
arpack.c:(.text+0x1cd4): undefined reference to `dsaupd_'
arpack.c:(.text+0x2948): undefined reference to `dnaupd_'
arpack.c:(.text+0x2aec): undefined reference to `dseupd_'
arpack.c:(.text+0x465a): undefined reference to `dneupd_'
arpack.c:(.text+0x4940): undefined reference to `dnaupd_'
ccx_2.11.a(arpackbu.o): In function `arpackbu':
arpackbu.c:(.text+0x21c1): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x22b7): undefined reference to `dsaupd_'
arpackbu.c:(.text+0x2b22): undefined reference to `dseupd_'
ccx_2.11.a(arpackcs.o): In function `arpackcs':
arpackcs.c:(.text+0x1f4c): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x20a3): undefined reference to `dsaupd_'
arpackcs.c:(.text+0x22eb): undefined reference to `dnaupd_'
arpackcs.c:(.text+0x2cdb): undefined reference to `dseupd_'
arpackcs.c:(.text+0xf5b4): undefined reference to `dneupd_'
arpackcs.c:(.text+0xf9f0): undefined reference to `dnaupd_'
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1

Исходная версия saufesma, :

pkg-config --libs lapack
-llapack

pkg-config --print-requires --print-requires-private lapack
blas
pkg-config --libs $(pkg-config --print-requires --print-requires-private lapack)
-lblas
CFLAGS = -w -O3 -L $(MY_LIB) -I $(MY_INCLUDE) -DARCH="Linux" -DMATRIXSTORAGE -lm -lc -lpthread -ldl -llapack -lblas

результат тот же

sudo make -f ccx_Makefile > temp.txt
/usr/bin/ld: ccx_2.11.a(dgesv.o): undefined reference to symbol 'xerbla_'
//usr/lib/x86_64-linux-gnu/liblapack.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ccx_2.11] Error 1