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

Building on 13.2 #30

Open
nweddington opened this issue May 2, 2023 · 1 comment
Open

Building on 13.2 #30

nweddington opened this issue May 2, 2023 · 1 comment

Comments

@nweddington
Copy link

Hi I just built this on FreeBSD 13.2 though I did have some initial difficulty.

In file included from aq_hw.c:38:
/usr/include/sys/systm.h:426:1: error: static declaration of 'pause' follows non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int pause(void);

Out of curiosity, I removed the include line for unistd.h from aq_hw.c and then tried the build again and it worked. Will this have any negative consequences or impact on the driver? It appears to be working well and doesn't crash when I try to ping out on the interface like the freebsd pkg did when I tried it through pkg install.

@thesunexpress
Copy link

Doing so, builds the kernel module with int pause(void); declared elsewhere in source.
The compiler can also be instructed to set preference for using Aquantia source vs FreeBSD standards... have forgotten the exact switches.

Similar example: This was a significant headache in older nvidia-driver releases where shifting a single #include line in their source, to a few lines lower, resolved a number of build failures. Will leave it up to you to imagine what sort of staring at the monitor in bewilderment followed.

For a laugh: Comment out int pause from /usr/include/unistd.h & marvel at how many folks declare their own.

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

No branches or pull requests

2 participants