Update of bug #68762 (group groff):

                Category:                 General => Formatter
                  Status:                    None => Fixed
             Assigned to:                    None => gbranden
             Open/Closed:                    Open => Closed
         Planned Release:                    None => 1.25.0
                 Summary: groff 1.24.2 fails to build with libcxx-23:
src/roff/troff/env.cpp:265:3: error: use of undeclared identifier 'qsort' =>
[troff] 1.24.2 build failure with libcxx-23: use of undeclared identifier
'qsort'

    _______________________________________________________

Follow-up Comment #2:

Thanks for the report.  I fixed this problem back in April on _groff_'s
"master" branch.


commit fcdd1a18093e64d02005865f3465dc4f7bbe642b
Author:     G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 10 02:49:08 2026 -0500
Commit:     G. Branden Robinson <[email protected]>
CommitDate: Fri Apr 10 04:41:42 2026 -0500

    src/roff/troff/env.cpp: Rationalize `#include`s.
    
    * src/roff/troff/env.cpp: Rationalize header file inclusions, adding
      "<stdlib.h>" and "<string.h>".

diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index a5ec92da9..23059e624 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -27,6 +27,9 @@ along with this program.  If not, see
<http://www.gnu.org/licenses/>. */
 #include <limits.h> // UCHAR_MAX
 #include <math.h> // ceil(), fabs()
 #include <stdio.h> // prerequisite of mtsm.h, searchpath.h
+#include <stdlib.h> // strtol()
+#include <string.h> // strchr(), strcpy(), strerror(), strncmp(),
+                   // strstr()
 
 #include <stack> // prerequisite of mtsm.h
 #include <vector>



However, I overlooked this file's later use of _qsort_(3) in the comment.
I'll fix that for _groff_ 1.25.0.rc3.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68762>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to