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

ppp: update to 2.5.1 #16605

Merged
merged 5 commits into from
Oct 12, 2024
Merged

ppp: update to 2.5.1 #16605

merged 5 commits into from
Oct 12, 2024

Conversation

DragonBluep
Copy link
Contributor

@DragonBluep DragonBluep commented Oct 5, 2024

The original PR: #12848

Notice:

  • The default ppp package size (cortex-a53 variant) increased by ~10 KB, 137 KB --> 147 KB.
  • The MPPE feature was supported by the upstream. However, the MPPC feature is missing. Upstream said MPPC is a patented algorithm, so maybe it's not a good idea to keep it in openwrt repository?
  • I don't expect it to fix something, but this PR may have some help for these issues, who knows.

@github-actions github-actions bot added the core packages pull request/issue for core (in-tree) packages label Oct 5, 2024
Copy link
Contributor

@nasbdh9 nasbdh9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on x86_64 and flogic

@nbd168
Copy link
Member

nbd168 commented Oct 5, 2024

Dropping MPPC seems like a good idea to me too
Edit: Even with the patch, MPPC probably doesn't even work right now, since I'd expect it to rely on corresponding kernel support. We did have that kernel support at some point in time, but it was dropped.

@systemcrash
Copy link
Contributor

I think the patent on MPPC has expired. But I guess that doesn't matter here if they dropped it upstream.

@@ -29,7 +29,7 @@ Signed-off-by: Jo-Philipp Wich <[email protected]>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update the kernel version from 2,6,37 to something more recent like 5.15 or 6.6. There are some checks for kernel if (kernel_version >= KVERSION(4,7,0)).

I think we can drop this complete patch. How much bytes does it save?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only suppresses some error messages which indicate real errors on recent kernel versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch can reduce the size of the package ppp by approximately 2.5 KB. I'll rewrite it to remove more useless checks later.

icegood and others added 5 commits October 12, 2024 15:53
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog

Upstreamed patches:
120-debian_ipv6_updown_option.patch [1]
133-fix_sha1_include.patch [2]
140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3]
141-Expand-byte-count-statistics-to-64-bits-298.patch [4]
142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5]
143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6]
144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7]

Suppressed patches:
200-makefile.patch [8]
201-mppe_mppc_1.1.patch [9]
203-opt_flags.patch [10]
300-filter-pcap-includes-lib.patch [11]
511-pptp_cflags.patch [12]
600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13]
610-pppd_compile_fix.patch [14]

