Menu

#1563 Failed to configure Codeblocks (and to build) against boost-1.89.0

Undefined
pending
None
Bug_Report
9 hours ago
7 days ago
No

The Codeblocks-25.03 and r13749 failed to configure with system boost-1.89.0 due to it have no boost_system library and can't be linked it anymore [1].

When trying to configure to build codeblocks with contrib-plugins=all (i.e. with NassiShneiderman plugin enabled) then the checking of boost_system library is done within m4/ax_boost_system.m4 and as boost_system is absent in boost-1.89.0 the configuration error appears:

...
checking for boostlib >=  (102000)... yes
checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the library!

(see e.g. Gentoo issue [2] attached file "dev-util:codeblocks-25.03-r1:20251014-135640.log")

The configuration string that was used (e.g. for Gentoo dev-util/codeblocks-9999.ebuild, i.e. for codeblocks r13749 at the moment of issue report):

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --disable-static --docdir=/usr/share/doc/codeblocks-9999 --htmldir=/usr/share/doc/codeblocks-9999/html --with-sysroot=/ --libdir=/usr/lib64 --disable-pch --disable-static --disable-debug --with-boost-libdir=/usr/lib64 --with-contrib-plugins=all

[1] https://github.com/boostorg/system/commit/7a495bb46d7ccd808e4be2a6589260839b0fd3a3
[2] https://bugs.gentoo.org/964320

Discussion

  • band-a-prend

    band-a-prend - 6 days ago

    Apart from everything else is NassiShneiderman plugin required to be linked against boost and especially against boost_system library? Does it require headers only?

    The boost_system was added in https://sourceforge.net/p/codeblocks/code/11186/ and https://sourceforge.net/p/codeblocks/code/11227/ to fix Gentoo build against boost-1.65 and some later.

     

    Last edit: band-a-prend 6 days ago
  • Miguel Gimenez

    Miguel Gimenez - 5 days ago

    Looks like boost_syetem is now integrated in C++11, it should not be difficult getting rid of it in the plugin.

     

    Last edit: Miguel Gimenez 5 days ago
    • band-a-prend

      band-a-prend - 4 days ago

      I see in NassiShneiderman plugin sources the boost mention only in CParcer.cpp

      #include <boost/spirit/include/classic.hpp>
      #include <boost/spirit/include/classic_core.hpp>
      #include <boost/spirit/include/classic_symbols.hpp>
      #include <boost/spirit/include/classic_confix.hpp>
      using namespace boost::spirit::classic;
      

      and in parserules.h

      #include <boost/spirit/core.hpp>
      #include <boost/spirit/symbols/symbols.hpp>
      #include <boost/spirit/utility/chset.hpp>
      #include <boost/spirit/utility/escape_char.hpp>
      #include <boost/spirit/utility/confix.hpp>
      using namespace boost::spirit;
      

      And it seems that boost::spirit is header only library.

       
  • Miguel Gimenez

    Boost_system library removed from the Linux projects in [r13751].

    Autotools part will come later (help with autotools is welcome).

     

    Related

    Commit: [r13751]

  • Miguel Gimenez

    Autotools should be fixed in [r13752], can you check it?

    Thank you.

     

    Related

    Commit: [r13752]

    • band-a-prend

      band-a-prend - 23 hours ago

      Thanks! At r13752 Codeblocks with NassiShneiderman plugin is successsfully compiled with boost-1.89. 0.

      Maybe an additional NassiShneiderman autotools cleanup will be useful (see attached patch). Please note that m4/ax_boost_system.m4 is removed here too!

       

      Last edit: band-a-prend 23 hours ago
  • Miguel Gimenez

    Miguel Gimenez - 9 hours ago
    --- a/trunk/src/plugins/contrib/NassiShneiderman/Makefile.am
    +++ b/trunk/src/plugins/contrib/NassiShneiderman/Makefile.am
    @@ -1,8 +1,6 @@
     AM_CPPFLAGS = $(WX_CXXFLAGS) \
            -I$(top_srcdir)/src/include \
    -       -I$(top_srcdir)/src/sdk/wxscintilla/include \
    -       $(BOOST_CPPFLAGS) \
    -       -DBOOST_SYSTEM_NO_DEPRECATED
    +       -I$(top_srcdir)/src/sdk/wxscintilla/include
    
     pluginlibdir = $(pkglibdir)/plugins
    

    This line may be required by boost:spirit

    • $(BOOST_CPPFLAGS) \

    I will delete the other stuff if nobody complaints in a reasonable time frame.

     
  • Miguel Gimenez

    Miguel Gimenez - 9 hours ago
    • status: open --> pending
    • assigned_to: Miguel Gimenez
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.