bneradt opened a new issue #8682:
URL: https://github.com/apache/trafficserver/issues/8682


   I updated our CI Fedora image to fedora:36. fedora:36 has gcc-12 as its 
default toolset. When I did a test build with this, the build failed with the 
following deprecation warning:
   
   ```
   ccache c++ -DHAVE_CONFIG_H -I. -I../../include  -Dlinux -DDEBUG -D_DEBUG 
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_REENTRANT 
-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 
-I/home/jenkins/workspace/Github_Builds/fedora/src/iocore/eventsystem 
-I/home/jenkins/workspace/Github_Builds/fedora/src/iocore/utils 
-I/home/jenkins/workspace/Github_Builds/fedora/src/mgmt 
-I/home/jenkins/workspace/Github_Builds/fedora/src/mgmt/api/include 
-I/home/jenkins/workspace/Github_Builds/fedora/src/mgmt/utils 
-I/home/jenkins/workspace/Github_Builds/fedora/src/include 
-I/home/jenkins/workspace/Github_Builds/fedora/src/lib  -D_GNU_SOURCE 
-DOPENSSL_NO_SSL_INTERN -std=c++17 -ggdb3 -pipe -Wall -Wextra 
-Wno-ignored-qualifiers -Wno-unused-parameter -Wno-format-truncation 
-Wno-cast-function-type -Wno-stringop-overflow -Werror -Wno-invalid-offsetof 
-Wno-noexcept-type -mcx16  -MT RecLocal.o -MD -MP -MF $depbase.Tpo -c -o 
RecLocal.o RecLocal.cc &&\
   mv -f $depbase.Tpo $depbase.Po
   In file included from ../../include/tscore/MemArena.h:32,
                    from ../records/I_RecHttp.h:32,
                    from RecHttp.cc:25:
   ../../include/tscore/IntrusivePtr.h:333:29: error: 'template<class _Arg1, 
class _Arg2, class _Result> struct std::binary_function' is deprecated 
[-Werror=deprecated-declarations]
     333 |   class Order : public std::binary_function<IntrusivePtr<T>, 
IntrusivePtr<T>, bool>
         |                             ^~~~~~~~~~~~~~~
   In file included from /usr/include/c++/12/functional:49,
                    from ../records/I_RecCore.h:26,
                    from RecHttp.cc:24:
   /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
     131 |     struct binary_function
         |            ^~~~~~~~~~~~~~~
   cc1plus: all warnings being treated as errors
   make[2]: *** [Makefile:1040: RecHttp.o] Error 1
   make[2]: *** Waiting for unfinished jobs....
   In file included from ../../include/tscore/MemArena.h:32,
                    from ../records/I_RecHttp.h:32,
                    from ../../mgmt/LocalManager.h:29,
                    from RecLocal.cc:32:
   ../../include/tscore/IntrusivePtr.h:333:29: error: 'template<class _Arg1, 
class _Arg2, class _Result> struct std::binary_function' is deprecated 
[-Werror=deprecated-declarations]
     333 |   class Order : public std::binary_function<IntrusivePtr<T>, 
IntrusivePtr<T>, bool>
         |                             ^~~~~~~~~~~~~~~
   In file included from /usr/include/c++/12/string:48,
                    from ../../include/tscore/ink_memory.h:30,
                    from ../../include/tscore/defalloc.h:25,
                    from ../../include/tscore/List.h:60,
                    from ../../mgmt/ConfigManager.h:27,
                    from RecLocal.cc:25:
   /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
     131 |     struct binary_function
         |            ^~~~~~~~~~~~~~~
   cc1plus: all warnings being treated as errors
   make[2]: *** [Makefile:1040: RecLocal.o] Error 1
   make[2]: Leaving directory 
'/home/jenkins/workspace/Github_Builds/fedora/src/lib/records'
   make[1]: *** [Makefile:603: all-recursive] Error 1
   make[1]: Leaving directory 
'/home/jenkins/workspace/Github_Builds/fedora/src/lib'
   make: *** [Makefile:874: all-recursive] Error 1
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to