Re: [Boost-bugs] [Boost C++ Libraries] #4008: Segfault in program_options::parse_command_line when compiled with -fshort-enums

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4008: Segfault in program_options::parse_command_line when compiled with -fshort-enums
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-18 19:08:01


#4008: Segfault in program_options::parse_command_line when compiled with -fshort-
enums
----------------------------------------------------------+-----------------
 Reporter: Severin Kacianka <severin@…> | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: program_options
  Version: Boost 1.42.0 | Severity: Showstopper
 Keywords: |
----------------------------------------------------------+-----------------

Comment(by Severin Kacianka <severin@…>):

 sorry for my late reply, but i was very busy this week.

 I think you are right. However how do I compile boost with -fshort-enums
 or check that it compiled with it? Here is what a tried:
 {{{
 $ bjam cxxflags=-fshort-enums --prefix=/home/severin/software/boost_test
 install
 ... boost compiles ....
 $ g++ -L/home/severin/software/boost_test/lib/
 -Wl,-R/home/severin/software/boost_test/lib/
 -I/home/severin/software/boost_test/include/ test.cpp
 -lboost_program_options -fshort-enums
 $ ldd a.out
         linux-gate.so.1 => (0xffffe000)
         libboost_program_options.so.1.42.0 =>
 /home/severin/software/boost_test/lib/libboost_program_options.so.1.42.0
 (0xb7fbc000)
 (... other libs ...)
 $ ./a.out
 Segmentation fault
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4008#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC