From nobody Sun Dec 1 14:09:40 2024 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y1TLx2fvPz5fgnJ for ; Sun, 01 Dec 2024 14:09:45 +0000 (UTC) (envelope-from mike.jakubik@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y1TLv39n8z4jbY; Sun, 1 Dec 2024 14:09:43 +0000 (UTC) (envelope-from mike.jakubik@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Kx3oFudj; spf=pass (mx1.freebsd.org: domain of mike.jakubik@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=mike.jakubik@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-7b67a94ae87so203796485a.1; Sun, 01 Dec 2024 06:09:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733062182; x=1733666982; darn=freebsd.org; h=in-reply-to:content-language:references:cc:to:from:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=fgA83s5ztCAKc9qGw/AfPCPvbAJl0L5zCnGvpZR0Lt4=; b=Kx3oFudjiiymrDRfEeP6wAU7DnhgP1gityUGTF9mOq+W8FoDjFzahCFffHygREQVL5 to/fnBE2TAHoH9OROpRy4OUbP9GQ+zqsj0NitMelQ4lARTPY20QA4HjLUPY5BspVXiKt 1IB1iDpsTTQ4kDyzNexmTqQxycuFhub7HlFOYEncJppFft5/YC5ob5KVZNfXilblQEJL Ksi67KL6dx1MqqlgWRK/oHLRTvba64B0ZYkLqP+XH7T17PV8PWJS2Q7r5v/jPgV5IOqr 5pdB+2qWRchamI4IL9zLFRKE2GZwdMZ0Ljsk/LBHkgsr0zKhm7ksWvqf3boupmdzeN6x 8zRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733062182; x=1733666982; h=in-reply-to:content-language:references:cc:to:from:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=fgA83s5ztCAKc9qGw/AfPCPvbAJl0L5zCnGvpZR0Lt4=; b=i9+qjYeWEMs8wcERlgKW2CsSS6uBWAV9faT5FHAwsfR7A0lO7Hoz9E9EFzYLNhS4ad A3BEG241irS1GDyLLYVsVnVwhOcBoNas3OdpscIBOZFCMN/HF9x5tTn7YMqYr9oLT82O GfT8MBduPTfPgOkITLOZkFsWLqNgA9kttTp9wg8dUKsHQiyiBJkG90U8BJW6LWigcmoB uhToHGATop1BzJ7AIrSTjj6eZC5pqDGkhGp/ZaOBXDD33H0RSJLvzAAv7tV8cJ33pHBP hSGPXy67pAUcA9NVcB3PEV4sRZ2CmCAS37yMqTklGKgWVi21d2IlwSAFL6LlmmqD2T3q bT7w== X-Forwarded-Encrypted: i=1; AJvYcCWVM6EOzH60q/KP/cybkDcdyBoighCiE9qYUcZepAmc1UHYrDbp/Rn8l893kBzNhTKxsLs=@freebsd.org X-Gm-Message-State: AOJu0YyJ9vY0mu69pQXuYpcwndhDpVzcniBDvYL3K0AmXOTEnVAsamoB YT4rBFn/7H7rP2WbX5Vuqw+WkImTpoZwFPI4p1o7WuFJkENaO7BUq8vgzw== X-Gm-Gg: ASbGncuwvSBJ3BDXKUhm170Ld9uoGY1watuynCKh5/Ukhe2R9sbt8uytVrxXyGGVUd9 f4tDqt0lqLL+WZf7Q79KQ0EymbYOknzADY8moxYjNbAMBMXIqhriDchG03lWIC7zjksoleWM338 ZZe6PYXW+xuXtffNk72KCqYraiNL4geoDY7CfYQJDzZ8rRRDIp4gyjsurRg32YslQP2kiKmaAyJ YpLj+0B8ds+rUpPn1zg9tBXXi6WtA1YWKfi7X+HfgU0Q3esByJuCnYupienQKo8z7rqtlfZtihG po94qVCsMcIWL/rK4KvxSCrMEK/LoiSpnw== X-Google-Smtp-Source: AGHT+IHKP8VFzJmMoR940U/X4PoC3aHTlmcIYIJDG8OK5TI9poFY7XXLD5YXqXQrerdcIaZthFw/tw== X-Received: by 2002:a05:620a:2486:b0:7b6:604c:f333 with SMTP id af79cd13be357-7b67c2cec35mr2413735485a.29.1733062181961; Sun, 01 Dec 2024 06:09:41 -0800 (PST) Received: from [192.168.100.177] (pool-99-233-217-110.cpe.net.cable.rogers.com. [99.233.217.110]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b684946e83sm314173985a.62.2024.12.01.06.09.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Dec 2024 06:09:41 -0800 (PST) Content-Type: multipart/alternative; boundary="------------iGOGSDTxSzIxrQjSNNgnmJ50" Message-ID: Date: Sun, 1 Dec 2024 09:09:40 -0500 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: FreeBSD Port: net/realtek-re-kmod From: Mike Jakubik To: Ronald Klop Cc: freebsd-net@freebsd.org, ale@FreeBSD.org References: <1944158676.16135.1733047112928@localhost> Content-Language: en-US In-Reply-To: X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::732:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4Y1TLv39n8z4jbY X-Spamd-Bar: --- This is a multi-part message in MIME format. --------------iGOGSDTxSzIxrQjSNNgnmJ50 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Indeed, compiles cleanly and works fine on this system. Thank you sir! FreeBSD fbsd15.localdomain 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-e8d027be6: Fri Nov 29 20:19:55 EST 2024 mike@fbsd15.localdomain:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 [root@fbsd15 /usr/ports/net/realtek-re-kmod]# make ===>  License BSD4CLAUSE accepted by the user ===>   realtek-re-kmod-1100.00_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by realtek-re-kmod-1100.00_1 for building ===>  Extracting for realtek-re-kmod-1100.00_1 => SHA256 Checksum OK for alexdupre-rtl_bsd_drv-v1100.00-ea4ed1e_GH0.tar.gz. ===>  Patching for realtek-re-kmod-1100.00_1 ===>  Applying extra patch /usr/ports/net/realtek-re-kmod/files/extra-patch-if__re.c ===>  Configuring for realtek-re-kmod-1100.00_1 ===>  Building for realtek-re-kmod-1100.00_1 --- machine --- --- x86 --- --- i386 --- --- objwarn --- Warning: Object directory not changed from original /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e --- machine --- machine -> /usr/src/sys/amd64/include --- x86 --- x86 -> /usr/src/sys/x86/include --- i386 --- i386 -> /usr/src/sys/i386/include --- opt_bdg.h --- --- opt_inet.h --- --- opt_inet6.h --- --- opt_global.h --- --- device_if.h --- --- bus_if.h --- --- pci_if.h --- --- opt_bdg.h --- :> opt_bdg.h --- opt_global.h --- touch opt_global.h --- device_if.h --- awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h --- bus_if.h --- awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h --- pci_if.h --- awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pci_if.m -h --- if_re.o --- cc  -O2 -pipe -march=znver4 -fno-strict-aliasing -DENABLE_INTERRUPT_MITIGATIN  -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -include /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include    -MD -MF.depend.if_re.o -MTif_re.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wswitch -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-avx  -std=gnu99 -c if_re.c -o if_re.o --- if_re.ko --- ld -m elf_x86_64_fbsd -warn-common --build-id=sha1 -T /usr/src/sys/conf/ldscript.kmod.amd64 -r  -o if_re.ko if_re.o :> export_syms awk -f /usr/src/sys/conf/kmod_syms.awk if_re.ko  export_syms | xargs -J % objcopy % if_re.ko objcopy --strip-debug if_re.ko ===>  Staging for realtek-re-kmod-1100.00_1 ===>   Generating temporary packing list install -T release -o root -g wheel -m 444   if_re.ko /usr/ports/net/realtek-re-kmod/work/stage/boot/modules/ ====> Compressing man pages (compress-man) [root@fbsd15 /usr/ports/net/realtek-re-kmod]# make reinstall clean On 12/1/24 08:51, Mike Jakubik wrote: > > Oh OK, sorry missed that, will test and report. > > Thanks! > > On 2024-12-01 4:58 a.m., Ronald Klop wrote: >> I think a quick fix for your problem was committed a few days ago >> (Nov 28). >> >> https://cgit.freebsd.org/ports/commit/?id=4ca9ea9d4060a4a494456a0e56306bd508fe20e8 >> >> Regards, >> Ronald. >> >> *Van:* Mike Jakubik >> *Datum:* zondag, 1 december 2024 01:59 >> *Aan:* ale@FreeBSD.org, freebsd-net@freebsd.org >> *Onderwerp:* FreeBSD Port: net/realtek-re-kmod >> >> Any update on this from upstream maybe? Seems like an easy fix, I >> got new system that needs this driver too (Realtek 5Gb). >> >> Ty. >> >> >> Hello, >> >> >> Seems like it wont compile on recent current, noticed about  2 >> days ago and /usr/src/sys/sys/mbuf.h hasnt been touched it seems. >> >> 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-56043cbfdd: Thu Nov 21 >> 20:30:44 EST 2024 >> >> >> [root@fbsd15 /usr/ports/net/realtek-re-kmod]# make >> MAKE_JOBS_UNSAFE=yes >> ===>  Building for realtek-re-kmod-1100.00_1 >> Warning: Object directory not changed from original >> /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e >> cc  -O2 -pipe -fno-strict-aliasing -DENABLE_INTERRUPT_MITIGATIN >> -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -include >> /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e/opt_global.h >> -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common >> -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer >> -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include >> -fdebug-prefix-map=./x86=/usr/src/sys/x86/include >> -fdebug-prefix-map=./i386=/usr/src/sys/i386/include    -MD >> -MF.depend.if_re.o -MTif_re.o -mcmodel=kernel -mno-red-zone >> -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables >> -ffreestanding -fwrapv -fstack-protector  -Wall >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >> -Wcast-qual -Wundef -Wno-pointer-sign >> -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-unknown-pragmas -Wswitch >> -Wno-error=tautological-compare -Wno-error=empty-body >> -Wno-error=parentheses-equality -Wno-error=unused-function >> -Wno-error=pointer-sign -Wno-error=shift-negative-value >> -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes >> -mno-avx  -std=gnu99 -c if_re.c -o if_re.o >> if_re.c:1270:37: error: incomplete definition of type 'struct ifnet' >> 1270 |         sc->re_rx_desc_buf_sz = (ifp->if_mtu > ETHERMTU) ? >> ifp->if_mtu: ETHERMTU; >> |                                  ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:1270:63: error: incomplete definition of type 'struct ifnet' >> 1270 |         sc->re_rx_desc_buf_sz = (ifp->if_mtu > ETHERMTU) ? >> ifp->if_mtu: ETHERMTU; >> |                                                            ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:4562:60: error: incomplete definition of type 'struct ifnet' >> 4562 |                 printf("if_drv_flags\t0x%08x\n", >> sc->re_ifp->if_drv_flags); >> | ~~~~~~~~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:4622:43: error: call to undeclared function 'IF_LLADDR'; >> ISO C99 and later do not support implicit function declarations >> [-Werror,-Wimplicit-function-declaration] >> 4622 |                 printf("dev_addr\t%6D\n", >> IF_LLADDR(sc->re_ifp), ":"); >> |                                           ^ >> if_re.c:4622:43: error: format specifies type 'void *' but the >> argument has type 'int' [-Werror,-Wformat] >> 4622 |                 printf("dev_addr\t%6D\n", >> IF_LLADDR(sc->re_ifp), ":"); >> |                                   ~~~ ^~~~~~~~~~~~~~~~~~~~~ >> if_re.c:4662:32: error: incomplete definition of type 'struct ifnet' >> 4662 |                 if ((sc->re_ifp->if_drv_flags & >> IFF_DRV_RUNNING) == 0) { >> |                      ~~~~~~~~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5522:12: error: incomplete definition of type 'struct ifnet' >> 5522 |         ifp->if_softc = sc; >> |         ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5529:12: error: incomplete definition of type 'struct ifnet' >> 5529 |         ifp->if_mtu = ETHERMTU; >> |         ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5530:12: error: incomplete definition of type 'struct ifnet' >> 5530 |         ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | >> IFF_MULTICAST; >> |         ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5531:12: error: incomplete definition of type 'struct ifnet' >> 5531 |         ifp->if_ioctl = re_ioctl; >> |         ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5532:12: error: incomplete definition of type 'struct ifnet' >> 5532 |         ifp->if_output = ether_output; >> |         ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5533:12: error: incomplete definition of type 'struct ifnet' >> 5533 |         ifp->if_start = re_start; >> |         ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5538:20: error: incomplete definition of type 'struct ifnet' >> 5538 |                 ifp->if_hwassist |= CSUM_TCP | CSUM_UDP; >> |                 ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5540:20: error: incomplete definition of type 'struct ifnet' >> 5540 |                 ifp->if_hwassist |= RE_CSUM_FEATURES; >> |                 ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5541:12: error: incomplete definition of type 'struct ifnet' >> 5541 |         ifp->if_capabilities = IFCAP_HWCSUM | >> IFCAP_HWCSUM_IPV6; >> |         ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5544:20: error: incomplete definition of type 'struct ifnet' >> 5544 |                 ifp->if_hwassist |= CSUM_TSO; >> |                 ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5545:20: error: incomplete definition of type 'struct ifnet' >> 5545 |                 ifp->if_capabilities |= IFCAP_TSO; >> |                 ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5549:20: error: incomplete definition of type 'struct ifnet' >> 5549 |                 ifp->if_hwassist &= ~(CSUM_IP6_TSO | >> |                 ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> if_re.c:5552:20: error: incomplete definition of type 'struct ifnet' >> 5552 |                 ifp->if_capabilities &= ~(IFCAP_TSO6 | >> IFCAP_HWCSUM_IPV6); >> |                 ~~~^ >> /usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of >> 'struct ifnet' >> 139 |         struct ifnet *ifp;              /* network >> interface tag belongs to */ >> |                ^ >> fatal error: too many errors emitted, stopping now [-ferror-limit=] >> 20 errors generated. >> *** Error code 1 >> >> Stop. >> make: stopped making "all" in >> /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e >> *** Error code 1 >> >> Stop. >> make: stopped making "all" in /usr/ports/net/realtek-re-kmod >> [root@fbsd15 /usr/ports/net/realtek-re-kmod]# >> >> >> ------------------------------------------------------------------------ >> >> --------------iGOGSDTxSzIxrQjSNNgnmJ50 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Indeed, compiles cleanly and works fine on this system. Thank you sir!

FreeBSD fbsd15.localdomain 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-e8d027be6: Fri Nov 29 20:19:55 EST 2024     mike@fbsd15.localdomain:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

[root@fbsd15 /usr/ports/net/realtek-re-kmod]# make
===>  License BSD4CLAUSE accepted by the user
===>   realtek-re-kmod-1100.00_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by realtek-re-kmod-1100.00_1 for building
===>  Extracting for realtek-re-kmod-1100.00_1
=> SHA256 Checksum OK for alexdupre-rtl_bsd_drv-v1100.00-ea4ed1e_GH0.tar.gz.
===>  Patching for realtek-re-kmod-1100.00_1
===>  Applying extra patch /usr/ports/net/realtek-re-kmod/files/extra-patch-if__re.c
===>  Configuring for realtek-re-kmod-1100.00_1
===>  Building for realtek-re-kmod-1100.00_1
--- machine ---
--- x86 ---
--- i386 ---
--- objwarn ---
Warning: Object directory not changed from original /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e
--- machine ---
machine -> /usr/src/sys/amd64/include
--- x86 ---
x86 -> /usr/src/sys/x86/include
--- i386 ---
i386 -> /usr/src/sys/i386/include
--- opt_bdg.h ---
--- opt_inet.h ---
--- opt_inet6.h ---
--- opt_global.h ---
--- device_if.h ---
--- bus_if.h ---
--- pci_if.h ---
--- opt_bdg.h ---
:> opt_bdg.h
--- opt_global.h ---
touch opt_global.h
--- device_if.h ---
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h
--- bus_if.h ---
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h
--- pci_if.h ---
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pci_if.m -h
--- if_re.o ---
cc  -O2 -pipe -march=znver4 -fno-strict-aliasing -DENABLE_INTERRUPT_MITIGATIN  -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -include /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include    -MD  -MF.depend.if_re.o -MTif_re.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wswitch -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-avx  -std=gnu99 -c if_re.c -o if_re.o
--- if_re.ko ---
ld -m elf_x86_64_fbsd -warn-common --build-id=sha1 -T /usr/src/sys/conf/ldscript.kmod.amd64 -r  -o if_re.ko if_re.o
:> export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk if_re.ko  export_syms | xargs -J % objcopy % if_re.ko
objcopy --strip-debug if_re.ko
===>  Staging for realtek-re-kmod-1100.00_1
===>   Generating temporary packing list
install -T release -o root -g wheel -m 444   if_re.ko /usr/ports/net/realtek-re-kmod/work/stage/boot/modules/
====> Compressing man pages (compress-man)
[root@fbsd15 /usr/ports/net/realtek-re-kmod]# make reinstall clean


On 12/1/24 08:51, Mike Jakubik wrote:

Oh OK, sorry missed that, will test and report.

Thanks!

On 2024-12-01 4:58 a.m., Ronald Klop wrote:
I think a quick fix for your problem was committed a few days ago (Nov 28).

https://cgit.freebsd.org/ports/commit/?id=4ca9ea9d4060a4a494456a0e56306bd508fe20e8

Regards,
Ronald.

 

Van: Mike Jakubik <mike.jakubik@gmail.com>
Datum: zondag, 1 december 2024 01:59
Aan: ale@FreeBSD.org, freebsd-net@freebsd.org
Onderwerp: FreeBSD Port: net/realtek-re-kmod

Any update on this from upstream maybe? Seems like an easy fix, I got new system that needs this driver too (Realtek 5Gb).

Ty.


Hello,


Seems like it wont compile on recent current, noticed about  2 days ago and /usr/src/sys/sys/mbuf.h hasnt been touched it seems.

15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-56043cbfdd: Thu Nov 21 20:30:44 EST 2024


[root@fbsd15 /usr/ports/net/realtek-re-kmod]# make MAKE_JOBS_UNSAFE=yes
===>  Building for realtek-re-kmod-1100.00_1
Warning: Object directory not changed from original /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e
cc  -O2 -pipe -fno-strict-aliasing -DENABLE_INTERRUPT_MITIGATIN -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -include /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include    -MD -MF.depend.if_re.o -MTif_re.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wswitch -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length   -mno-aes -mno-avx  -std=gnu99 -c if_re.c -o if_re.o
if_re.c:1270:37: error: incomplete definition of type 'struct ifnet'
1270 |         sc->re_rx_desc_buf_sz = (ifp->if_mtu > ETHERMTU) ? ifp->if_mtu: ETHERMTU;
|                                  ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:1270:63: error: incomplete definition of type 'struct ifnet'
1270 |         sc->re_rx_desc_buf_sz = (ifp->if_mtu > ETHERMTU) ? ifp->if_mtu: ETHERMTU;
|                                                            ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:4562:60: error: incomplete definition of type 'struct ifnet'
4562 |                 printf("if_drv_flags\t0x%08x\n", sc->re_ifp->if_drv_flags);
|                                                  ~~~~~~~~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:4622:43: error: call to undeclared function 'IF_LLADDR'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
4622 |                 printf("dev_addr\t%6D\n", IF_LLADDR(sc->re_ifp), ":");
|                                           ^
if_re.c:4622:43: error: format specifies type 'void *' but the argument has type 'int' [-Werror,-Wformat]
4622 |                 printf("dev_addr\t%6D\n", IF_LLADDR(sc->re_ifp), ":");
|                                   ~~~     ^~~~~~~~~~~~~~~~~~~~~
if_re.c:4662:32: error: incomplete definition of type 'struct ifnet'
4662 |                 if ((sc->re_ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
|                      ~~~~~~~~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5522:12: error: incomplete definition of type 'struct ifnet'
5522 |         ifp->if_softc = sc;
|         ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5529:12: error: incomplete definition of type 'struct ifnet'
5529 |         ifp->if_mtu = ETHERMTU;
|         ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5530:12: error: incomplete definition of type 'struct ifnet'
5530 |         ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
|         ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5531:12: error: incomplete definition of type 'struct ifnet'
5531 |         ifp->if_ioctl = re_ioctl;
|         ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5532:12: error: incomplete definition of type 'struct ifnet'
5532 |         ifp->if_output = ether_output;
|         ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5533:12: error: incomplete definition of type 'struct ifnet'
5533 |         ifp->if_start = re_start;
|         ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5538:20: error: incomplete definition of type 'struct ifnet'
5538 |                 ifp->if_hwassist |= CSUM_TCP | CSUM_UDP;
|                 ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5540:20: error: incomplete definition of type 'struct ifnet'
5540 |                 ifp->if_hwassist |= RE_CSUM_FEATURES;
|                 ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5541:12: error: incomplete definition of type 'struct ifnet'
5541 |         ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6;
|         ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5544:20: error: incomplete definition of type 'struct ifnet'
5544 |                 ifp->if_hwassist |= CSUM_TSO;
|                 ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5545:20: error: incomplete definition of type 'struct ifnet'
5545 |                 ifp->if_capabilities |= IFCAP_TSO;
|                 ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5549:20: error: incomplete definition of type 'struct ifnet'
5549 |                 ifp->if_hwassist &= ~(CSUM_IP6_TSO |
|                 ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
if_re.c:5552:20: error: incomplete definition of type 'struct ifnet'
5552 |                 ifp->if_capabilities &= ~(IFCAP_TSO6 | IFCAP_HWCSUM_IPV6);
|                 ~~~^
/usr/src/sys/sys/mbuf.h:139:9: note: forward declaration of 'struct ifnet'
139 |         struct ifnet *ifp;              /* network interface tag belongs to */
|                ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1

Stop.
make: stopped making "all" in /usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv-ea4ed1e
*** Error code 1

Stop.
make: stopped making "all" in /usr/ports/net/realtek-re-kmod
[root@fbsd15 /usr/ports/net/realtek-re-kmod]#


 


 
--------------iGOGSDTxSzIxrQjSNNgnmJ50--