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

2.5.2 - link failure when multilink is disabled #541

Open
kanavin opened this issue Jan 3, 2025 · 6 comments
Open

2.5.2 - link failure when multilink is disabled #541

kanavin opened this issue Jan 3, 2025 · 6 comments

Comments

@kanavin
Copy link
Contributor

kanavin commented Jan 3, 2025

Specifically, this happens:

| /bin/bash ../libtool  --tag=CC   --mode=link x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot  -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot=  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot=  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native=  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native=  -pipe  -Wl,-E   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot=  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot=  -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native=  -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native=  -Wl,-z,relro,-z,now -o pppd pppd-auth.o pppd-ccp.o pppd-chap-md5.o pppd-chap.o pppd-demand.o pppd-eap.o pppd-ecp.o pppd-fsm.o pppd-ipcp.o pppd-lcp.o pppd-magic.o pppd-main.o pppd-options.o pppd-session.o pppd-tty.o pppd-upap.o pppd-utils.o pppd-sys-linux.o  pppd-chap_ms.o pppd-crypto_ms.o   pppd-mppe.o   pppd-ipv6cp.o pppd-eui64.o pppd-eap-tls.o pppd-tls.o  pppd-peap.o -lcrypt   -lpcap -ldl -lpam -ldl libppp_crypto.la
| libtool: link: x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot -O2 -g -fcanon-prefix-map -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2 -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2 -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2 -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2 -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot= -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot= -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native= -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native= -pipe -Wl,-E -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2 -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/ppp-2.5.2=/usr/src/debug/ppp/2.5.2 -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2 -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/build=/usr/src/debug/ppp/2.5.2 -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot= -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot= -fdebug-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native= -fmacro-prefix-map=/srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native= -Wl,-z -Wl,relro -Wl,-z -Wl,now -o pppd pppd-auth.o pppd-ccp.o pppd-chap-md5.o pppd-chap.o pppd-demand.o pppd-eap.o pppd-ecp.o pppd-fsm.o pppd-ipcp.o pppd-lcp.o pppd-magic.o pppd-main.o pppd-options.o pppd-session.o pppd-tty.o pppd-upap.o pppd-utils.o pppd-sys-linux.o pppd-chap_ms.o pppd-crypto_ms.o pppd-mppe.o pppd-ipv6cp.o pppd-eui64.o pppd-eap-tls.o pppd-tls.o pppd-peap.o  -lcrypt -lpcap -lpam -ldl ./.libs/libppp_crypto.a -lssl -lcrypto
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-auth.o: warning: relocation against `multilink_join_hook' in read-only section `.text'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `update_db_entry':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:2323:(.text+0x254): undefined reference to `tdb_store'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:2324:(.text+0x288): undefined reference to `tdb_errorstr'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:2323:(.text+0x2eb): undefined reference to `tdb_store'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:2324:(.text+0x2ff): undefined reference to `tdb_errorstr'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `add_db_key':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:2343:(.text+0x550): undefined reference to `tdb_store'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:2344:(.text+0x570): undefined reference to `tdb_errorstr'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `ppp_safe_fork':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:1715:(.text+0x1190): undefined reference to `tdb_close'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `die':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:1296:(.text+0x20c3): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:1296:(.text+0x20d2): undefined reference to `mp_master'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `cleanup_db':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:2372:(.text+0x213e): undefined reference to `tdb_delete'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `delete_db_key':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:2357:(.text+0x219e): undefined reference to `tdb_delete'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:2357:(.text+0x23fe): undefined reference to `tdb_delete'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:2357:(.text+0x2ac4): undefined reference to `tdb_delete'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `lock_db':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:2278:(.text+0x2af4): undefined reference to `tdb_chainlock'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `unlock_db':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:2292:(.text+0x2b14): undefined reference to `tdb_chainunlock'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `main':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:472:(.text.startup+0x337): undefined reference to `mp_check_options'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/main.c:506:(.text.startup+0x41e): undefined reference to `tdb_open'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `get_input':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:1146:(.text.startup+0x9b3): undefined reference to `mp_master'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `main':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:617:(.text.startup+0xc77): undefined reference to `mp_bundle_terminated'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-main.o: in function `get_input':
| /usr/src/debug/ppp/2.5.2/pppd/main.c:1148:(.text.startup+0xc8f): undefined reference to `mp_bundle_terminated'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-auth.o: in function `link_terminated':
| /usr/src/debug/ppp/2.5.2/pppd/auth.c:718:(.text+0x1d3d): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/auth.c:746:(.text+0x1d83): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/auth.c:760:(.text+0x1dd3): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/auth.c:760:(.text+0x1dde): undefined reference to `mp_master'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/auth.c:740:(.text+0x1e6d): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/auth.c:729:(.text+0x1e8b): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/auth.c:741:(.text+0x1ee1): undefined reference to `mp_exit_bundle'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-auth.o: in function `link_down':
| /usr/src/debug/ppp/2.5.2/pppd/auth.c:786:(.text+0x1fa0): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-auth.o: in function `start_networks':
| /usr/src/debug/ppp/2.5.2/pppd/auth.c:968:(.text+0x2169): undefined reference to `mp_join_bundle'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: /usr/src/debug/ppp/2.5.2/pppd/auth.c:969:(.text+0x2178): undefined reference to `multilink_join_hook'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-auth.o: in function `link_established':
| /usr/src/debug/ppp/2.5.2/pppd/auth.c:833:(.text+0x32af): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-auth.o: in function `link_terminated':
| /usr/src/debug/ppp/2.5.2/pppd/auth.c:766:(.text+0x1ebd): undefined reference to `mp_bundle_terminated'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-lcp.o: in function `printendpoint':
| /usr/src/debug/ppp/2.5.2/pppd/lcp.c:343:(.text+0x1054): undefined reference to `epdisc_to_str'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-lcp.o: in function `lcp_printpkt':
| /usr/src/debug/ppp/2.5.2/pppd/lcp.c:2129:(.text+0x3aa1): undefined reference to `epdisc_to_str'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-lcp.o: in function `setendpoint':
| /usr/src/debug/ppp/2.5.2/pppd/lcp.c:332:(.text+0x4114): undefined reference to `str_to_epdisc'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-sys-linux.o: in function `ppp_generic_disestablish':
| /usr/src/debug/ppp/2.5.2/pppd/sys-linux.c:789:(.text+0x2c3b): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: pppd-sys-linux.o: in function `read_packet':
| /usr/src/debug/ppp/2.5.2/pppd/sys-linux.c:1495:(.text+0x2eda): undefined reference to `mp_on'
| /srv/storage/alex/yocto/build-64-alt/tmp/work/core2-64-poky-linux/ppp/2.5.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/ld: warning: creating DT_TEXTREL in a PIE
| collect2: error: ld returned 1 exit status
@paulusmack
Copy link
Collaborator

