sixfab / Sixfab_QMI_Installer

⛔️ DEPRECATED — Installer for QMI (wwan0) interface for providing internet connection via Quectel modules.
MIT License
9 stars 10 forks source link

Multiple errors installing to Raspberry Pi 5 #12

Open JonathanGSL opened 9 months ago

JonathanGSL commented 9 months ago

sudo ./qmi_install.sh Installing kernel headers for Raspberry Pi Reading package lists... Done Building dependency tree... Done Reading state information... Done raspberrypi-kernel-headers is already the newest version (1:1.20230405-1). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. Installing udhcpc Reading package lists... Done Building dependency tree... Done Reading state information... Done udhcpc is already the newest version (1:1.35.0-4+b3). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. Create and Change directory to /opt/qmi_files /opt/qmi_files /home/jonathan/logger/qmi Downloading QMI WWAN Driver for Quectel Module --2023-12-15 15:04:55-- https://github.com/sixfab/Sixfab_QMI_Installer/raw/main/src/Quectel_Linux_Android_QMI_WWAN_Driver_V1.2.1.zip Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/sixfab/Sixfab_QMI_Installer/main/src/Quectel_Linux_Android_QMI_WWAN_Driver_V1.2.1.zip [following] --2023-12-15 15:04:55-- https://raw.githubusercontent.com/sixfab/Sixfab_QMI_Installer/main/src/Quectel_Linux_Android_QMI_WWAN_Driver_V1.2.1.zip Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.109.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 27398 (27K) [application/zip] Saving to: ‘qmi_wwan.zip’

qmi_wwan.zip 100%[===========================================================================================>] 26.76K --.-KB/s in 0.02s

2023-12-15 15:04:55 (1.48 MB/s) - ‘qmi_wwan.zip’ saved [27398/27398]

Archive: qmi_wwan.zip inflating: /opt/qmi_files/qmi_wwan_q/Makefile
inflating: /opt/qmi_files/qmi_wwan_q/ReleaseNote.txt
creating: /opt/qmi_files/qmi_wwan_q/log/ inflating: /opt/qmi_files/qmi_wwan_q/log/how_to_use_bridge.txt
inflating: /opt/qmi_files/qmi_wwan_q/log/how_to_use_bridge_and_QMAP.txt
inflating: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c
inflating: /opt/qmi_files/qmi_wwan_q/rmnet_nss.c
/opt/qmi_files/qmi_wwan_q /opt/qmi_files /home/jonathan/logger/qmi make CROSS_COMPILE= -C /lib/modules/6.1.0-rpi7-rpi-2712/build M=/opt/qmi_files/qmi_wwan_q modules make[1]: Entering directory '/usr/src/linux-headers-6.1.0-rpi7-rpi-2712' CC [M] /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.o /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘bridge_arp_reply’: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:308:13: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration] 308
netif_rx_ni(reply); ^~~ netif_rx /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘rmnet_vnd_update_rx_stats’: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:708:29: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’) 708 stats64->rx_packets += rx_packets; ~~~~~~~ ^~
u64_stats_t
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:709:27: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’) 709 stats64->rx_bytes += rx_bytes; ~~~~~ ^~
u64_stats_t
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘rmnet_vnd_update_tx_stats’: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:724:29: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’) 724 stats64->tx_packets += tx_packets; ~~~~~~~ ^~
u64_stats_t
/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:725:27: error: invalid operands to binary + (have ‘u64_stats_t’ and ‘unsigned int’) 725 stats64->tx_bytes += tx_bytes; ~~~~~ ^~
u64_stats_t

/opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘_rmnet_vnd_get_stats64’: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:756:38: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’ 756 | rx_packets = stats64->rx_packets; | ^~~ /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:757:36: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’ 757 | rx_bytes = stats64->rx_bytes; | ^~~ /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:758:38: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’ 758 | tx_packets = stats64->tx_packets; | ^~~ /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:759:36: error: incompatible types when assigning to type ‘u64’ {aka ‘long long unsigned int’} from type ‘u64_stats_t’ 759 | tx_bytes = stats64->tx_bytes; | ^~~ /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘qmap_register_device’: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:1176:21: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1176 | memcpy (qmap_net->dev_addr, real_dev->dev_addr, ETH_ALEN); | ~~^~~~ In file included from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/string.h:20, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/bitmap.h:11, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/cpumask.h:12, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/smp.h:13, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/arch/arm64/include/asm/arch_timer.h:18, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/arch/arm64/include/asm/timex.h:8, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/timex.h:67, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/time32.h:13, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/time.h:60, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/arch/arm64/include/asm/stat.h:12, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/stat.h:6, from /usr/src/linux-headers-6.1.0-rpi7-common-rpi/include/linux/module.h:13, from /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:13: /usr/src/linux-headers-6.1.0-rpi7-common-rpi/arch/arm64/include/asm/string.h:35:21: note: expected ‘void ’ but argument is of type ‘const unsigned char ’ 35 | extern void memcpy(void , const void , __kernel_size_t); | ^~ /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c: In function ‘qmi_wwan_bind’: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:1893:39: error: assignment of read-only location ‘dev->net->dev_addr’ 1893 | dev->net->dev_addr[0] |= 0x02; / set local assignment bit / | ^~ /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.c:1894:39: error: assignment of read-only location ‘dev->net->dev_addr’ 1894 | dev->net->dev_addr[0] &= 0xbf; / clear "IP" bit */ | ^~ cc1: some warnings being treated as errors make[2]: [/usr/src/linux-headers-6.1.0-rpi7-common-rpi/scripts/Makefile.build:255: /opt/qmi_files/qmi_wwan_q/qmi_wwan_q.o] Error 1 make[1]: [/usr/src/linux-headers-6.1.0-rpi7-common-rpi/Makefile:2039: /opt/qmi_files/qmi_wwan_q] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-rpi7-rpi-2712' make: *** [Makefile:28: default] Error 2 /opt/qmi_files /home/jonathan/logger/qmi Downloading Connection Manager --2023-12-15 15:04:57-- https://github.com/sixfab/Sixfab_QMI_Installer/raw/main/src/Quectel_QConnectManager_Linux_V1.6.1.zip Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/sixfab/Sixfab_QMI_Installer/main/src/Quectel_QConnectManager_Linux_V1.6.1.zip [following] --2023-12-15 15:04:58-- https://raw.githubusercontent.com/sixfab/Sixfab_QMI_Installer/main/src/Quectel_QConnectManager_Linux_V1.6.1.zip Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.111.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 232878 (227K) [application/zip] Saving to: ‘quectel-CM.zip’

quectel-CM.zip 100%[===========================================================================================>] 227.42K 1.38MB/s in 0.2s

2023-12-15 15:04:58 (1.38 MB/s) - ‘quectel-CM.zip’ saved [232878/232878]

