Public bug reported: hello,
squid3 cc1 error and too smblib error on make compiling so i paste below the errors : ``` smblib-util.c: In function 'SMB_Negotiate': smblib-util.c:400:9: error: '__builtin_strncpy' output may be truncated copying 79 bytes from a string of length 79 [-Werror=stringop-truncation] 400 | strncpy(p, Con_Handle -> Svr_PDom, sizeof(Con_Handle -> Svr_PDom) - 1); | ^ smblib-util.c:423:9: error: '__builtin_strncpy' output may be truncated copying 79 bytes from a string of length 79 [-Werror=stringop-truncation] 423 | strncpy(p, Con_Handle -> Svr_PDom, sizeof(Con_Handle -> Svr_PDom) - 1); | ^ libtool: compile: gcc -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../lib -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -Wall -g -O2 -MT smbencrypt.lo -MD -MP -MF .deps/smbencrypt.Tpo -c smbencrypt.c -o smbencrypt.o >/dev/null 2>&1 smblib-util.c: In function 'SMB_TreeConnect': smblib-util.c:537:5: error: '__builtin_strncpy' specified bound 129 equals destination size [-Werror=stringop-truncation] 537 | strncpy(tree -> path, path, sizeof(tree -> path)); | ^ smblib-util.c:538:5: error: '__builtin_strncpy' specified bound 20 equals destination size [-Werror=stringop-truncation] 538 | strncpy(tree -> device_type, device, sizeof(tree -> device_type)); | ^ cc1: all warnings being treated as errors libtool: compile: gcc -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../lib -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow -Werror -pipe -D_REENTRANT -Wall -g -O2 -MT smbdes.lo -MD -MP -MF .deps/smbdes.Tpo -c smbdes.c -o smbdes.o >/dev/null 2>&1 make[2]: *** [Makefile:788: smblib-util.lo] Error 1 make[2]: *** Attente des tâches non terminées.... make[2] : on quitte le répertoire « /home/dorian-rosse/programs/squid-3.5.27/lib/smblib » make[1]: *** [Makefile:1067: all-recursive] Error 1 make[1] : on quitte le répertoire « /home/dorian-rosse/programs/squid-3.5.27/lib » make: *** [Makefile:584: install-recursive] Error 1 ``` ``` lsb_release -rd No LSB modules are available. Description: Ubuntu 24.04 LTS Release: 24.04 apt-cache policy squid-3.5.27 N: Impossible de trouver le paquet squid-3.5.27 N: Impossible de trouver de paquet correspondant à l'expression rationnelle « squid-3.5.27 » N: Impossible de trouver de paquet correspondant à l'expression rationnelle « squid-3.5.27 » dorian-rosse@msi-torpedo-corsair:~/programs/squid-3.5.27$ apt-cache policy squid3 N: Impossible de trouver le paquet squid3 ``` also i may be able to compile squid3 but your advice package look like default squid so i paste the systemctl output about squid below : ``` sudo systemctl status squid × squid.service - Squid Web Proxy Server Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sun 2024-08-25 18:16:11 CEST; 17h ago Duration: 4.499s Docs: man:squid(8) Main PID: 2152 (code=exited, status=1/FAILURE) CPU: 457ms août 25 18:16:11 msi-torpedo-corsair squid[2152]: Squid Parent: squid-1 process 2506 will not be restarted for 3600 seconds due to repeated, frequent failures août 25 18:16:11 msi-torpedo-corsair squid[2152]: Exiting due to repeated, frequent failures août 25 18:16:11 msi-torpedo-corsair squid[2152]: Removing PID file (/run/squid.pid) août 25 18:16:11 msi-torpedo-corsair systemd[1]: squid.service: Main process exited, code=exited, status=1/FAILURE août 25 18:16:11 msi-torpedo-corsair systemd[1]: squid.service: Killing process 2162 (pinger) with signal SIGKILL. août 25 18:16:11 msi-torpedo-corsair systemd[1]: squid.service: Killing process 2206 (pinger) with signal SIGKILL. août 25 18:16:11 msi-torpedo-corsair systemd[1]: squid.service: Killing process 2246 (pinger) with signal SIGKILL. août 25 18:16:11 msi-torpedo-corsair systemd[1]: squid.service: Killing process 2496 (pinger) with signal SIGKILL. août 25 18:16:11 msi-torpedo-corsair systemd[1]: squid.service: Killing process 2511 (pinger) with signal SIGKILL. août 25 18:16:11 msi-torpedo-corsair systemd[1]: squid.service: Failed with result 'exit-code'. dorian-rosse@msi-torpedo-corsair:~/programs/squid-3.5.27$ sudo systemctl stop squid dorian-rosse@msi-torpedo-corsair:~/programs/squid-3.5.27$ sudo systemctl start squid dorian-rosse@msi-torpedo-corsair:~/programs/squid-3.5.27$ sudo systemctl status squid ● squid.service - Squid Web Proxy Server Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; preset: enabled) Active: active (running) since Mon 2024-08-26 11:25:40 CEST; 2s ago Docs: man:squid(8) Process: 92995 ExecStartPre=/usr/sbin/squid --foreground -z (code=exited, status=0/SUCCESS) Main PID: 92999 (squid) Tasks: 6 (limit: 154266) Memory: 17.3M (peak: 18.1M) CPU: 192ms CGroup: /system.slice/squid.service ├─92999 /usr/sbin/squid --foreground -sYC ├─93005 "(pinger)" ├─93010 "(pinger)" ├─93012 "(squid-1)" --kid squid-1 --foreground -sYC ├─93014 "(unlinkd)" └─93015 "(pinger)" août 26 11:25:42 msi-torpedo-corsair squid[93012]: Squid plugin modules loaded: 0 août 26 11:25:42 msi-torpedo-corsair squid[93012]: Adaptation support is off. août 26 11:25:42 msi-torpedo-corsair squid[93012]: Accepting HTTP Socket connections at conn3 local=[::]:3132 remote=[::] FD 16 flags=9 listening port: 3132 août 26 11:25:42 msi-torpedo-corsair squid[93012]: Accepting HTTP Socket connections at conn5 local=[::]:9090 remote=[::] FD 17 flags=9 listening port: 9090 août 26 11:25:42 msi-torpedo-corsair squid[93012]: Accepting HTTP Socket connections at conn7 local=[::]:3128 remote=[::] FD 18 flags=9 listening port: 3128 août 26 11:25:42 msi-torpedo-corsair squid[93012]: Done reading /var/spool/squid swaplog (0 entries) août 26 11:25:42 msi-torpedo-corsair squid[93012]: Indexing cache entries: 0.00% (0 out of 1) août 26 11:25:42 msi-torpedo-corsair squid[93012]: Finished rebuilding storage from disk. 0 Entries scanned 0 Invalid entries 0 With invalid flags 0 Objects loaded 0 Objects expired 0 Objects canceled 0 Duplicate URLs purged 0 Swapfile clashes avoided Took 0.01 seconds (0.00 objects/sec). août 26 11:25:42 msi-torpedo-corsair squid[93012]: Beginning Validation Procedure août 26 11:25:42 msi-torpedo-corsair squid[93012]: Completed Validation Procedure Validated 0 Entries store_swap_size = 0.00 KB ``` thus if i stop the squid working then it works but fastly it break because it miss all the squid3 configuring files however i don't talk about the default squid, ``` sudo systemctl status squid3 Unit squid3.service could not be found. ``` thanks you in advance to help myself bring squid3 fully, regards. Azaretdodo. ** Affects: squid3 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2077866 Title: squid3 cc1 error and too smblib error on make compiling To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/2077866/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs