Pps-tools: ppsldisc.c Undeclared Identifier Cross-Compiling on Debian 11 (Bullseye)

ppsldisc.c: In function 'main':
ppsldisc.c:39:14: error: 'N_PPS' undeclared (first use in this function); did you mean 'N_PPP'?
  int ldisc = N_PPS;
              ^~~~~
              N_PPP
ppsldisc.c:39:14: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [<builtin>: ppsldisc.o] Error 1

Please post output of

ubus call system board

From your OpenWrt device

and

lsb_release -a

from build system

The ubus command isn't available on my OpenWRT device.

From the build system:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

This clearly indicates that your device is not running firmware from the official OpenWrt project. Please reach out to the vendor of the device and/or the provider/maintainer of the firmware you are using.

2 Likes

Come on… this is a compiling question… can’t we at least determine what version is being compiled or what build system before closing the door?

pps-tools is an OpenWrt package.
The fact N_PPS is not defined and it exists in one place in the kernel (linux/tty.h) tells me that CONFIG_PPS is perhaps not turned on in the kernel.
Or it’s a bad attempt at cross compiling.

The reason we can confidently say that this is not official OpenWrt (and not simply an issue of compiling source from the official project) is this:

That said, if the OP can provide the brand+model of their device, maybe OpenWrt (official) is available.

This happens when build system is far apart from OpenWrt SDK in time, modiifications must be made in OEM SDK < OpenWrt 18, absence of ubus means it might even be some other buildroot...

This topic was automatically closed after 17 hours. New replies are no longer allowed.