Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on FreeBSD 13 stable #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rozhuk-im
Copy link

pause() has 2 different definition in unistd.h and sys/systm.h

pause() has 2 different definition in unistd.h and sys/systm.h
@davidpcahill
Copy link

davidpcahill commented Apr 23, 2023

The following is occurring post patch on FreeBSD 14:

root@freebsd14:/home/dev/aqtion-freebsd # make clean
rm -f export_syms machine x86 i386 if_atlantic.ko if_atlantic.kld aq_main.o aq_media.o aq_irq.o aq_ring.o aq_hw.o aq_hw_llh.o aq_fw.o aq_fw1x.o aq_fw2x.o aq_dbg.o opt_inet.h opt_inet6.h opt_rss.h opt_global.h device_if.h bus_if.h pci_if.h ifdi_if.h
root@freebsd14:/home/dev/aqtion-freebsd # make
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
i386 -> /usr/src/sys/i386/include
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pci_if.m -h
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/net/ifdi_if.m -h
:> opt_rss.h
touch opt_global.h
Warning: Object directory not changed from original /usr/home/dev/aqtion-freebsd
cc  -O2 -pipe -DIFLIB -ferror-limit=1  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/include -include /usr/home/dev/aqtion-freebsd/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.aq_main.o -MTaq_main.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 -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-error=deprecated-non-prototype -Wno-error=strict-prototypes -Wno-error=unused-but-set-variable -Wno-format-zero-length   -mno-aes -mno-avx  -std=iso9899:1999 -c aq_main.c -o aq_main.o
aq_main.c:200:57: error: too many arguments provided to function-like macro invocation
DRIVER_MODULE(atlantic, pci, aq_driver, aq_devclass, 0, 0);
                                                        ^
/usr/include/sys/bus.h:834:9: note: macro 'DRIVER_MODULE' defined here
#define DRIVER_MODULE(name, busname, driver, evh, arg)                  \
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/home/dev/aqtion-freebsd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants