can't compile octave on slackware current libinterp/dldfcn/__delaunayn__.la] Error 2
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can't compile octave on slackware current libinterp/dldfcn/__delaunayn__.la] Error 2
Hi,
I try to install octave 5.1.0 with sbopkg but gives me an error.
I already install blas and lapack with sbopkg.
i see related post to use "su -l" and the run sbopkg but i got this error
Code:
make all-recursive
make[1]: Entering directory '/tmp/SBo/octave-5.1.0'
preserving existing HG-ID file
Making all in libgnu
make[2]: Entering directory '/tmp/SBo/octave-5.1.0/libgnu'
make all-recursive
make[3]: Entering directory '/tmp/SBo/octave-5.1.0/libgnu'
make[4]: Entering directory '/tmp/SBo/octave-5.1.0/libgnu'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/tmp/SBo/octave-5.1.0/libgnu'
make[3]: Leaving directory '/tmp/SBo/octave-5.1.0/libgnu'
make[2]: Leaving directory '/tmp/SBo/octave-5.1.0/libgnu'
make[2]: Entering directory '/tmp/SBo/octave-5.1.0'
preserving existing HG-ID file
GEN liboctave/array/CMatrix.cc-tst
GEN liboctave/array/CSparse.cc-tst
GEN liboctave/array/dMatrix.cc-tst
GEN liboctave/array/dSparse.cc-tst
GEN liboctave/array/fCMatrix.cc-tst
GEN liboctave/array/fMatrix.cc-tst
GEN liboctave/array/idx-vector.cc-tst
GEN liboctave/util/oct-inttypes.cc-tst
GEN liboctave/array/Array.cc-tst
GEN liboctave/array/Sparse.cc-tst
CXX libinterp/dldfcn/__delaunayn___la-__delaunayn__.lo
rdclibtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Iliboctave -I./liboctave -I./liboctave/array -Iliboctave/numeric -I./liboctave/numeric -Iliboctave/operators -I./liboctave/operators -I./liboctave/system -I./liboctave/util -I./libinterp/octave-value -Ilibinterp -I./libinterp -I./libinterp/operators -Ilibinterp/parse-tree -I./libinterp/parse-tree -Ilibinterp/corefcn -I./libinterp/corefcn -I./liboctave/wrappers -I/usr/include/ImageMagick-6 -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -fPIC -c -o libinterp/dldfcn/__delaunayn___la-__delaunayn__.lo libinterp/dldfcn/__delaunayn__.cc
CXXLD libinterp/dldfcn/__delaunayn__.la
rdclibtool --silent --tag=CXX --mode=link g++ -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2 -fPIC -avoid-version -module -no-undefined -o libinterp/dldfcn/__delaunayn__.la -rpath /usr/lib64/octave/5.1.0 libinterp/dldfcn/__delaunayn___la-__delaunayn__.lo -lutil -lm
/usr/bin/ld: libinterp/dldfcn/.libs/__delaunayn___la-__delaunayn__.o: in function `F__delaunayn__(octave_value_list const&, int)':
__delaunayn__.cc:(.text+0x75): undefined reference to `err_disabled_feature(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: libinterp/dldfcn/.libs/__delaunayn___la-__delaunayn__.o: in function `G__delaunayn__':
__delaunayn__.cc:(.text+0xf6): undefined reference to `check_version(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: __delaunayn__.cc:(.text+0x167): undefined reference to `octave_dld_function::create(octave_value_list (*)(octave_value_list const&, int), octave::dynamic_library const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
rdclibtool: exec error upon slbt_exec_link_create_library(), line 1415: (see child process error messages).
rdclibtool: < returned to > slbt_exec_link(), line 1779.
make[2]: *** [Makefile:12059: libinterp/dldfcn/__delaunayn__.la] Error 2
make[2]: Leaving directory '/tmp/SBo/octave-5.1.0'
make[1]: *** [Makefile:27055: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/octave-5.1.0'
make: *** [Makefile:10875: all] Error 2
This compiled and installed fine for me, though it took some time. I don't know if this will work since I've never passed one on before, but here's a link to the binary compiled by sbopkg:
Because you are using GNU libtool and not slibtool, slibtool has a habit of exposing program bugs which libtool has been silently ignoring. Although it could also be an slibtool bug too (midipix should be able to tell)...
Unfortunately octave is also broken on current for other reasons.
Because you are using GNU libtool and not slibtool, slibtool has a habit of exposing program bugs which libtool has been silently ignoring. Although it could also be an slibtool bug too (midipix should be able to tell)...
Unfortunately octave is also broken on current for other reasons.
When i don't use slibtool the compilation interrupt much erlier, i have slibtool 0.5.28.
I tried with all the flag of slibtool [rdc] but the result it's the same.
So it's a octave problem?
I can confirm that octave and its dependencies (blas and lapack) build fine for me too on slackware64-current (also with 23 jobs), so it might be something specific to your installation.
I can confirm that octave and its dependencies (blas and lapack) build fine for me too on slackware64-current (also with 23 jobs), so it might be something specific to your installation.
blas and lapack build fine for me too, can you tell me what options and environment are you using to build octave?
I've tried on a clean and full installation of slackware64-current building only blas, lapack and octave, and also on another installation where I had installed also the following optional dependencies: hdf5, ftgl, jdk, portaudio and qt5.
in both cases the build went fine.
Does octave build for you with Qt4? It keeps erroring on Qt code here regardless if I use QT=4 or not. My Qt5 install might be too new for octave though.
Does octave build for you with Qt4? It keeps erroring on Qt code here regardless if I use QT=4 or not. My Qt5 install might be too new for octave though.
yes, it builds with qt5 (using the version -5.9.6- in the unofficial repo for current) and with qt4 (autoselected when qt5 is not installed).
I think I wasn't clear enough. Does it actually build with and link against Qt4 if you have both Qt4 and Qt5 installed while building with "QT=4 ./octave.SlackBuild" as mentioned in the README?
I tried again in a clean Slackware current chroot with only blas and lapack installed and now it has finally compiled. It also links against Qt4, but I am not sure if the QT=4 environment variable works?
Trying again with slibtool shows the same build failures, this is something that will need to be discussed with the slibtool developer, it may be either a slibtool or octave bug, possibly both.
+++++++++++++++++++++++++++++++++++++++++++
PRE-CHECK LOG
Using the SBo repository for Slackware 14.2
Queue Process: Download and build
octave:
Checking GPG for octave.tar.gz ... OK
Processing octave 5.1.0-1
Using original .info file
Using original SlackBuild file
Build options: QT="4"
+++++++++++++++++++++++++++++++++++++++++++
And I'm not really sure what to do about this or why I'm getting it.
Code:
CXX src/octave_gui-main-gui.o
CXX src/octave_gui-octave-build-info.o
CXX libgui/liboctgui_la-liboctgui-build-info.lo
CXX libgui/qterminal/libqterminal/unix/la-BlockArray.lo
CXX libgui/qterminal/libqterminal/unix/la-Emulation.lo
CXX libgui/qterminal/libqterminal/unix/la-Filter.lo
CXX libgui/qterminal/libqterminal/unix/la-History.lo
CXX libgui/qterminal/libqterminal/unix/la-KeyboardTranslator.lo
CXX libgui/qterminal/libqterminal/unix/la-konsole_wcwidth.lo
CXX libgui/qterminal/libqterminal/unix/la-kpty.lo
CXX libgui/qterminal/libqterminal/unix/la-QUnixTerminalImpl.lo
CXX libgui/qterminal/libqterminal/unix/la-Screen.lo
CXX libgui/qterminal/libqterminal/unix/la-ScreenWindow.lo
CXX libgui/qterminal/libqterminal/unix/la-TerminalCharacterDecoder.lo
CXX libgui/qterminal/libqterminal/unix/la-Vt102Emulation.lo
CXX libgui/qterminal/libqterminal/unix/la-SelfListener.lo
CXX libgui/qterminal/libqterminal/unix/la-TerminalModel.lo
CXX libgui/qterminal/libqterminal/unix/la-TerminalView.lo
CXX libgui/qterminal/libqterminal/la-QTerminal.lo
CXX libgui/qterminal/libqterminal/la-moc-QTerminal.lo
In file included from ./config.h:2750,
from /usr/include/cmdline.h:47,
from /usr/include/define.h:48,
from /usr/include/util.h:56,
from libgui/qterminal/libqterminal/unix/kpty.cpp:77:
./oct-conf-post.h:96:1: error: template with C linkage
template <typename T>
^~~~~~~~
In file included from libgui/qterminal/libqterminal/unix/kpty.cpp:77:
/usr/include/util.h:52:1: note: ‘extern "C"’ linkage started here
extern "C" {
^~~~~~~~~~
In file included from ./config.h:2750,
from /usr/include/cmdline.h:47,
from /usr/include/define.h:48,
from /usr/include/util.h:56,
from libgui/qterminal/libqterminal/unix/kpty.cpp:77:
./oct-conf-post.h:98:1: error: redefinition of ‘template<class T> void octave_unused_parameter(const T&)’
octave_unused_parameter (const T&)
^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./config.h:2750,
from libgui/qterminal/libqterminal/unix/kpty.cpp:26:
./oct-conf-post.h:98:1: note: ‘template<class T> void octave_unused_parameter(const T&)’ previously declared here
octave_unused_parameter (const T&)
^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:17546: libgui/qterminal/libqterminal/unix/la-kpty.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/SBo/octave-5.1.0'
make[1]: *** [Makefile:27055: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/octave-5.1.0'
make: *** [Makefile:10875: all] Error 2
I'm not sure how this differs from slacknedo's compilation issues without slibtool or not.
Ok, I tried to install octave without slibtool and i get
Code:
libtool: error: cannot find the library '/usr/lib64/libxcb.la' or unhandled argument '/usr/lib64/libxcb.la
If i install the package libxcb-1.11.1-x86_64-1.txz for slackware 14.2 on pkgs.org my window manager crash.
I also without slibtool pass the options QT="4" to sbopkg but the result it's the same.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.