[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of out
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values. |
Date: |
Sun, 4 Dec 2022 19:49:10 -0500 (EST) |
Follow-up Comment #11, bug #63462 (project octave):
I believe the PCRE linkage question is a red herring. The code for scanf
relies on Octave hand-rolled code as well as the C/C++ standard library, but
not on regular expressions. However, the linkage question should be
investigated and probably deserves its own bug report.
Also, the decimal format "%d" uses a different code path than the code for
floating point values ("%f", "%g") so this, unfortunately, doesn't help narrow
things down.
The system seems to be fairly generic Linux, X86_64 and 5.4 kernel. The gcc
is version 9.4.0 while mine 11.2. Maybe there is a bug reported against
libstdc++ for this version?
This could be hard to debug.
I notice from the config.log that you are setting some compilation flags to
point to "/usr/local/XXX" versions.
$ ../octave/configure --prefix=/opt/octave-default LDFLAGS=-L/usr/local/lib
-Wl,-rpath=/usr/local/lib CPPFLAGS=-I/usr/local/include
--with-umfpack-includedir=/usr/local/include
--with-umfpack-libdir=/usr/local/lib
This shouldn't be a problem, but I don't do that for my compilation so that is
one difference. Is it possible that you are picking up some different
versions of libraries in /usr/local/lib?
Another thing is that my ldd output is much smaller. My output is
ldd src/.libs/octave-gui
linux-vdso.so.1 (0x00007ffebadfd000)
liboctgui.so.8 => not found
liboctinterp.so.10 => not found
liboctave.so.9 => not found
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f39887f1000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x00007f39887d1000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f39885a7000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f39884c0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3988a43000)
By contrast, your setup seems to be picking up some installed libraries
liboctgui.so.8 => /opt/octave-default/lib/octave/9.0.0/liboctgui.so.8
(0x00007f238063e000)
liboctinterp.so.10 =>
/opt/octave-default/lib/octave/9.0.0/liboctinterp.so.10 (0x00007f237f1b8000)
liboctave.so.9 => /opt/octave-default/lib/octave/9.0.0/liboctave.so.9
(0x00007f237dffa000)
Grasping at straws here, but maybe you need to do "make install" to replace
existing versions of Octave libraries on the hard drive which still have the
bug in them.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63462>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., (continued)
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Dmitri A. Sergatskov, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Dmitri A. Sergatskov, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Dmitri A. Sergatskov, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Dmitri A. Sergatskov, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Dmitri A. Sergatskov, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values.,
Rik <=
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Dmitri A. Sergatskov, 2022/12/04
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/05
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Dmitri A. Sergatskov, 2022/12/05
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Rik, 2022/12/06
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/08
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/08
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., Rik, 2022/12/08
- [Octave-bug-tracker] [bug #63462] sscanf reports incorrect number of output values., anonymous, 2022/12/09