It is currently Mon Oct 21, 2019 6:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Problem cross compiling openl2tp-1.8
PostPosted: Thu Aug 04, 2011 8:32 am 

Joined: Tue Aug 02, 2011 4:19 am
Posts: 1
Hi, I am having problems cross compiling openl2tp-1.8 package. Any help would be greatly appreciated.

#############################
Below is the build errors
#############################
/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-ar: creating libusl.a
make[1]: Leaving directory `/home/user/projects/openl2tp-1.8/usl'
make -C cli EXTRA_CFLAGS=" -DL2TP_ASYNC_RPC"
make[1]: Entering directory `/home/user/projects/openl2tp-1.8/cli'
/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-gcc -c -O -MMD -Wall -Werror -I.. -I /home/user/projects/readline/include cli_lib.c -o cli_lib.o
/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-gcc -c -O -MMD -Wall -Werror -I.. -I /home/user/projects/readline/include cli_readline.c -o cli_readline.o
/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-gcc -c -O -MMD -Wall -Werror -I.. -I /home/user/projects/readline/include cli_util.c -o cli_util.o
/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-ar rus libcli.a cli_lib.o cli_readline.o cli_util.o
/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-ar: creating libcli.a
make[1]: Leaving directory `/home/user/projects/openl2tp-1.8/cli'
make -C plugins EXTRA_CFLAGS=" -DL2TP_ASYNC_RPC"
make[1]: Entering directory `/home/user/projects/openl2tp-1.8/plugins'
/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-gcc -o ppp_unix.so -shared -O -MMD -Wall -isystem ../include -I. -I.. -I../usl -fPIC -DL2TP_ASYNC_RPC ppp_unix.c
ppp_unix.c:48:31: warning: linux/if_pppol2tp.h: No such file or directory
ppp_unix.c: In function 'ppp_unix_socket_connect':
ppp_unix.c:407: error: variable 'sax' has initializer but incomplete type
ppp_unix.c:407: warning: excess elements in struct initializer
ppp_unix.c:407: warning: (near initialization for 'sax')
ppp_unix.c:407: error: storage size of 'sax' isn't known
ppp_unix.c:416: error: 'PX_PROTO_OL2TP' undeclared (first use in this function)
ppp_unix.c:416: error: (Each undeclared identifier is reported only once
ppp_unix.c:416: error: for each function it appears in.)
ppp_unix.c:407: warning: unused variable 'sax'
ppp_unix.c: In function 'ppp_unix_pppd_spawn':
ppp_unix.c:905: error: 'PX_PROTO_OL2TP' undeclared (first use in this function)
ppp_unix.c:969: error: 'PPPOL2TP_MSG_CONTROL' undeclared (first use in this function)
ppp_unix.c:972: error: 'PPPOL2TP_MSG_SEQ' undeclared (first use in this function)
ppp_unix.c:975: error: 'PPPOL2TP_MSG_DATA' undeclared (first use in this function)
ppp_unix.c:978: error: 'PPPOL2TP_MSG_DEBUG' undeclared (first use in this function)
ppp_unix.c: In function 'ppp_unix_session_get_stats':
ppp_unix.c:1463: error: dereferencing pointer to incomplete type
ppp_unix.c:1464: error: dereferencing pointer to incomplete type
ppp_unix.c:1466: error: 'PPPIOCGL2TPSTATS' undeclared (first use in this function)
make[1]: *** [ppp_unix.so] Error 1
make[1]: Leaving directory `/home/user/projects/openl2tp-1.8/plugins'
make: *** [subdir-plugins] Error 2

#################################
Commands used to cross compile
#################################
SDKHOME=/home/user/projects
PPCLINUX=${SDKHOME}/linux-2.6.23.17
export CROSS_COMPILE=/usr/local/powerpc-603-linux-gnu/bin/powerpc-603-linux-gnu-
export CC=${CROSS_COMPILE}gcc
export LD=${CROSS_COMPILE}ld
export RANLIB=${CROSS_COMPILE}ranlib
export AR=${CROSS_COMPILE}ar
export STRIP=${CROSS_COMPILE}strip
export AS=${CROSS_COMPILE}as
export NM=${CROSS_COMPILE}nm
export OBJCOPY=${CROSS_COMPILE}objcopy
export OBJDUMP=${CROSS_COMPILE}objdump
export CXX=${CROSS_COMPILE}g++
export LD_LIB_PATH=/usr/local/powerpc-603-linux-gnu/powerpc-603-linux-gnu/lib

make CROSS_COMPILE=${CROSS_COMPILE} \
READLINE_DIR=${SDKHOME}/readline \
PPPD_SUBDIR=${SDKHOME}/ppp-2.4.5 \
clean all


Top
 Profile  
 
 Post subject: Re: Problem cross compiling openl2tp-1.8
PostPosted: Sat Sep 24, 2011 11:02 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
The kernel headers of your cross-compiler do not have L2TP headers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group