so, I replaced the mellanox cards with qlogic since they include the source files to make the drivers yourself and I’m having some really freaking odd errors and am left very confused and unsure how to fix them. trying to run the “make install” command under a normal user account throws an error saying the source folder doesn’t exist and I can very easily confirm it does, trying to run the make install after elevating to the superuser throws other errors far later in the chain the the first one and these confuse me to no end and therefor I seek some help once again on my 100 gig endeavors, no pun intended that was an accident.
I was going to attach the download URL for the driver files I’m trying to compile but apparently they use a strange download URL that’s not static, so, to find the files I’m having troubles with, its the intelligent ethernet adapters - > QL45XXX - > linux platform, and then the “41XXX 45XXX Linux Source Code Package” version 8.70.12.0 first result from the top for drivers.
[volt@Editing-PC Downloads]$ ls
41xxx-45xxx_Linux_Source_Code_Package.zip backups fastlinq-8.70.12.0 fastlinq-8.70.12.0.tar.bz2 'game mods' model.safetensors 'novelai dot net' porn 'porn games' 'program stuff' 'save files' 'skyrim shit' 'Telegram Desktop'
[volt@Editing-PC Downloads]$ cd fastlinq-8.70.12.0/
[volt@Editing-PC fastlinq-8.70.12.0]$ ls
add-ons COPYING INSTALL.TXT Makefile qed-8.70.12.0 qede-8.70.12.0 qedf-8.70.12.0 qedi-8.70.12.0 qedr-8.70.12.0 storcmn
[volt@Editing-PC fastlinq-8.70.12.0]$ sudo make install
[sudo] password for volt:
Installing udev files 99-qed.rules and qed_udev_dbg.sh
make[1]: Entering directory '/home/volt/Downloads/fastlinq-8.70.12.0'
make[1]: *** /qed-8.70.12.0/src/: No such file or directory. Stop.
make[1]: Leaving directory '/home/volt/Downloads/fastlinq-8.70.12.0'
make: *** [Makefile:34: install] Error 1
[volt@Editing-PC fastlinq-8.70.12.0]$ su
Password:
[root@Editing-PC fastlinq-8.70.12.0]# ls
add-ons COPYING INSTALL.TXT Makefile qed-8.70.12.0 qede-8.70.12.0 qedf-8.70.12.0 qedi-8.70.12.0 qedr-8.70.12.0 storcmn
[root@Editing-PC fastlinq-8.70.12.0]# make install
udev rules already installed
make[1]: Entering directory '/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src'
mkdir -p /lib/firmware/qed
install -m 755 qed_init_values_zipped.bin /lib/firmware/qed/qed_init_values_zipped-8.70.4.0.bin
install -m 755 qed_init_values.bin /lib/firmware/qed/qed_init_values-8.70.4.0.bin
make -C /lib/modules/6.12.49-1-lts/build M=`pwd` modules
make[2]: Entering directory '/usr/lib/modules/6.12.49-1-lts/build'
CC [M] /home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.o
In file included from /home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed.h:41,
from /home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.c:62:
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:117:63: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
117 | #if defined(RHEL_RELEASE_CODE) && NOT_RHEL_OR_PRE_VERSION(7, 0)
| ^
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:602:65: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
602 | #if (LINUX_PRE_VERSION(2, 6, 36) && NOT_RHEL_OR_PRE_VERSION(6, 3))
| ^
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:612:64: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
612 | #if (LINUX_PRE_VERSION(3, 2, 0) && NOT_RHEL_OR_PRE_VERSION(6, 3) && NOT_SLES_OR_PRE_VERSION(SLES11_SP3))
| ^
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:612:103: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
612 | #if (LINUX_PRE_VERSION(3, 2, 0) && NOT_RHEL_OR_PRE_VERSION(6, 3) && NOT_SLES_OR_PRE_VERSION(SLES11_SP3))
| ^
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:764:31: error: unknown type name ‘time_t’
764 | static inline void time_to_tm(time_t totalsecs, int offset, struct tm *result)
| ^~~~~~
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:40:1: note: ‘time_t’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
39 | #include <net/devlink.h>
+++ |+#include <time.h>
40 | #endif
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:846:64: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
846 | #if (LINUX_PRE_VERSION(5, 9, 0) && NOT_RHEL_OR_PRE_VERSION(8, 4)) && NOT_SLES_OR_PRE_VERSION(SLES15_SP3)
| ^
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:846:104: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
846 | #if (LINUX_PRE_VERSION(5, 9, 0) && NOT_RHEL_OR_PRE_VERSION(8, 4)) && NOT_SLES_OR_PRE_VERSION(SLES15_SP3)
| ^
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:849:64: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
849 | #if (LINUX_PRE_VERSION(5, 7, 0) && NOT_RHEL_OR_PRE_VERSION(8, 3)) && NOT_SLES_OR_PRE_VERSION(SLES15_SP3)
| ^
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_compat.h:849:104: error: this use of ‘defined’ may not be portable [-Werror=expansion-to-defined]
849 | #if (LINUX_PRE_VERSION(5, 7, 0) && NOT_RHEL_OR_PRE_VERSION(8, 3)) && NOT_SLES_OR_PRE_VERSION(SLES15_SP3)
| ^
In file included from /home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed.h:66:
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_if.h: In function ‘qed_get_current_timestamp’:
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_if.h:1832:19: error: implicit declaration of function ‘local_clock’; did you mean ‘local_lock’? [-Wimplicit-function-declaration]
1832 | ts->sec = local_clock();
| ^~~~~~~~~~~
| local_lock
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.c: In function ‘qed_free_pci’:
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.c:577:9: error: implicit declaration of function ‘pci_disable_pcie_error_reporting’ [-Wimplicit-function-declaration]
577 | pci_disable_pcie_error_reporting(pdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.c: In function ‘qed_init_pci’:
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.c:704:14: error: implicit declaration of function ‘pci_enable_pcie_error_reporting’ [-Wimplicit-function-declaration]
704 | rc = pci_enable_pcie_error_reporting(pdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.c: In function ‘qed_slowpath_start’:
/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.c:2164:17: error: implicit declaration of function ‘strlcpy’; did you mean ‘strncpy’? [-Wimplicit-function-declaration]
2164 | strlcpy(drv_version.name, params->name,
| ^~~~~~~
| strncpy
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:229: /home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src/qed_main.o] Error 1
make[3]: *** [/usr/lib/modules/6.12.49-1-lts/build/Makefile:1945: /home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src] Error 2
make[2]: *** [Makefile:224: __sub-make] Error 2
make[2]: Leaving directory '/usr/lib/modules/6.12.49-1-lts/build'
make[1]: *** [Makefile:479: qed.o] Error 2
make[1]: Leaving directory '/home/volt/Downloads/fastlinq-8.70.12.0/qed-8.70.12.0/src'
make: *** [Makefile:34: install] Error 1
[root@Editing-PC fastlinq-8.70.12.0]#
this project was not supposed to fight me this dang much, holy heck man. plus side, once its done, its done, and I can rest happy, but holy crap its fighting me every step of the way in every possible chance it gets. worth the trouble but dear lord man.