Archive: quectel-CM.zip creating: /opt/qmi_files/quectel-CM/ inflating: /opt/qmi_files/quectel-CM/atc.c
inflating: /opt/qmi_files/quectel-CM/atchannel.c
inflating: /opt/qmi_files/quectel-CM/atchannel.h
inflating: /opt/qmi_files/quectel-CM/at_tok.c
inflating: /opt/qmi_files/quectel-CM/at_tok.h
inflating: /opt/qmi_files/quectel-CM/default.script
inflating: /opt/qmi_files/quectel-CM/default.script_ip
inflating: /opt/qmi_files/quectel-CM/device.c
inflating: /opt/qmi_files/quectel-CM/ethtool-copy.h
inflating: /opt/qmi_files/quectel-CM/GobiNetCM.c
creating: /opt/qmi_files/quectel-CM/libmnl/ inflating: /opt/qmi_files/quectel-CM/libmnl/attr.c
inflating: /opt/qmi_files/quectel-CM/libmnl/callback.c
creating: /opt/qmi_files/quectel-CM/libmnl/dhcp/ inflating: /opt/qmi_files/quectel-CM/libmnl/dhcp/dhcp.h
inflating: /opt/qmi_files/quectel-CM/libmnl/dhcp/dhcpclient.c
inflating: /opt/qmi_files/quectel-CM/libmnl/dhcp/dhcpmsg.c
inflating: /opt/qmi_files/quectel-CM/libmnl/dhcp/dhcpmsg.h
inflating: /opt/qmi_files/quectel-CM/libmnl/dhcp/packet.c
inflating: /opt/qmi_files/quectel-CM/libmnl/dhcp/packet.h
inflating: /opt/qmi_files/quectel-CM/libmnl/ifutils.c
inflating: /opt/qmi_files/quectel-CM/libmnl/ifutils.h
inflating: /opt/qmi_files/quectel-CM/libmnl/libmnl.h
inflating: /opt/qmi_files/quectel-CM/libmnl/nlmsg.c
inflating: /opt/qmi_files/quectel-CM/libmnl/README
inflating: /opt/qmi_files/quectel-CM/libmnl/socket.c
creating: /opt/qmi_files/quectel-CM/log/ inflating: /opt/qmi_files/quectel-CM/log/cdc_mbim.txt
inflating: /opt/qmi_files/quectel-CM/log/cdc_mbim_vlan.txt
inflating: /opt/qmi_files/quectel-CM/log/ecm_ncm_rndis.txt
inflating: /opt/qmi_files/quectel-CM/log/gobinet.txt
inflating: /opt/qmi_files/quectel-CM/log/gobinet_bridge.txt
inflating: /opt/qmi_files/quectel-CM/log/gobinet_qmap=1.txt
inflating: /opt/qmi_files/quectel-CM/log/gobinet_qmap=1_bridge.txt
inflating: /opt/qmi_files/quectel-CM/log/gobinet_qmap=4.txt
inflating: /opt/qmi_files/quectel-CM/log/gobinet_qmap=4_bridge.txt
inflating: /opt/qmi_files/quectel-CM/log/pcie_mhi_mbim.txt
inflating: /opt/qmi_files/quectel-CM/log/pcie_mhi_mbim_qmap=4.txt
inflating: /opt/qmi_files/quectel-CM/log/pcie_mhi_qmap=1.txt
inflating: /opt/qmi_files/quectel-CM/log/pcie_mhi_qmap=1_bridge.txt
inflating: /opt/qmi_files/quectel-CM/log/pcie_mhi_qmap=4.txt
inflating: /opt/qmi_files/quectel-CM/log/pcie_mhi_qmap=4_bridge.txt
inflating: /opt/qmi_files/quectel-CM/log/qmi_wwan_q.txt
inflating: /opt/qmi_files/quectel-CM/log/qmi_wwan_q_bridge.txt
inflating: /opt/qmi_files/quectel-CM/log/qmi_wwan_q_qmap=1.txt
inflating: /opt/qmi_files/quectel-CM/log/qmi_wwan_q_qmap=1_bridge.txt
inflating: /opt/qmi_files/quectel-CM/log/qmi_wwan_q_qmap=4.txt
inflating: /opt/qmi_files/quectel-CM/log/qmi_wwan_q_qmap=4_bridge.txt
creating: /opt/qmi_files/quectel-CM/log/usage_of_argument/ inflating: /opt/qmi_files/quectel-CM/log/usage_of_argument/6.txt
inflating: /opt/qmi_files/quectel-CM/log/usage_of_argument/m.txt
inflating: /opt/qmi_files/quectel-CM/main.c
inflating: /opt/qmi_files/quectel-CM/Makefile
inflating: /opt/qmi_files/quectel-CM/mbim-cm.c
inflating: /opt/qmi_files/quectel-CM/MPQCTL.h
inflating: /opt/qmi_files/quectel-CM/MPQMI.h
inflating: /opt/qmi_files/quectel-CM/MPQMUX.c
inflating: /opt/qmi_files/quectel-CM/MPQMUX.h
inflating: /opt/qmi_files/quectel-CM/NOTICE
inflating: /opt/qmi_files/quectel-CM/qmap_bridge_mode.c
inflating: /opt/qmi_files/quectel-CM/QMIThread.c
inflating: /opt/qmi_files/quectel-CM/QMIThread.h
inflating: /opt/qmi_files/quectel-CM/QmiWwanCM.c
inflating: /opt/qmi_files/quectel-CM/qrtr.c
inflating: /opt/qmi_files/quectel-CM/quectel-mbim-proxy.c
inflating: /opt/qmi_files/quectel-CM/quectel-qmi-proxy.c
inflating: /opt/qmi_files/quectel-CM/ReleaseNote.txt
inflating: /opt/qmi_files/quectel-CM/rmnetctl.c
inflating: /opt/qmi_files/quectel-CM/udhcpc.c
inflating: /opt/qmi_files/quectel-CM/udhcpc_netlink.c
inflating: /opt/qmi_files/quectel-CM/udhcpc_script.c
inflating: /opt/qmi_files/quectel-CM/util.c
inflating: /opt/qmi_files/quectel-CM/util.h
Copying udhcpc default script Making /opt/qmi_files/quectel-CM /opt/qmi_files/quectel-CM /opt/qmi_files /home/jonathan/logger/qmi rm -rf .o libmnl/.o quectel-CM quectel-qmi-proxy quectel-mbim-proxy gcc -Wall -Werror -O1 quectel-qmi-proxy.c -o quectel-qmi-proxy -lpthread -ldl -lrt gcc -Wall -Werror -O1 quectel-mbim-proxy.c -o quectel-mbim-proxy -lpthread -ldl -lrt gcc -Wall -Werror -O1 QmiWwanCM.c GobiNetCM.c main.c MPQMUX.c QMIThread.c util.c qmap_bridge_mode.c mbim-cm.c device.c atc.c atchannel.c at_tok.c udhcpc.c -o quectel-CM -lpthread -ldl -lrt QMIThread.c: In function ‘requestSetupDataCall’: QMIThread.c:1826:16: error: pointer used after ‘free’ [-Werror=use-after-free] 1826 | return le16_to_cpu(pMUXMsg->QMUXMsgHdrResp.QMUXError); | ^~~~~~~~~~ QMIThread.c:1825:9: note: call to ‘free’ here 1825 | free(pResponse); | ^~~~~~~ cc1: all warnings being treated as errors mbim-cm.c: In function ‘mbim_open_device’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1695:5: note: in expansion of macro ‘mbim_check_err’ 1695 | mbim_check_err(err, pRequest, pOpenDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1695:5: note: in expansion of macro ‘mbim_check_err’ 1695 | mbim_check_err(err, pRequest, pOpenDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_close_device’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1711:5: note: in expansion of macro ‘mbim_check_err’ 1711 | mbim_check_err(err, pRequest, pCloseDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1711:5: note: in expansion of macro ‘mbim_check_err’ 1711 | mbim_check_err(err, pRequest, pCloseDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_query_connect’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1730:5: note: in expansion of macro ‘mbim_check_err’ 1730 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1730:5: note: in expansion of macro ‘mbim_check_err’ 1730 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_ms_version_query’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1761:5: note: in expansion of macro ‘mbim_check_err’ 1761 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1761:5: note: in expansion of macro ‘mbim_check_err’ 1761 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_device_services_query’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1782:5: note: in expansion of macro ‘mbim_check_err’ 1782 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1782:5: note: in expansion of macro ‘mbim_check_err’ 1782 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_device_caps_query’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1825:5: note: in expansion of macro ‘mbim_check_err’ 1825 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1825:5: note: in expansion of macro ‘mbim_check_err’ 1825 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_set_radio_state’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1878:5: note: in expansion of macro ‘mbim_check_err’ 1878 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1878:5: note: in expansion of macro ‘mbim_check_err’ 1878 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_subscriber_status_query’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1896:5: note: in expansion of macro ‘mbim_check_err’ 1896 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1896:5: note: in expansion of macro ‘mbim_check_err’ 1896 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_register_state_query’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1921:5: note: in expansion of macro ‘mbim_check_err’ 1921 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1921:5: note: in expansion of macro ‘mbim_check_err’ 1921 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_packet_service_query’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1940:5: note: in expansion of macro ‘mbim_check_err’ 1940 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1940:5: note: in expansion of macro ‘mbim_check_err’ 1940 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_packet_service_set’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1965:5: note: in expansion of macro ‘mbim_check_err’ 1965 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:1965:5: note: in expansion of macro ‘mbim_check_err’ 1965 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_set_connect’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2046:5: note: in expansion of macro ‘mbim_check_err’ 2046 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2046:5: note: in expansion of macro ‘mbim_check_err’ 2046 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_ip_config’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2069:5: note: in expansion of macro ‘mbim_check_err’ 2069 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2069:5: note: in expansion of macro ‘mbim_check_err’ 2069 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘mbim_proxy_configure’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2165:5: note: in expansion of macro ‘mbim_check_err’ 2165 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2165:5: note: in expansion of macro ‘mbim_check_err’ 2165 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c: In function ‘qmi_over_mbim_qmidev_send’: mbim-cm.c:1679:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2449:5: note: in expansion of macro ‘mbim_check_err’ 2449 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ mbim-cm.c:1679:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1679 | if (err) return err; if (_status) return _status; return 8888; \ | ^~ mbim-cm.c:2449:5: note: in expansion of macro ‘mbim_check_err’ 2449 | mbim_check_err(err, pRequest, pCmdDone); | ^~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:28: release] Error 1 /opt/qmi_files /home/jonathan/logger/qmi After reboot please follow commands mentioned below go to /opt/qmi_files/quectel-CM and run sudo ./quectel-CM -s [YOUR APN] for manual operation Press ENTER key to reboot

JonathanGSL commented 9 months ago

OS Details (latest Raspbian 64 bit): Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-rpi7-rpi-2712 Architecture: arm64