Compiling on Debian 12

Compilation and installation questions and stories
Post Reply
Phyllo
Posts: 11
Joined: 25 Aug 2021, 19:28

Compiling on Debian 12

Post by Phyllo »

Hello all!

I have been looking to update our Debian 11 OS's to Debian 12, but I have been having issues compiling accel-ppp when it gets to the final steps.
From what I can tell, the error revolves around "/tools/bpf/resolve_btfids/resolve_btfids", I have been trying to find a package to fix this missing dependency, but I have not had any luck.
Does anyone have any suggestions for fixing this?

Thanks!

Last bit of the make output is below.

Code: Select all

/opt/accel-ppp-code/accel-pppd/extra/chap-secrets.c:624:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  624 |         SHA1_Final(c_hash, &sha_ctx);
      |         ^~~~~~~~~~
/usr/include/openssl/sha.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
      |                           ^~~~~~~~~~
[ 86%] Linking C shared library libchap-secrets.so
[ 86%] Built target chap-secrets
[ 86%] Building C object accel-pppd/extra/CMakeFiles/logwtmp.dir/logwtmp.c.o
[ 87%] Linking C shared library liblogwtmp.so
[ 87%] Built target logwtmp
[ 88%] Building C object accel-pppd/extra/CMakeFiles/connlimit.dir/connlimit.c.o
[ 89%] Linking C shared library libconnlimit.so
[ 89%] Built target connlimit
[ 90%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6.c.o
[ 91%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6_packet.c.o
[ 92%] Linking C shared library libipv6_dhcp.so
[ 92%] Built target ipv6_dhcp
[ 92%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_nd.dir/nd.c.o
[ 93%] Linking C shared library libipv6_nd.so
[ 93%] Built target ipv6_nd
[ 94%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/shaper.c.o
[ 95%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/limiter.c.o
[ 96%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/leaf_qdisc.c.o
[ 96%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/tc_core.c.o
[ 97%] Linking C shared library libshaper.so
[ 97%] Built target shaper
[ 97%] Building C object accel-cmd/CMakeFiles/accel-cmd.dir/accel_cmd.c.o
[ 98%] Linking C executable accel-cmd
[ 98%] Built target accel-cmd
[ 99%] Generating driver/ipoe.ko
/bin/sh: 1: ./tools/bpf/resolve_btfids/resolve_btfids: not found
make[4]: *** [/usr/src/linux-headers-6.1.0-11-common/scripts/Makefile.modfinal:63: /opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.ko] Error 127
make[4]: *** Deleting file '/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.ko'
make[3]: *** [/usr/src/linux-headers-6.1.0-11-common/Makefile:1954: modules] Error 2
make[2]: *** [drivers/ipoe/CMakeFiles/ipoe_drv.dir/build.make:77: drivers/ipoe/driver/ipoe.ko] Error 2
make[1]: *** [CMakeFiles/Makefile2:1189: drivers/ipoe/CMakeFiles/ipoe_drv.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
dimka88
Posts: 858
Joined: 13 Oct 2014, 05:51
Contact:

Re: Compiling on Debian 12

Post by dimka88 »

Hi Phyllo, did you follow this docs? https://docs.accel-ppp.org/en/latest/in ... ebian.html
Check and compare name of kernel headers
uname -r
apt insrtall linux-headers-`uname -r`
Phyllo
Posts: 11
Joined: 25 Aug 2021, 19:28

Re: Compiling on Debian 12

Post by Phyllo »

Hi dimka,

Sorry for the late reply.

Yes, I followed those exact steps when I was doing the installation.
I also reinstalled the OS a few times to validate that I did everything in the proper order.
I got the same results each time, so something may have changed in the OS.

Thanks!
dimka88
Posts: 858
Joined: 13 Oct 2014, 05:51
Contact:

Re: Compiling on Debian 12

Post by dimka88 »

Please, show allinstalation output begin from packages install and also include commands
```
uname -a
cat /etc/debian_version
````
Maurice Poisson
Posts: 4
Joined: 20 Sep 2023, 15:32

Re: Compiling on Debian 12

Post by Maurice Poisson »

Compilation and deb package preparation on Debian 12
====================================================

Package can be built and seems to run Ok.

Got many deprecated-declaration warnings possibly related to Debian 12 using OpenSSL 3. Files affected: accel-pppd/auth/auth_chap_md5.c accel-pppd/auth/auth_mschap_v1.c accel-pppd/auth/auth_mschap_v2.c accel-pppd/ctrl/l2tp/l2tp.c accel-pppd/ctrl/l2tp/packet.c accel-pppd/ctrl/pppoe/pppoe.c accel-pppd/ctrl/sstp/sstp.c accel-pppd/extra/chap-secrets.c accel-pppd/radius/acct.c accel-pppd/radius/auth.c accel-pppd/radius/dm_coa.c accel-pppd/radius/serv.c.

Skipped BTF generation for build/drivers/ipoe/driver/ipoe.ko due to unavailability of vmlinux

Skipped BTF generation for build/drivers/vlan_mon/driver/vlan_mon.ko due to unavailability of vmlinux

Host's OS
---------

$ uname -a
Linux hal 6.1.0-15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.66-1 (2023-12-09) x86_64 GNU/Linux
$ cat /etc/debian_version
12.4

Installed required packages
---------------------------

$ sudo apt install liblua5.4-dev snmpd snmp-mibs-downloader libsnmp-dev build-essential cmake gcc linux-headers-`uname -r` git libpcre3-dev libssl-dev

Updated & prepared local git repository
---------------------------------------

$ cd ~/opt/accel-ppp-code/
$ rm -rf build
$ git pull git://git.code.sf.net/p/accel-ppp/code
$ mkdir build
$ cd build/

Making and packaging
--------------------

$ cmake -DBUILD_IPOE_DRIVER=TRUE -DBUILD_VLAN_MON_DRIVER=TRUE -DCMAKE_INSTALL_PREFIX=/usr -DKDIR=/usr/src/linux-headers-`uname -r` -DLUA=5.4 -DNETSNMP=TRUE -DCPACK_TYPE=Debian12 ..
$ make
$ cpack -G DEB
dimka88
Posts: 858
Joined: 13 Oct 2014, 05:51
Contact:

Re: Compiling on Debian 12

Post by dimka88 »

In general it is not error, it is just warning about new openssl version. It will fixed
Post Reply