Closed Adityashaw closed 2 weeks ago
That seems to be an environmental problem where the system's include path got modified.
I can't know for sure how it happened on your system, but doing the following should resolve it:
export CPLUS_INCLUDE_PATH=/usr/include/c++/14.1.1:$CPLUS_INCLUDE_PATH
It simply adds your c++ include folder in the environment path. See this stackoverflow response for additional info.
I tested this build on a few vanilla distro, but I could test more if you want to share what you are using.
I can't know for sure how it happened on your system, but doing the following should resolve it:
export CPLUS_INCLUDE_PATH=/usr/include/c++/14.1.1:$CPLUS_INCLUDE_PATH
I tried that but that didn't help. Same error.
I tested this build on a few vanilla distro, but I could test more if you want to share what you are using.
uname -a
Linux hp 6.9.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000 x86_64 GNU/Linux
It's arch linux. Let me know if you need any other details for debugging.
I actually never tried Archlinux, but I was able to reproduce the same issue on a fresh install.
The problem is related to the fact that I inject a CPLUS_INCLUDE_PATH variable to build gsoap with a custom openssl or zlib path. It seems that either gcc14 or archlinux doesn't like having "/usr/include" added to "CPLUS_INCLUDE_PATH", which breaks "include_next".
I modified 'autogen.sh' to handle include path slightly better to workaround this issue. Pull the latest change and give it another go.
Thanks for this feedback!
Thanks for explaining the issue and fixing it up so fast!
Build succeeds now.
I'm glad that you figured all the package necessary! I should be able to update the documentation to include archlinux and add a rpm package.
Cheers!
Any leads on how to debug this error? log file attached.
g++ works fine. I wrote sample porgrams importing
stdlib.h
. They are working fine.log.txt