Modify

Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#4702 closed defect (worksforme)

pppd fails to build

Reported by: joju@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: pppd build broken Cc:

Description

Hi,

I have serveral build machines here, I try to build Kamikaze 8.09,
but it fails to build pppd.

]$ make package/ppp/compile V=99                
make[1]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel'                                  
make[2]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/package/linux-atm'                
make[2]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/package/linux-atm'                 
make[2]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/package/libpcap'                  
make[2]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/package/libpcap'                   
make[2]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/package/ppp'                      
rm -rf /.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/ipkg-install                 
mkdir -p /.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/ipkg-install/usr           
make -C /.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3 AR=mipsel-linux-uclibc-ar AS
="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mipsel-linux
-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX="mipsel-l
inux-uclibc-g++" RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip OBJCOPY=mipsel-linux-uclib
c-objcopy OBJDUMP=mipsel-linux-uclibc-objdump SIZE=mipsel-linux-uclibc-size COPTS="-Os -pipe -mips32 -mtune=m
ips32 -funit-at-a-time -fhonour-copts" PRECOMPILED_FILTER=1 STAGING_DIR="/.hostpart/user/joju/src/kamikaze_8.
09-mipsel/staging_dir/mipsel" DESTDIR="/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4
.3/ipkg-install/usr" all install                                                                             
make[3]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3'       
cd chat; make -w all                                                                                         
make[4]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/chat'  
make[4]: Nothing to be done for `all'.                                                                       
make[4]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/chat'   
cd pppd/plugins; make -w all                                                                                 
make[4]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/pl
ugins'                                                                                                       
for d in rp-pppoe pppoatm radius; do make -w -C $d all; done                                                 
make[5]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/pl
ugins/rp-pppoe'                                                                                              
make[5]: Nothing to be done for `all'.                                                                       
make[5]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/plu
gins/rp-pppoe'                                                                                               
make[5]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/pl
ugins/pppoatm'                                                                                               
make[5]: Nothing to be done for `all'.                                                                       
make[5]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/plu
gins/pppoatm'                                                                                                
make[5]: Entering directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/pl
ugins/radius'                                                                                                
mipsel-linux-uclibc-gcc -I. -I../.. -I../../../include -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhon
our-copts -fPIC -DRC_LOG_FACILITY=LOG_DAEMON -DCHAPMS=1 -DMPPE=1 -DMAXOCTETS=1   -c -o sendserver.o sendserve
r.c                                                                                                          
sendserver.c: In function 'rc_random_vector':                                                                
sendserver.c:493: error: '_PATH_DEV_URANDOM' undeclared (first use in this function)                         
sendserver.c:493: error: (Each undeclared identifier is reported only once                                   
sendserver.c:493: error: for each function it appears in.)                                                   
make[5]: *** [sendserver.o] Error 1                                                                          
make[5]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/plu
gins/radius'                                                                                                 
make[4]: *** [all] Error 2                                                                                   
make[4]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/pppd/plu
gins'                                                                                                        
make[3]: *** [all] Error 2
make[3]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3'
make[2]: *** [/.hostpart/user/joju/src/kamikaze_8.09-mipsel/build_dir/mipsel/ppp-2.4.3/.built] Error 2
make[2]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel/package/ppp'
make[1]: *** [package/ppp/compile] Error 2
make[1]: Leaving directory `/.hostpart/user/joju/src/kamikaze_8.09-mipsel'
make: *** [package/ppp/compile] Error 2

This might be fixed by a small patch:

Index: package/ppp/patches/211-radius-sendserver-fix.patch
===================================================================
--- package/ppp/patches/211-radius-sendserver-fix.patch (revision 0)
+++ package/ppp/patches/211-radius-sendserver-fix.patch (revision 0)
@@ -0,0 +1,11 @@
+--- ppp-2.4.3.orig/pppd/plugins/radius/sendserver.c    2004-11-14 08:26:26.000000000 +0100
++++ ppp-2.4.3/pppd/plugins/radius/sendserver.c 2008-12-13 13:47:31.148710712 +0100
+@@ -16,7 +16,7 @@
+ 
+ #include <includes.h>
+ #include <radiusclient.h>
+-#include <pathnames.h>
++#include "pathnames.h"
+ 
+ static void rc_random_vector (unsigned char *);
+ static int rc_check_reply (AUTH_HDR *, int, char *, unsigned char *, unsigned char);

cya

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by joju@…

Hi,

solved this issue.

It is no good if C_INCLUDE_PATH, and C_INCLUDE ist set.
Just empty and the export these environment variables.

The this issue is gone.

Perhaps you can uset these vars in the build environment to be sure.

keep up the good work

comment:2 Changed 9 years ago by florian

  • Resolution set to worksforme
  • Status changed from new to closed

We assume the environment variables not to be somehow modified when building OpenWrt.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.