FreeBSD Port: net/realtek-re-kmod

Mike Jakubik <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>
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]#
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.