Skip to content

Root v6.24/06 using XrdSysDNS: Failure to compile using g++ 10.3.1 #9173

@ghost

Description

.../root_build/XROOTD-prefix/src/XROOTD/src/XrdSys/XrdSysDNS.cc: In 
static member function 'static char* XrdSysDNS::Peername(int, sockaddr*, char**)
':                                                                              
.../root_build/XROOTD-prefix/src/XROOTD/src/XrdSys/XrdSysDNS.cc:704:50: error: invalid conversion from 'int*' to 'socklen_t*' {aka 'unsigned int*'} [-fpermissive]
  704 |    if (getpeername(snum, (struct sockaddr *)sap, &addrlen) < 0)
      |                                                  ^~~~~~~~
      |                                                  |
      |                                                  int*

XrdSysDNS was deprecated in xrootd. Perhaps either add cast to socklen_t* on the third parameter or update to xrootd 5.3.2?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions