From: Taylor G. <tg...@sy...> - 2005-08-18 23:37:12
|
Greetings fellow Gumstixers, I fixed the problem I had with building pppd. The pppd makefile uses some hardcoded paths to determine if the system has libcrypt. The makefile looks for libcrypt.* in /usr/lib of the build machine. What we want though is for it to find the libcrypt.so.0 in gumstix_buildroot/build_arm_nofpu/root/lib/. To fix this I added a sed line to the pppd.mk, So that=20 $(PPPD_DIR)/.unpacked: $(DL_DIR)/$(PPPD_SOURCE) $(PPPD_CAT) $(DL_DIR)/$(PPPD_SOURCE) | tar -C $(BUILD_DIR) -xf - $(SED) 's/ -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP//' $(PPPD_DIR)/pppd/Makefile.linux $(SED) 's/$(INSTALL) -s/$(INSTALL)/' $(PPPD_DIR)/*/Makefile.linux $(SED) 's/ -o root//' $(PPPD_DIR)/*/Makefile.linux $(SED) 's/ -g daemon//' $(PPPD_DIR)/*/Makefile.linux touch $(PPPD_DIR)/.unpacked Becomes LIBCRYPT_REGEX =3D 's/\/usr\/lib\/libcrypt/$(subst /,\/,$(TARGET_DIR))\/lib\/libcrypt/' $(PPPD_DIR)/.unpacked: $(DL_DIR)/$(PPPD_SOURCE) $(PPPD_CAT) $(DL_DIR)/$(PPPD_SOURCE) | tar -C $(BUILD_DIR) -xf - $(SED) 's/ -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP//' $(PPPD_DIR)/pppd/Makefile.linux $(SED) 's/$$(INSTALL) -s/$$(INSTALL)/' $(PPPD_DIR)/*/Makefile.linux $(SED) 's/ -o root//' $(PPPD_DIR)/*/Makefile.linux $(SED) 's/ -g daemon//' $(PPPD_DIR)/*/Makefile.linux $(SED) $(LIBCRYPT_REGEX) $(PPPD_DIR)/*/Makefile.linux touch $(PPPD_DIR)/.unpacked I also added a $ in front of $(INSTALL) on the fourth line of the .unpacked rule as I'm sure that's what was acutally meant ($(INSTALL) expands to an empty string in pppd.mk). I'll also attach the complete pppd.mk in case anyone is interested... though it seems like I'm the only one playing with ppp at the moment. -Taylor =20 -----Original Message----- From: gum...@li... [mailto:gum...@li...] On Behalf Of Taylor Glenn Sent: Tuesday, August 16, 2005 3:04 PM To: gum...@li... Subject: [Gumstix-users] Problem building pppd Hello, =20 I'm trying to build in PPP support with the latest gumstix-buildroot. I've made the changes to the kernel config to include ppp support, and added pppd to the TARGETS in the top level Makefile. =20 The make breaks when trying to build pppd at: /home/tglenn/gumstix-buildroot/build_arm_nofpu/staging_dir/bin/arm-linux -uclibc-gcc -O2 -pipe -Wall -g -D_linux_=3D1 -DHAVE_PATHS_H -I../include -DCHAPMS=3D1 -DUSE_CRYPT=3D1 -DHAVE_CRYPT_H=3D1 -DHAS_SHADOW -DPLUGIN = -Wl,-E -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o multilink.o tdb.o tty.o md4.o chap_ms.o -ldl auth.o(.text+0x14f4): In function `check_passwd': /home/tglenn/gumstix-buildroot/build_arm_nofpu/ppp-2.4.1/pppd/auth.c:972 : undefined reference to `crypt' auth.o(.text+0x1734):/home/tglenn/gumstix-buildroot/build_arm_nofpu/ppp- 2.4.1/pppd/auth.c:1173: undefined reference to `crypt' chap_ms.o(.text+0x114): In function `DesEncrypt': /home/tglenn/gumstix-buildroot/build_arm_nofpu/ppp-2.4.1/pppd/chap_ms.c: 128: undefined reference to `setkey' chap_ms.o(.text+0x12c):/home/tglenn/gumstix-buildroot/build_arm_nofpu/pp p-2.4.1/pppd/chap_ms.c:135: undefined reference to `encrypt' collect2: ld returned 1 exit status make[2]: *** [pppd] Error 1 make[2]: Leaving directory `/home/tglenn/gumstix-buildroot/build_arm_nofpu/ppp-2.4.1/pppd' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/tglenn/gumstix-buildroot/build_arm_nofpu/ppp-2.4.1' make: *** [/home/tglenn/gumstix-buildroot/build_arm_nofpu/ppp-2.4.1/pppd/pppd] Error 2 It looks to me like it is not finding the crypto library it is expecting. Has anyone gotten pppd to build with the latest gumstix-buildroot? Anyone have any suggestions on how to make it build?=20 Thanks, Taylor =20 =20 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |