Cross compiling pppd 2.4.1 with ELDK 2.0
tordson at algonet.se
Thu Nov 21 08:53:15 EST 2002
I am currently trying to crosscompile pppd with the ELDK 2.0 toolchain.
To build in a native Intel RedHat 7.2 environment was no problem.
However, when trying to crosscompile it seems that there are more things than CC and the PATH to be altered. By changing the include file search path, I was able to build chat, but pppd seems to be a little harder. Is there anyone out there that might have some clues?
[root at ronja ppp-2.4.1]# printenv | grep PATH
[root at ronja ppp-2.4.1]# export CC=ppc_8xx-gcc
[root at ronja ppp-2.4.1]# make
cd chat; make all
make: Entering directory `/home/tord/proj/StarSafe/pppd/ppp-2.4.1/chat'
ppc_8xx-gcc -c -O2 -g -pipe -DTERMIOS -DSIGTYPE=void
-UNO_SLEEP -DFNDELAY=O_NDELAY -o chat
In file included from /opt/eldk/usr/../ppc_8xx/usr/include/signal.h:307,
/opt/eldk/usr/../ppc_8xx/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No
such file or directory
In file included from /opt/eldk/usr/../ppc_8xx/usr/include/errno.h:36,
/opt/eldk/usr/../ppc_8xx/usr/include/bits/errno.h:25: linux/errno.h: No such fil
e or directory
In file included from chat.c:97:
/opt/eldk/usr/../ppc_8xx/usr/include/signal.h:310: warning: `struct sigcontext'
declared inside parameter list
/opt/eldk/usr/../ppc_8xx/usr/include/signal.h:310: warning: its scope is only th
is definition or declaration, which is probably not what you want.
chat.c: In function `write_char':
chat.c:1257: `EINTR' undeclared (first use in this function)
chat.c:1257: (Each undeclared identifier is reported only once
chat.c:1257: for each function it appears in.)
chat.c:1257: `EWOULDBLOCK' undeclared (first use in this function)
make: *** [chat.o] Error 1
make: Leaving directory `/home/tord/proj/star/pppd/ppp-2.4.1/chat'
make: *** [all] Error 2
[root at ronja ppp-2.4.1]#
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded