[Buildroot] pppd breaks build without libutils
Arnout Vandecappelle
arnout at mind.be
Tue Sep 27 21:33:33 UTC 2016
On 26-09-16 01:39, Cassiano Martin wrote:
> Sure, my fault not being version specific.
> Im currently running a git cloned version (Buildroot
> 2016.08-git-01556-ge8c18f2-dirty)
> and I'm using a pre-built toolchain from realtek. Target is MIPS32 bit LSB.
> So far, I get this when compiling.
>
> ude '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1
> -DHAVE_LOGWTMP=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DINET6=1
> -DMAXOCTETS -Wl,-E -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o
> md5.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o tty.o
> eap.o chap-md5.o session.o md4.o chap_ms.o sha1.o pppcrypt.o multilink.o tdb.o
> spinlock.o ipv6cp.o eui64.o -lcrypt -lutil -ldl
> /home/cassiano/projects/oiw-2441apgn/realtek/rsdk-4.6.4-4181-EB-3.10-u0.9.33-m32-150324/bin/../lib/gcc/mips-linux-uclibc/4.6.4/../../../../mips-linux-uclibc/bin/ld:
> cannot find -lutil
Looks like the Realtek toolchain is not compatible with Buildroot assumptions.
libutil is part of the toolchain. I guess Realtek configures uClibc without
UCLIBC_HAS_LIBUTIL.
Buildroot cannot support all possible uClibc configurations for all packages.
Instead, we take minimal assumptions about the uClibc configuration - basically
package/uclibc/uClibc-ng.config. If you have something less than that, then some
packages may fail.
The workaround you propose is basically disabling wtmp support. It's not really
acceptable to do that for 95% of the users who actually do have this in their
toolchain.
We should probably add a FAQ entry for this kind of issue.
Regards,
Arnout
> collect2: ld returned 1 exit status
> Makefile:217: recipe for target 'pppd' failed
> make[2]: *** [pppd] Error 1
> make[2]: Leaving directory
> '/home/cassiano/projects/oiw-2441apgn/output/build/pppd-2.4.7/pppd'
> Makefile:13: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> '/home/cassiano/projects/oiw-2441apgn/output/build/pppd-2.4.7'
> package/pkg-generic.mk:201 <http://pkg-generic.mk:201>: recipe for target
> '/home/cassiano/projects/oiw-2441apgn/output/build/pppd-2.4.7/.stamp_built' failed
>
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list