lkml.org 
[lkml]   [1996]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ppp-2.2.0e or f compile failed
Put this #ifdef in /usr/include/asm/string.h

#ifdef __KERNEL__
... strtok ...
...
#endif

That's due to a Linus optimization of strtok, that uses ___strtok, that's
only in kernel code. With this ifdef you use the libc strtok.

Arnaldo Carvalho de Melo acme@conectiva.com.br
R&D Director http://conectiva.com.br
Conectiva Internet Solutions

On Thu, 11 Apr 1996, Jason Eggleston wrote:

jegglest>I have all of the latest packages in packages/GCC at tsx-11. (chose libc
jegglest>5.3.9) I'm using the pp87 kernel.
jegglest>
jegglest>I get this error compiling pppd fbeta5:
jegglest>
jegglest>sys-linux.o: In function `read_route_table':
jegglest>sys-linux.o(.text+0x108a): undefined reference to `___strtok'
jegglest>sys-linux.o(.text+0x10fa): undefined reference to `___strtok'
jegglest>sys-linux.o(.text+0x1103): undefined reference to `___strtok'
jegglest>sys-linux.o(.text+0x1170): undefined reference to `___strtok'
jegglest>sys-linux.o(.text+0x1179): undefined reference to `___strtok'
jegglest>sys-linux.o(.text+0x11e6): more undefined references to `___strtok' follow
jegglest>make[1]: *** [pppd] Error 1
jegglest>make[1]: Leaving directory `/usr/src/ppp-2.2.0f/pppd'
jegglest>make: *** [all] Error 2
jegglest>
jegglest>Does anyone have any ideas?
jegglest>
jegglest>Jason Eggleston
jegglest>http://www-scf.usc.edu/~jegglest/
jegglest>
jegglest>
jegglest>



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