Sujet : Re: Can't build TclTLS 2.0b1
De : brian199 (at) *nospam* comcast.net (Brian)
Groupes : comp.lang.tclDate : 09. Jul 2025, 02:36:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <104kh2e$3rlhc$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
On 7/8/25 12:08 PM, Ralf Fassel wrote:
* Ashok <apnmbx-public@yahoo.com>
| So I'm guessing that /usr/include is already in the default system
| include search path and therefore gets ignored when specified as the
| -I
| option. Additionally, /usr/local/include appears before /usr/include
| in the default search path. That might explain what you are seeing.
https://stackoverflow.com/questions/4980819/what-are-the-gcc-default-include-directories
suggests to use
echo | gcc -xc -E -v -
to see the defaults plus any effect of environment variables like CPATH
% echo | gcc -xc -E -v -
[...]
#include "..." search starts here:
#include <...> search starts here:
/usr/lib64/gcc/x86_64-suse-linux/7/include
/usr/local/include
/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include
/usr/include
End of search list.
So indeed /usr/local/include is listed *before* /usr/include.
One could use -isystem/usr/include to change that order:
% echo | gcc -isystem/usr/include -xc -E -v -
[...]
#include "..." search starts here:
#include <...> search starts here:
/usr/include
/usr/lib64/gcc/x86_64-suse-linux/7/include
/usr/local/include
/usr/lib64/gcc/x86_64-suse-linux/7/include-fixed
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/include
End of search list.
HTH
R'
Another option is to remove the standard include paths. So use the "-nostdinc" option and add back the "-I/usr/include" path too via the CFLAGS env var.
See
https://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art026The last option is just delete that old version of OpenSSL.