Hi, On Sun, Nov 06, 2022 at 05:31:12PM +0100, R. Diez wrote: > CFLAGS="-g -O0" > > to the "make" command, in order to disable optimisations that make debugging > difficult.
I think instead you should be doing CFLAGS="-g -O0" ./configure instead, I just tried and it works as expected. > there is the following command: > > scan-build make CFLAGS="-std=gnu99 -I. -I../../jimtcl" > > And you wouldn't normally add such '-I' flags if there wasn't such an issue. I do not remember all the details but IIRC it was something about how scan-build interacts with autoconf-based projects and how configure uses CC variable to embed some essential additional flags, and CC is exactly what scan-build overrides. HTH -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com