Weird, I can't reproduce that here. If you do make clean; make does it still happen? What does grep PPP_WITH_MULTILINK pppd/config.h show?

@kanavin
Copy link
Contributor Author

kanavin commented Jan 4, 2025

ppp-multilink-broken.tar.gz

To (hopefully) let you get to the bottom of the problem quicker, I have attached the artifacts from the build directory where the fail happens - source tree in 2.5.2/ppp-2.5.2, build tree in 2.5.2/build, build logs in 2.5.2/temp/log.*

We're building with gcc 14.2.

brainhoard-github pushed a commit to distro-core-curated-mirrors/poky-contrib that referenced this issue Jan 6, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 0b2f41d4763ef4035b2718f67d25584d2f9e59fc)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 0b2f41d4763ef4035b2718f67d25584d2f9e59fc)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: a7a611f264956522858059960657914681849403)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: a7a611f264956522858059960657914681849403)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 5d62401d3273e2f4d95272bce6a5ac1e41a99cc2)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 8, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 5d62401d3273e2f4d95272bce6a5ac1e41a99cc2)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 5d62401d3273e2f4d95272bce6a5ac1e41a99cc2)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 5d62401d3273e2f4d95272bce6a5ac1e41a99cc2)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 5d62401d3273e2f4d95272bce6a5ac1e41a99cc2)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 5d62401d3273e2f4d95272bce6a5ac1e41a99cc2)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: 890badc6e450051f6e185ff87f54222617c2419c)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: acf3db7a52df28bba833236e464b73592634cd05)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Jan 9, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 10, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: acf3db7a52df28bba833236e464b73592634cd05)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to yoctoproject/poky that referenced this issue Jan 10, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: e6ea3ade8f3977ec93c68229d2660bbc335a80a6)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Jan 10, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
daregit pushed a commit to daregit/yocto-combined that referenced this issue Jan 10, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: e6ea3ade8f3977ec93c68229d2660bbc335a80a6)

Signed-off-by: Alexander Kanavin <alexlinutronix.de>
Signed-off-by: Richard Purdie <richard.purdielinuxfoundation.org>
daregit pushed a commit to daregit/yocto-combined that referenced this issue Jan 13, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

(From OE-Core rev: e6ea3ade8f3977ec93c68229d2660bbc335a80a6)

Signed-off-by: Alexander Kanavin <alexlinutronix.de>
Signed-off-by: Richard Purdie <richard.purdielinuxfoundation.org>
brainhoard-github pushed a commit to distro-core-curated-mirrors/poky-contrib that referenced this issue Jan 14, 2025
License-Update: BSD items clarified to be 2-clause:
ppp-project/ppp@d4ec06e
passprompt plugin removed upstream.

Add an enable a multilink option, as the build breaks without it at the linking
step (upstream presumably didn't test that it works): ppp-project/ppp#541

Signed-off-by: Alexander Kanavin <[email protected]>
@Neustradamus
Copy link
Member

@paulusmack: Have you seen the latest @kanavin comment?

@Neustradamus
Copy link
Member

@jkroonza: What do you think about this ticket?

@jkroonza
Copy link
Contributor

@jkroonza: What do you think about this ticket?

Looks like link failure issue. Will take a peek, I recall having had run-time issues with multilink before on openl2tpd but this is different.

@jkroonza
Copy link
Contributor

I can't reproduce either. This does look like a potential cross-compile issue though (--build=x86_64-linux != --{host,target}=x86_64-pokey-linux). Looks like it's being compiled into a sysroot, which means that possibly headers are installed and available but not the libraries? This means it's all x86_64, but technically is still a cross-compile.

@kanavin you make it sound like merely changing --disable-multilink to --enable-multilink makes the build work?

At least mp_master (from all of the symbols) does seem to relate specifically to multilink, there are two definitions in multilink.h.

The problem seems to be that some sources were built with PPP_WITH_MULTILINK set (which would cause muiltilink.h to reference the definitions in multilink.c), and this was then later changed, and without cleaning the tree a rebuild then follows that doesn't attempt to link in multilink.c.

Similar consideration for tbd (--with-tdb, but that's implicitly enabled by --with-multilink in this case I believe).

@kanavin can you please make sure you build in a clean build location?

I'd say that the pppol2tp might relate but that's not what you're busy linking here when the failure happens (it does #include <pppd/????> for pppd includes though, which I suspect should be #include "????" rather).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants