Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828772 - net-dialup/ppp-2.4.9-r5 - sys-linux.c: fatal error: linux/ipx.h: No such file or directory
Summary: net-dialup/ppp-2.4.9-r5 - sys-linux.c: fatal error: linux/ipx.h: No such file...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-10 11:31 UTC by Toralf Förster
Modified: 2022-05-05 08:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,14.25 KB, text/plain)
2021-12-10 11:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,38.42 KB, text/plain)
2021-12-10 11:31 UTC, Toralf Förster
Details
environment (environment,98.87 KB, text/plain)
2021-12-10 11:31 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.45 KB, application/x-bzip)
2021-12-10 11:31 UTC, Toralf Förster
Details
net-dialup:ppp-2.4.9-r5:20211210-023349.log (net-dialup:ppp-2.4.9-r5:20211210-023349.log,17.40 KB, text/plain)
2021-12-10 11:31 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,26.17 KB, application/x-bzip)
2021-12-10 11:31 UTC, Toralf Förster
Details
remove IPX support from ebuild, allowing use on elibc_musl systems (file_828772.txt,771 bytes, patch)
2022-05-04 22:49 UTC, Dillon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-10 11:31:13 UTC
too long lines were shrinked:

x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -D_GNU_SOURCE -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -pipe -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DUSE_EAPTLS=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -I/usr/include/openssl -DUSE_PAM -DHAVE_MULTILINK -DUSE_TDB=1 -DPLU
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -D_GNU_SOURCE -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -pipe -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DUSE_EAPTLS=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -I/usr/include/openssl -DUSE_PAM -DHAVE_MULTILINK -DUSE_TDB=1 -DPLU
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -D_GNU_SOURCE -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -pipe -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DUSE_EAPTLS=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -I/usr/include/openssl -DUSE_PAM -DHAVE_MULTILINK -DUSE_TDB=1 -DPLU
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -D_GNU_SOURCE -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -pipe -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DUSE_EAPTLS=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -I/usr/include/openssl -DUSE_PAM -DHAVE_MULTILINK -DUSE_TDB=1 -DPLU
sys-linux.c:140:10: fatal error: linux/ipx.h: No such file or directory
  140 | #include <linux/ipx.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[1]: *** [<builtin>: sys-linux.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211209-163207

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 3a8001fb20b7e90610fb389201068af0d8d983cd
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 01:35:10 2021 +0000

    2021-12-10 01:35:09 UTC

emerge -qpvO net-dialup/ppp
[ebuild  N    ] net-dialup/ppp-2.4.9-r5  USE="activefilter eap-tls ipv6 pam -atm -dhcp -gtk -radius (-systemd)"
Comment 1 Toralf Förster gentoo-dev 2021-12-10 11:31:14 UTC
Created attachment 758049 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 11:31:15 UTC
Created attachment 758050 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-10 11:31:17 UTC
Created attachment 758051 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-10 11:31:18 UTC
Created attachment 758052 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-10 11:31:19 UTC
Created attachment 758053 [details]
net-dialup:ppp-2.4.9-r5:20211210-023349.log
Comment 6 Toralf Förster gentoo-dev 2021-12-10 11:31:20 UTC
Created attachment 758054 [details]
temp.tar.bz2
Comment 7 Mike Gilbert gentoo-dev 2021-12-11 15:45:43 UTC
linux/ipx.h was dropped from the kernel sources in v5.15.
Comment 8 Mike Gilbert gentoo-dev 2021-12-11 15:52:09 UTC
It looks like glibc has its own copy in netipx/ipx.h. This does not exist on musl.

A solution would be to disable the relevant code in pppd by unsetting the IPX_CHANGE macro.
Comment 9 Dillon 2022-05-04 22:49:55 UTC
Created attachment 776795 [details, diff]
remove IPX support from ebuild, allowing use on elibc_musl systems

IPX Support has been removed from kernel >= 5.15, so drop support from ebuild
Comment 10 Larry the Git Cow gentoo-dev 2022-05-05 08:36:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efbe724d52da612394800212d386e4d82de2994a

commit efbe724d52da612394800212d386e4d82de2994a
Author:     Dillon <heavenly_battle.wg0in@simplelogin.co>
AuthorDate: 2022-05-04 22:58:02 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2022-05-05 08:36:04 +0000

    net-dialup/ppp bug #828772 Remove IPX
    
    Remove IPX, allowing build on musl systems.
    Note that IPX support has been removed from kernel >= 5.15
    
    Closes: https://bugs.gentoo.org/828772
    Signed-off-by: Dillon Butler <developer@vanish-media.xyz>
    Closes: https://github.com/gentoo/gentoo/pull/25331
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-dialup/ppp/ppp-2.4.9-r6.ebuild | 253 +++++++++++++++++++++++++++++++++++++
 1 file changed, 253 insertions(+)