I was trying to build the tdenetwork (from git "20230113_4a1b4b6b") package when I got this error:
[822/1291] Building CXX object kppp/CMakeFiles/kppp.dir/pppstats.cpp.o
FAILED: kppp/CMakeFiles/kppp.dir/pppstats.cpp.o
/bin/c++ -DHAVE_CONFIG_H -I/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/BUILD/kppp -I/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp -I/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/BUILD -I/opt/trinity/include -I/usr/include/tqt3 -I/usr/include/tqt -fdebug-prefix-map=/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b=. -fmacro-prefix-map=/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b=. -fvisibility=hidden -fvisibility-inlines-hidden -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -I/usr/include/tqt3 -I/usr/include/tqt -include tqt.h -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -DNDEBUG -fPIE -MD -MT kppp/CMakeFiles/kppp.dir/pppstats.cpp.o -MF kppp/CMakeFiles/kppp.dir/pppstats.cpp.o.d -o kppp/CMakeFiles/kppp.dir/pppstats.cpp.o -c /usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp: In member function 'bool PPPStats::ifIsUp()':
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:179:16: error: aggregate 'PPPStats::ifIsUp()::ifreq ifr' has incomplete type and cannot be defined
179 | struct ifreq ifr;
| ^~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:213:26: error: 'IFF_UP' was not declared in this scope
213 | if ((ifr.ifr_flags & IFF_UP) && (ifr.ifr_flags & IFF_RUNNING)) {
| ^~~~~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:213:54: error: 'IFF_RUNNING' was not declared in this scope
213 | if ((ifr.ifr_flags & IFF_UP) && (ifr.ifr_flags & IFF_RUNNING)) {
| ^~~~~~~~~~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp: In member function 'bool PPPStats::initStats()':
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:231:16: error: aggregate 'PPPStats::initStats()::ifreq ifr' has incomplete type and cannot be defined
231 | struct ifreq ifr;
| ^~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp: In member function 'bool PPPStats::get_ppp_stats(ppp_stats*)':
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:301:24: error: aggregate 'PPPStats::get_ppp_stats(ppp_stats*)::ifpppstatsreq req' has incomplete type and cannot be defined
301 | struct ifpppstatsreq req;
| ^~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:312:18: error: 'SIOCGPPPSTATS' was not declared in this scope
312 | if (ioctl(s, SIOCGPPPSTATS, &req) < 0) {
| ^~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
^ Return status = 1
Note: the ppp backend in Dragora comes from the "lpppd" package, which builds with Musl.
## Basic information
- TDE version: R14.0.13+ (git)
- Distribution: Dragora -devel
- Hardware: amd64
## Description
I was trying to build the tdenetwork (from git "20230113_4a1b4b6b") package when I got this error:
```
[822/1291] Building CXX object kppp/CMakeFiles/kppp.dir/pppstats.cpp.o
FAILED: kppp/CMakeFiles/kppp.dir/pppstats.cpp.o
/bin/c++ -DHAVE_CONFIG_H -I/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/BUILD/kppp -I/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp -I/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/BUILD -I/opt/trinity/include -I/usr/include/tqt3 -I/usr/include/tqt -fdebug-prefix-map=/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b=. -fmacro-prefix-map=/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b=. -fvisibility=hidden -fvisibility-inlines-hidden -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -I/usr/include/tqt3 -I/usr/include/tqt -include tqt.h -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -DNDEBUG -fPIE -MD -MT kppp/CMakeFiles/kppp.dir/pppstats.cpp.o -MF kppp/CMakeFiles/kppp.dir/pppstats.cpp.o.d -o kppp/CMakeFiles/kppp.dir/pppstats.cpp.o -c /usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp: In member function 'bool PPPStats::ifIsUp()':
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:179:16: error: aggregate 'PPPStats::ifIsUp()::ifreq ifr' has incomplete type and cannot be defined
179 | struct ifreq ifr;
| ^~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:213:26: error: 'IFF_UP' was not declared in this scope
213 | if ((ifr.ifr_flags & IFF_UP) && (ifr.ifr_flags & IFF_RUNNING)) {
| ^~~~~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:213:54: error: 'IFF_RUNNING' was not declared in this scope
213 | if ((ifr.ifr_flags & IFF_UP) && (ifr.ifr_flags & IFF_RUNNING)) {
| ^~~~~~~~~~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp: In member function 'bool PPPStats::initStats()':
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:231:16: error: aggregate 'PPPStats::initStats()::ifreq ifr' has incomplete type and cannot be defined
231 | struct ifreq ifr;
| ^~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp: In member function 'bool PPPStats::get_ppp_stats(ppp_stats*)':
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:301:24: error: aggregate 'PPPStats::get_ppp_stats(ppp_stats*)::ifpppstatsreq req' has incomplete type and cannot be defined
301 | struct ifpppstatsreq req;
| ^~~
/usr/src/qi/build/tdenetwork-20230113_4a1b4b6b/kppp/pppstats.cpp:312:18: error: 'SIOCGPPPSTATS' was not declared in this scope
312 | if (ioctl(s, SIOCGPPPSTATS, &req) < 0) {
| ^~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
^ Return status = 1
```
Note: the ppp backend in Dragora comes from the "lpppd" package, which builds with Musl.
Basic information
Description
I was trying to build the tdenetwork (from git "20230113_4a1b4b6b") package when I got this error:
Note: the ppp backend in Dragora comes from the "lpppd" package, which builds with Musl.