Skip to content

TCP Fast Open disabled -> 'TCP_USER_TIMEOUT' undeclared #372

Open

Description

@harryboo

Hi,
when i disable TCP Fast Open (-DENABLE_TCP_FAST_OPEN=OFF) then i get this error message:

[ 31%] Building C object CMakeFiles/getdns_objects.dir/src/sync.c.o
/home/x/freetz-ng/source/target-mips_gcc-13.4.0_uClibc-1.0.58-nptl_kernel-3.10/getdns-1.7.3/src/stub.c: In function 'getdns_sock_tcp_send_timeout':
/home/x/freetz-ng/source/target-mips_gcc-13.4.0_uClibc-1.0.58-nptl_kernel-3.10/getdns-1.7.3/src/stub.c:458:45: error: 'TCP_USER_TIMEOUT' undeclared (first use in this function)
458 | if (setsockopt(sockfd, IPPROTO_TCP, TCP_USER_TIMEOUT,
| ^~~~~~~~~~~~~~~~
/home/x/freetz-ng/source/target-mips_gcc-13.4.0_uClibc-1.0.58-nptl_kernel-3.10/getdns-1.7.3/src/stub.c:458:45: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [CMakeFiles/getdns_objects.dir/build.make:289: CMakeFiles/getdns_objects.dir/src/stub.c.o] Error 1

Thanx Jens

Activity

  1. feedzapper commented on Sep 13, 2026

    @feedzapper

    add this for Freetz in the "getdns.mk" /make/pkgs/getdns

    $(PKG)_CONFIGURE_OPTIONS += -DHAVE_DECL_TCP_FASTOPEN=0
    $(PKG)_CONFIGURE_OPTIONS += -DHAVE_DECL_TCP_FASTOPEN_CONNECT=0
    $(PKG)_CONFIGURE_OPTIONS += -DHAVE_DECL_MSG_FASTOPEN=0
    ``
    Works for me in the Fritzbox 7430 , 7490 , 7560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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