[ale] problems compiling ppp-2.2.0e

Steven A. DuChene sad at sduchene.mindspring.com
Fri Mar 29 23:15:56 EST 1996


	OK, I have been struggling with this all day. Yesterday after
	purchasing a sound card for $40 I decided to upgrade my kernel
	before compiling a new one to support the card. I downloaded
	all 4+Mb of 1.3.80 and installed it on my machine. After being
	amazed at the new configuration utility, lxdialog, I realized
	I would need to upgrade to ppp-2.2.0. Fortunately I already had
	the 2.2.0e source here. After unpacking it and reading the docs,
	I tried to compile it. Now I have the new 1.3 kernel but I still
	have a a.out system instead of ELF (GCC-2.6.3 and libc-4.6.27).
	I had to correct some include file problems to get the various
	object files for pppd to compile cleanly but now I am stuck at
	the linking phase for pppd. I get the following error:

ppp-2.2.0e/pppd/sys-linux.c:1852: undefined reference to `__constant_c_and_count_memset'
ppp-2.2.0e/pppd/sys-linux.c:1852: undefined reference to `__constant_c_memset'
ppp-2.2.0e/pppd/sys-linux.c:1852: undefined reference to `__memset_generic'
ppp-2.2.0e/pppd/sys-linux.c:1852: undefined reference to `__memset_generic'

	This is I use the default COPTS, LIBS & COMPILE_FLAGS that are in the
	Makefile.linux provided with the source code. Those are as shown below:

COMPILE_FLAGS = -D_linux_=1 -DHAVE_PATHS_H
COPTS = -g # -O2
LIBS = -lbsd

	
	If I change those to:

COMPILE_FLAGS = -Wall -Wno-unused -D_linux_=1 -DHAVE_PATHS_H
COPTS = -O2 -m486 -fno-strength-reduce
LIBS = -lbsd
	
	I get:

sys-linux.o(.text+0x149a): undefined reference to `___strtok'
sys-linux.o(.text+0x150d): undefined reference to `___strtok'
sys-linux.o(.text+0x1513): undefined reference to `___strtok'
sys-linux.o(.text+0x1583): undefined reference to `___strtok'
sys-linux.o(.text+0x1589): undefined reference to `___strtok'
sys-linux.o(.text+0x15f9): more undefined references to `___strtok' follow


	From past experience this usually indicates the lack of some library
	reference on the linking line however I have been unable to find any
	thing I might be missing. The memset stuff is found in
	/usr/include/asm/string.h and the strtok is defined in
	/usr/include/linux/string.h but as to what library carries these symbols
	I am at a loss to discover. I would assume libc since that is all the
	2.1.2d version of pppd is linked against. Can anyone suggest a possible
	solution?
-- 
Steven A. DuChene       Linux Weenie!    http://www.ysu.edu/~sduchene

		isollae - loneliness in the face of beauty
		    -- Sean Russell, "World Without End"






More information about the Ale mailing list