[1] ppp-project/ppp@7f8c1a1
[2] ppp-project/ppp@ba7f7e0
[3] ppp-project/ppp@98ec18f
[4] ppp-project/ppp@81ad945
[5] ppp-project/ppp@4a54e34
[6] ppp-project/ppp@44609bf
[7] ppp-project/ppp@089687f
[8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure
[9] enable_microsoft_extensions=yes, MPPC support is removed.
[10] fPIC ignored so far
[11] done by autotools
[12] in main patch for pptp plugin
[13] with_openssl=no, already in upstream ppp-des.c
[14] with_static_pcap=yes from patch 310

Signed-off-by: Sergey Ivanov <[email protected]>

* Fix package hash.
* Fix multilink variant build.
* Fix some compile errors.
* Some code format fixes.
* Refactor commit message.
* Rebase git and fix conflicts.

Co-authored-by: Shiji Yang <[email protected]>
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog

Suppressed patches:
010-use_target_for_configure.patch [1]
510-pptp_compile_fix.patch [2]
520-u_int_bsd_fix.patch [3]

Upstreamed patches:
330-retain_foreign_default_routes.patch [4]
521-remove_unused_openssl_dep.patch [5]

[1] ppp-project/ppp@e48a9b5
[2] Merged into "500-add-pptp-plugin.patch"
[3] ppp-project/ppp@797cdae
[4] ppp-project/ppp@9856f47
[5] ppp-project/ppp@59342ab

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
The uClibc library support was removed since commit:
57fe7d5 ("toolchain: remove uClibc install stuff")

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
In the original code, the entire time delay of the discovery phase
is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if
discovery phase fails on first attempt. There is a chance to fix
the "Timeout waiting for PADO packets" issue by removing this patch.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
The latest ppp version seems to no longer require these ancient
build fixes.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
@openwrt-bot openwrt-bot merged commit eb05baf into openwrt:main Oct 12, 2024
6 checks passed
@hauke
Copy link
Member

hauke commented Oct 12, 2024

Thank you for the PR, I hope that this will not introduce too many new problems.

@Neustradamus
Copy link

Thanks to @DragonBluep for this PPP 2.5.1 PR (and @icegood for PPP 2.5.0 origin) and @hauke for merging and all others participants @nasbdh9 (test), @nbd168, @systemcrash (@rsalvaterra, @mrkiko, @dchard, @BKPepe, @wongsyrone, @zdz2019, @Ansuel, @ptpt52, @curtdept, @enaess)!

Linked to:

@KA2107
Copy link

KA2107 commented Oct 12, 2024

Basic PPPoE WAN connection seems to be working fine on ppp 2.5.1 . Thank you everyone involved in this effort.

Router: GL.iNet GL-MT6000 (Flint 2) (Target: mediatek/filogic) (Arch: aarch64_cortex-a53)
OpenWrt Version: (main / master) SNAPSHOT r27730-3d7040b7d6 (image built using Imagebuilder)
ISP: AirTel Fiber (GPON FTTH) (India)
PPPoE Authentication: PAP

@ptpt52
Copy link
Contributor

ptpt52 commented Oct 13, 2024

pptpd build failed agaist this new ppp version

@DragonBluep DragonBluep deleted the ppp-2.5.1 branch October 13, 2024 02:12
@DragonBluep
Copy link
Contributor Author

pptpd build failed agaist this new ppp version

It seems that OpenWrt buildbot did not catch any build issues:
https://buildbot.openwrt.org/images/#/grid

@ptpt52
Copy link
Contributor

ptpt52 commented Oct 13, 2024

pptpd build log:

aarch64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.  -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/usr/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/include/fortify   -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0=pptpd-1.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fno-builtin -Wall -DSBINDIR='"/usr/sbin"' -c bcrelay.c
bcrelay.c: In function 'mainloop.isra':
bcrelay.c:592:26: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  592 |           if ( (ipp_p->ip.protocol == IPPROTO_UDP) &&
      |                 ~~~~~~~~~^~~~~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:593:19: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  593 |                (((ntohl(ipp_p->ip.daddr)) & 0x000000ff) == 0x000000ff) &&
      |                  ~^~~~~~~~~~~~~~~~~~~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:594:26: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  594 |                (ipp_p->ip.ttl != 1) &&
      |                 ~~~~~~~~~^~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:595:83: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  595 |                (!((*IP_UDPPDU_CHECKSUM_MSB_PTR((unsigned char *)ipp_p+(4*ipp_p->ip.ihl)) == 0) &&
      |                                                                          ~~~~~~~~~^~~~
bcrelay.c:126:63: note: in definition of macro 'IP_UDPPDU_CHECKSUM_MSB_PTR'
  126 | #define IP_UDPPDU_CHECKSUM_MSB_PTR(udppdu) ((unsigned char *)(udppdu) + 6 )
      |                                                               ^~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:605:97: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  605 |               logstr_cntr = sprintf(logstr, "UDP_BroadCast(sp=%d,dp=%d) from: %s relayed to: ", ntohs(ipp_p->udp.source),
      |                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:606:37: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  606 |                                     ntohs(ipp_p->udp.dest), iflistLogRToString(&(iflist[i]), i, &(cur_ifsnr[i])));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:639:33: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  639 |                   ipp_p->ip.ttl = 1;
      |                   ~~~~~~~~~~~~~~^~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:643:35: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  643 |                   ipp_p->ip.daddr = iflist[j].bcast;
      |                   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:649:24: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  649 |                       (ntohl(ipp_p->ip.saddr) != iflist[i].ifdstaddr))
      |                        ^~~~~~~~~~~~~~~~~~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:651:37: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  651 |                     ipp_p->ip.saddr = htonl(iflist[i].ifdstaddr);
      |                     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
bcrelay.c:658:67: warning: array subscript 'struct packet[0]' is partly outside array bounds of 'unsigned char[1518]' [-Warray-bounds=]
  658 |                   udppdu = (unsigned char *)ipp_p + (4 * ipp_p->ip.ihl);
      |                                                          ~~~~~~~~~^~~~
bcrelay.c:438:17: note: object 'buf' of size 1518
  438 |   unsigned char buf[1518];
      |                 ^~~
aarch64-openwrt-linux-musl-gcc  -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0=pptpd-1.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fno-builtin -Wall -DSBINDIR='"/usr/sbin"'  -L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/usr/lib -L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-13.3.0_musl/lib -fuse-ld=bfd -znow -zrelro  -o bcrelay bcrelay.o  
for d in plugins; do make -w -C $d all; done
make[5]: Entering directory '/mnt/build/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0/plugins'
aarch64-openwrt-linux-musl-gcc -o pptpd-logwtmp.so -shared -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0=pptpd-1.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I.. -I../../include -fPIC pptpd-logwtmp.c -lutil
pptpd-logwtmp.c:17:23: error: 'VERSION' undeclared here (not in a function)
   17 | char pppd_version[] = VERSION;
      |                       ^~~~~~~
pptpd-logwtmp.c:19:31: error: 'PATH_MAX' undeclared here (not in a function)
   19 | static char pptpd_original_ip[PATH_MAX+1];
      |                               ^~~~~~~~
pptpd-logwtmp.c:22:8: error: unknown type name 'option_t'
   22 | static option_t options[] = {
      |        ^~~~~~~~
pptpd-logwtmp.c:23:3: warning: braces around scalar initializer
   23 |   { "pptpd-original-ip", o_string, pptpd_original_ip,
      |   ^
pptpd-logwtmp.c:23:3: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:23:5: warning: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   23 |   { "pptpd-original-ip", o_string, pptpd_original_ip,
      |     ^~~~~~~~~~~~~~~~~~~
pptpd-logwtmp.c:23:5: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:23:5: error: initializer element is not computable at load time
pptpd-logwtmp.c:23:5: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:23:26: error: 'o_string' undeclared here (not in a function)
   23 |   { "pptpd-original-ip", o_string, pptpd_original_ip,
      |                          ^~~~~~~~
pptpd-logwtmp.c:23:26: warning: excess elements in scalar initializer
pptpd-logwtmp.c:23:26: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:23:36: warning: excess elements in scalar initializer
   23 |   { "pptpd-original-ip", o_string, pptpd_original_ip,
      |                                    ^~~~~~~~~~~~~~~~~
pptpd-logwtmp.c:23:36: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:24:5: warning: excess elements in scalar initializer
   24 |     "Original IP address of the PPTP connection",
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pptpd-logwtmp.c:24:5: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:25:5: error: 'OPT_STATIC' undeclared here (not in a function)
   25 |     OPT_STATIC, NULL, PATH_MAX },
      |     ^~~~~~~~~~
pptpd-logwtmp.c:25:5: warning: excess elements in scalar initializer
pptpd-logwtmp.c:25:5: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:25:17: warning: excess elements in scalar initializer
   25 |     OPT_STATIC, NULL, PATH_MAX },
      |                 ^~~~
pptpd-logwtmp.c:25:17: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:25:23: warning: excess elements in scalar initializer
   25 |     OPT_STATIC, NULL, PATH_MAX },
      |                       ^~~~~~~~
pptpd-logwtmp.c:25:23: note: (near initialization for 'options[0]')
pptpd-logwtmp.c:26:3: warning: braces around scalar initializer
   26 |   { "pptpd-logwtmp-strip-domain", o_bool, &pptpd_logwtmp_strip_domain,
      |   ^
pptpd-logwtmp.c:26:3: note: (near initialization for 'options[1]')
pptpd-logwtmp.c:26:5: warning: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   26 |   { "pptpd-logwtmp-strip-domain", o_bool, &pptpd_logwtmp_strip_domain,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pptpd-logwtmp.c:26:5: note: (near initialization for 'options[1]')
pptpd-logwtmp.c:26:5: error: initializer element is not computable at load time
pptpd-logwtmp.c:26:5: note: (near initialization for 'options[1]')
pptpd-logwtmp.c:26:35: error: 'o_bool' undeclared here (not in a function); did you mean 'bool'?
   26 |   { "pptpd-logwtmp-strip-domain", o_bool, &pptpd_logwtmp_strip_domain,
      |                                   ^~~~~~
      |                                   bool
pptpd-logwtmp.c:26:35: warning: excess elements in scalar initializer
pptpd-logwtmp.c:26:35: note: (near initialization for 'options[1]')
pptpd-logwtmp.c:26:43: warning: excess elements in scalar initializer
   26 |   { "pptpd-logwtmp-strip-domain", o_bool, &pptpd_logwtmp_strip_domain,
      |                                           ^
pptpd-logwtmp.c:26:43: note: (near initialization for 'options[1]')
pptpd-logwtmp.c:27:5: warning: excess elements in scalar initializer
   27 |     "Strip domain from username before logging", OPT_PRIO | 1 },
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pptpd-logwtmp.c:27:5: note: (near initialization for 'options[1]')
pptpd-logwtmp.c:27:50: error: 'OPT_PRIO' undeclared here (not in a function)
   27 |     "Strip domain from username before logging", OPT_PRIO | 1 },
      |                                                  ^~~~~~~~
pptpd-logwtmp.c:27:50: warning: excess elements in scalar initializer
pptpd-logwtmp.c:27:50: note: (near initialization for 'options[1]')
pptpd-logwtmp.c:28:3: warning: braces around scalar initializer
   28 |   { NULL }
      |   ^
pptpd-logwtmp.c:28:3: note: (near initialization for 'options[2]')
pptpd-logwtmp.c:28:5: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   28 |   { NULL }
      |     ^~~~
pptpd-logwtmp.c:28:5: note: (near initialization for 'options[2]')
pptpd-logwtmp.c: In function 'ip_up':
pptpd-logwtmp.c:45:23: error: 'peer_authname' undeclared (first use in this function); did you mean 'ppp_peer_authname'?
   45 |   char *user = reduce(peer_authname);
      |                       ^~~~~~~~~~~~~
      |                       ppp_peer_authname
pptpd-logwtmp.c:45:23: note: each undeclared identifier is reported only once for each function it appears in
pptpd-logwtmp.c:46:7: error: 'debug' undeclared (first use in this function); did you mean 'debug_on'?
   46 |   if (debug)
      |       ^~~~~
      |       debug_on
pptpd-logwtmp.c:47:47: error: 'ifname' undeclared (first use in this function)
   47 |     notice("pptpd-logwtmp.so ip-up %s %s %s", ifname, user,
      |                                               ^~~~~~
pptpd-logwtmp.c:49:3: warning: implicit declaration of function 'logwtmp' [-Wimplicit-function-declaration]
   49 |   logwtmp(ifname, user, pptpd_original_ip);
      |   ^~~~~~~
pptpd-logwtmp.c: In function 'ip_down':
pptpd-logwtmp.c:54:7: error: 'debug' undeclared (first use in this function); did you mean 'debug_on'?
   54 |   if (debug)
      |       ^~~~~
      |       debug_on
pptpd-logwtmp.c:55:43: error: 'ifname' undeclared (first use in this function)
   55 |     notice("pptpd-logwtmp.so ip-down %s", ifname);
      |                                           ^~~~~~
pptpd-logwtmp.c: In function 'plugin_init':
pptpd-logwtmp.c:61:3: warning: implicit declaration of function 'add_options' [-Wimplicit-function-declaration]
   61 |   add_options(options);
      |   ^~~~~~~~~~~
pptpd-logwtmp.c:62:3: warning: implicit declaration of function 'add_notifier' [-Wimplicit-function-declaration]
   62 |   add_notifier(&ip_up_notifier, ip_up, NULL);
      |   ^~~~~~~~~~~~
pptpd-logwtmp.c:62:17: error: 'ip_up_notifier' undeclared (first use in this function)
   62 |   add_notifier(&ip_up_notifier, ip_up, NULL);
      |                 ^~~~~~~~~~~~~~
pptpd-logwtmp.c:63:17: error: 'ip_down_notifier' undeclared (first use in this function)
   63 |   add_notifier(&ip_down_notifier, ip_down, NULL);
      |                 ^~~~~~~~~~~~~~~~
pptpd-logwtmp.c:64:7: error: 'debug' undeclared (first use in this function); did you mean 'debug_on'?
   64 |   if (debug)
      |       ^~~~~
      |       debug_on
Makefile:19: recipe for target 'pptpd-logwtmp.so' failed
make[5]: *** [pptpd-logwtmp.so] Error 1
make[5]: Leaving directory '/mnt/build/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0/plugins'
Makefile:840: recipe for target 'all-local' failed
make[4]: *** [all-local] Error 2
make[4]: Leaving directory '/mnt/build/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0'
Makefile:277: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/mnt/build/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0'
Makefile:69: recipe for target '/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0/.built' failed
make[2]: *** [/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-aarch64_cortex-a53_musl/pptpd-1.4.0/.built] Error 2
make[2]: Leaving directory '/mnt/Data/Sources/openwrt/openwrt-feeds/packages/net/pptpd'
time: package/feeds/packages/pptpd/compile#2.44#0.92#4.12
    ERROR: package/feeds/packages/pptpd failed to build.
package/Makefile:175: recipe for target 'package/feeds/packages/pptpd/compile' failed
make[1]: *** [package/feeds/packages/pptpd/compile] Error 1
make[1]: Leaving directory '/mnt/Data/Sources/openwrt/x-wrt'
/mnt/Data/Sources/openwrt/x-wrt/include/toplevel.mk:246: recipe for target 'package/feeds/packages/pptpd/compile' failed
make: *** [package/feeds/packages/pptpd/compile] Error 2

@curtdept
Copy link
Contributor

@ptpt52 likely have to make an issue in packages but it looks like pptpd has had a 1.5 update out for a while that might address a bunch of this

https://sourceforge.net/p/poptop/git/ci/1.5.0/tree/

@ptpt52
Copy link
Contributor

ptpt52 commented Oct 13, 2024

seems good to upgrade to pptpd 1.5.0

@Neustradamus
Copy link

There is a pptpd patch published 2023-08-08 by @yarda (Fedora/RedHat) here:

Maybe you can comment on the patch ticket and request to @pghmcfc, @quozl from poptop team:

Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Oct 13, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog

Upstreamed patches:
120-debian_ipv6_updown_option.patch [1]
133-fix_sha1_include.patch [2]
140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3]
141-Expand-byte-count-statistics-to-64-bits-298.patch [4]
142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5]
143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6]
144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7]

Suppressed patches:
200-makefile.patch [8]
201-mppe_mppc_1.1.patch [9]
203-opt_flags.patch [10]
300-filter-pcap-includes-lib.patch [11]
511-pptp_cflags.patch [12]
600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13]
610-pppd_compile_fix.patch [14]

[1] ppp-project/ppp@7f8c1a1
[2] ppp-project/ppp@ba7f7e0
[3] ppp-project/ppp@98ec18f
[4] ppp-project/ppp@81ad945
[5] ppp-project/ppp@4a54e34
[6] ppp-project/ppp@44609bf
[7] ppp-project/ppp@089687f
[8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure
[9] enable_microsoft_extensions=yes, MPPC support is removed.
[10] fPIC ignored so far
[11] done by autotools
[12] in main patch for pptp plugin
[13] with_openssl=no, already in upstream ppp-des.c
[14] with_static_pcap=yes from patch 310

Signed-off-by: Sergey Ivanov <[email protected]>

* Fix package hash.
* Fix multilink variant build.
* Fix some compile errors.
* Some code format fixes.
* Refactor commit message.
* Rebase git and fix conflicts.

Co-authored-by: Shiji Yang <[email protected]>
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Oct 13, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog

Suppressed patches:
010-use_target_for_configure.patch [1]
510-pptp_compile_fix.patch [2]
520-u_int_bsd_fix.patch [3]

Upstreamed patches:
330-retain_foreign_default_routes.patch [4]
521-remove_unused_openssl_dep.patch [5]

[1] ppp-project/ppp@e48a9b5
[2] Merged into "500-add-pptp-plugin.patch"
[3] ppp-project/ppp@797cdae
[4] ppp-project/ppp@9856f47
[5] ppp-project/ppp@59342ab

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Oct 13, 2024
The uClibc library support was removed since commit:
57fe7d5 ("toolchain: remove uClibc install stuff")

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Oct 13, 2024
In the original code, the entire time delay of the discovery phase
is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if
discovery phase fails on first attempt. There is a chance to fix
the "Timeout waiting for PADO packets" issue by removing this patch.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Oct 13, 2024
The latest ppp version seems to no longer require these ancient
build fixes.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
@quozl
Copy link

quozl commented Oct 13, 2024

There is a pptpd patch published 2023-08-08 by @yarda (Fedora/RedHat) here:

* https://sourceforge.net/p/poptop/patches/21/

Maybe you can comment on the patch ticket and request to @pghmcfc, @quozl from poptop team:

* https://sourceforge.net/p/poptop/_members/

Noted, no action required. Please do upgrade to pptpd-1.5.0, and if any further changes are required rebase against HEAD and make pull request. https://github.com/quozl/pptpd

liudf0716 pushed a commit to liudf0716/openwrt that referenced this pull request Oct 17, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog

Upstreamed patches:
120-debian_ipv6_updown_option.patch [1]
133-fix_sha1_include.patch [2]
140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3]
141-Expand-byte-count-statistics-to-64-bits-298.patch [4]
142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5]
143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6]
144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7]

