[Bug 293287] editors/libreoffice build failed

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Feb 2026 22:50:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293287

--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=5bec657b0a11810fb96873574221911030f59867

commit 5bec657b0a11810fb96873574221911030f59867
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2026-02-25 22:36:04 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2026-02-25 22:45:39 +0000

    editors/libreoffice: unbreak build in some conditions

    While netinet/ip.h always include netinet/in.h, LibreOffice must use only
second one and in some environment fails to build with next error:

   
/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-26.2.0.3/sal/osl/unx/socket.cxx:169:5:
    error: use of undeclared identifier 'IPPROTO_TCP'
      169 |     IPPROTO_TCP,                /* osl_Socket_LevelTcp     */
          |     ^
   
/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-26.2.0.3/sal/osl/unx/socket.cxx:324:18:
    error: member access into incomplete type 'struct sockaddr_in'
      324 |         pInetAddr->sin_family =
    FAMILY_TO_NATIVE(osl_Socket_FamilyInet);
          |                  ^
   
/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-26.2.0.3/sal/osl/unx/socket.cxx:322:16:
    note: forward declaration of 'sockaddr_in'
      322 |         struct sockaddr_in* pInetAddr=
    reinterpret_cast<sockaddr_in*>(&pAddr->m_sockaddr);
          |                ^

    PR:             293287

 editors/libreoffice/files/patch-sal_osl_unx_socket.cxx (new) | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.