lkml.org 
[lkml]   [1996]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Can't build ppp since 1.3.78 (I'm trying hard)
On Thu, 28 Mar 1996, Jeff Coy Jr. wrote:

> On Thu, 28 Mar 1996, B. James Phillippe wrote:
>
> > Hi,
> >
> > file /usr/include/linux/netdevices.h. I simply (stupidly) added that
> > include file to the file pppd/sys-linux.c (which is the only file I'm
> > having trouble with). But then I get a clean build to object code, but at
> > link time I get a nest of undefined references to the memset functions
> > that are defined in /usr/include/asm/string.h (__memset_generic and
> > friends). I again tried adding this file to the includes, but this time
> > had no success (no difference).
> >
> you were very close. don't include <asm/string.h>, instead include
> <linux/string.h>. and be sure to use -O (or -O2, or -O3).

I tried what you said to do, and it certainly did get rid of all the
undefined references to the memset function family. I still did not
succeed in getting a link, however. There is one new undefined reference
that I (as before) cannot understand. This is the output I get from a
clean make...

cd chat; make all
make[1]: Entering directory `/usr/src/ppp-2.2.0e/chat'
cc -c -O2 -DTERMIOS -DPIDSTRING -DSIGTYPE=void -UNO_SLEEP -DFNDELAY=O_NDELAY -o chat.o chat.c
cc -s -O2 -o chat chat.o
make[1]: Leaving directory `/usr/src/ppp-2.2.0e/chat'
cd pppd; make all
make[1]: Entering directory `/usr/src/ppp-2.2.0e/pppd'
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c main.c -o main.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c magic.c -o magic.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c fsm.c -o fsm.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c lcp.c -o lcp.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c ipcp.c -o ipcp.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c upap.c -o upap.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c chap.c -o chap.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c md5.c -o md5.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c ccp.c -o ccp.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c auth.c -o auth.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c options.c -o options.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -c sys-linux.c -o sys-linux.o
cc -O3 -D_linux_=1 -DHAVE_PATHS_H -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o auth.o options.o sys-linux.o -lbsd # -Wl,-M >pppd.map
sys-linux.o: In function `cifaddr':
sys-linux.o(.text+0x131a): undefined reference to `___strtok'
sys-linux.o(.text+0x138a): undefined reference to `___strtok'
sys-linux.o(.text+0x1393): undefined reference to `___strtok'
sys-linux.o(.text+0x1400): undefined reference to `___strtok'
sys-linux.o(.text+0x1409): undefined reference to `___strtok'
sys-linux.o(.text+0x1476): more undefined references to `___strtok' follow
make[1]: *** [pppd] Error 1
make[1]: Leaving directory `/usr/src/ppp-2.2.0e/pppd'
make: *** [all] Error 2

I have 'grep -l ___strtok' over my entire hard drive, and can't find
anything else to try. It looks like ___strtok is defined as a char *,
set equal to NULL, in <linux/string.h>. And I have added that to my
includes in sys-linux.c. But still, no go. Do you know what might be
causing this?

Thanks,

-B

--
# B. James Phillippe # System Administrator, eternity.aa.net #
# System Technician, Zebu Systems, LLC (http://www.zebu.com) #
# bryan@eternity.aa.net -or- http://eternity.aa.net/~bryan #
# (Ab)using Linux since coronation (1.1.59). # Thanks Linus! #



\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.057 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site