Suppressed patches:
200-makefile.patch [8]
201-mppe_mppc_1.1.patch [9]
203-opt_flags.patch [10]
300-filter-pcap-includes-lib.patch [11]
511-pptp_cflags.patch [12]
600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13]
610-pppd_compile_fix.patch [14]

[1] ppp-project/ppp@7f8c1a1
[2] ppp-project/ppp@ba7f7e0
[3] ppp-project/ppp@98ec18f
[4] ppp-project/ppp@81ad945
[5] ppp-project/ppp@4a54e34
[6] ppp-project/ppp@44609bf
[7] ppp-project/ppp@089687f
[8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure
[9] enable_microsoft_extensions=yes, MPPC support is removed.
[10] fPIC ignored so far
[11] done by autotools
[12] in main patch for pptp plugin
[13] with_openssl=no, already in upstream ppp-des.c
[14] with_static_pcap=yes from patch 310

Signed-off-by: Sergey Ivanov <[email protected]>

* Fix package hash.
* Fix multilink variant build.
* Fix some compile errors.
* Some code format fixes.
* Refactor commit message.
* Rebase git and fix conflicts.

Co-authored-by: Shiji Yang <[email protected]>
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
liudf0716 pushed a commit to liudf0716/openwrt that referenced this pull request Oct 17, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog

Suppressed patches:
010-use_target_for_configure.patch [1]
510-pptp_compile_fix.patch [2]
520-u_int_bsd_fix.patch [3]

Upstreamed patches:
330-retain_foreign_default_routes.patch [4]
521-remove_unused_openssl_dep.patch [5]

[1] ppp-project/ppp@e48a9b5
[2] Merged into "500-add-pptp-plugin.patch"
[3] ppp-project/ppp@797cdae
[4] ppp-project/ppp@9856f47
[5] ppp-project/ppp@59342ab

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
liudf0716 pushed a commit to liudf0716/openwrt that referenced this pull request Oct 17, 2024
The uClibc library support was removed since commit:
57fe7d5 ("toolchain: remove uClibc install stuff")

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
liudf0716 pushed a commit to liudf0716/openwrt that referenced this pull request Oct 17, 2024
In the original code, the entire time delay of the discovery phase
is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if
discovery phase fails on first attempt. There is a chance to fix
the "Timeout waiting for PADO packets" issue by removing this patch.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
liudf0716 pushed a commit to liudf0716/openwrt that referenced this pull request Oct 17, 2024
The latest ppp version seems to no longer require these ancient
build fixes.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog

Upstreamed patches:
120-debian_ipv6_updown_option.patch [1]
133-fix_sha1_include.patch [2]
140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3]
141-Expand-byte-count-statistics-to-64-bits-298.patch [4]
142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5]
143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6]
144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7]

Suppressed patches:
200-makefile.patch [8]
201-mppe_mppc_1.1.patch [9]
203-opt_flags.patch [10]
300-filter-pcap-includes-lib.patch [11]
511-pptp_cflags.patch [12]
600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13]
610-pppd_compile_fix.patch [14]

[1] ppp-project/ppp@7f8c1a1
[2] ppp-project/ppp@ba7f7e0
[3] ppp-project/ppp@98ec18f
[4] ppp-project/ppp@81ad945
[5] ppp-project/ppp@4a54e34
[6] ppp-project/ppp@44609bf
[7] ppp-project/ppp@089687f
[8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure
[9] enable_microsoft_extensions=yes, MPPC support is removed.
[10] fPIC ignored so far
[11] done by autotools
[12] in main patch for pptp plugin
[13] with_openssl=no, already in upstream ppp-des.c
[14] with_static_pcap=yes from patch 310

Signed-off-by: Sergey Ivanov <[email protected]>

* Fix package hash.
* Fix multilink variant build.
* Fix some compile errors.
* Some code format fixes.
* Refactor commit message.
* Rebase git and fix conflicts.

Co-authored-by: Shiji Yang <[email protected]>
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog

Suppressed patches:
010-use_target_for_configure.patch [1]
510-pptp_compile_fix.patch [2]
520-u_int_bsd_fix.patch [3]

Upstreamed patches:
330-retain_foreign_default_routes.patch [4]
521-remove_unused_openssl_dep.patch [5]

[1] ppp-project/ppp@e48a9b5
[2] Merged into "500-add-pptp-plugin.patch"
[3] ppp-project/ppp@797cdae
[4] ppp-project/ppp@9856f47
[5] ppp-project/ppp@59342ab

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
The uClibc library support was removed since commit:
57fe7d5 ("toolchain: remove uClibc install stuff")

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
In the original code, the entire time delay of the discovery phase
is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if
discovery phase fails on first attempt. There is a chance to fix
the "Timeout waiting for PADO packets" issue by removing this patch.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
The latest ppp version seems to no longer require these ancient
build fixes.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.0/ChangeLog

Upstreamed patches:
120-debian_ipv6_updown_option.patch [1]
133-fix_sha1_include.patch [2]
140-pppd-Fix-compilation-with-older-glibc-or-kernel-head.patch [3]
141-Expand-byte-count-statistics-to-64-bits-298.patch [4]
142-pppd-Add-support-for-registering-ppp-interface-via-L.patch [5]
143-pppd-Workaround-for-generating-ppp-unit-id-on-Linux-.patch [6]
144-pppd-Retry-registering-interface-when-on-rtnetlink-E.patch [7]

Suppressed patches:
200-makefile.patch [8]
201-mppe_mppc_1.1.patch [9]
203-opt_flags.patch [10]
300-filter-pcap-includes-lib.patch [11]
511-pptp_cflags.patch [12]
600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch [13]
610-pppd_compile_fix.patch [14]

[1] ppp-project/ppp@7f8c1a1
[2] ppp-project/ppp@ba7f7e0
[3] ppp-project/ppp@98ec18f
[4] ppp-project/ppp@81ad945
[5] ppp-project/ppp@4a54e34
[6] ppp-project/ppp@44609bf
[7] ppp-project/ppp@089687f
[8] enable_eaptls=no, with_pcap=no, HAVE_CRYPT_H=1 in configure
[9] enable_microsoft_extensions=yes, MPPC support is removed.
[10] fPIC ignored so far
[11] done by autotools
[12] in main patch for pptp plugin
[13] with_openssl=no, already in upstream ppp-des.c
[14] with_static_pcap=yes from patch 310

Signed-off-by: Sergey Ivanov <[email protected]>

* Fix package hash.
* Fix multilink variant build.
* Fix some compile errors.
* Some code format fixes.
* Refactor commit message.
* Rebase git and fix conflicts.

Co-authored-by: Shiji Yang <[email protected]>
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
ChangeLog:
https://github.com/ppp-project/ppp/blob/ppp-2.5.1/ChangeLog

Suppressed patches:
010-use_target_for_configure.patch [1]
510-pptp_compile_fix.patch [2]
520-u_int_bsd_fix.patch [3]

Upstreamed patches:
330-retain_foreign_default_routes.patch [4]
521-remove_unused_openssl_dep.patch [5]

[1] ppp-project/ppp@e48a9b5
[2] Merged into "500-add-pptp-plugin.patch"
[3] ppp-project/ppp@797cdae
[4] ppp-project/ppp@9856f47
[5] ppp-project/ppp@59342ab

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
The uClibc library support was removed since commit:
57fe7d5 ("toolchain: remove uClibc install stuff")

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
In the original code, the entire time delay of the discovery phase
is only 5+5x2+5x2x2 = 35s. Increasing timeout may be necessary if
discovery phase fails on first attempt. There is a chance to fix
the "Timeout waiting for PADO packets" issue by removing this patch.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Oct 27, 2024
The latest ppp version seems to no longer require these ancient
build fixes.

Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#16605
Signed-off-by: Hauke Mehrtens <[email protected]>
@Neustradamus
Copy link

@DragonBluep: There is a new PPP version: 2.5.2, can you look?
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.