[Xapian-tickets] [Xapian] #821: SOCKLEN_T not defined when compiling with mingw32.

Xapian nobody at xapian.org
Mon Jun 26 02:06:00 BST 2023


#821: SOCKLEN_T not defined when compiling with mingw32.
--------------------------+-------------------------------
 Reporter:  mgautier      |             Owner:  Olly Betts
     Type:  defect        |            Status:  closed
 Priority:  normal        |         Milestone:  1.4.23
Component:  Build system  |           Version:  1.4.22
 Severity:  normal        |        Resolution:  fixed
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  Linux
--------------------------+-------------------------------
Changes (by Olly Betts):

 * status:  assigned => closed
 * resolution:   => fixed

Comment:

 Your `SOCKLEN_T` problem is triggered by using `--disable-backend-remote`
 - some support code in `common/socket_utils.cc` is still built, but fails
 because the configure probe for `SOCKLEN_T` hasn't been run so `SOCKLEN_T`
 isn't defined.  This only manifests under WIN32 as the wrapper function in
 `safesyssocket.h` which uses `SOCKLEN_T` is only used there.

 I've pushed a fix as 71ba7b1853431a9e39ad63d9389057594441f6f4 and backport
 to RELEASE/1.4 as fbddad92dfb824ac067d43360736ece14ae2b50d.

 I've also fixed the `std::byte` issue in
 da6a15d00802ab54981ca376868b74af255f5dd9 (this doesn't affect git master
 as we already eliminated all `using namespace std;` in headers there).
-- 
Ticket URL: <https://trac.xapian.org/ticket/821#comment:11>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list