From rrarankurissi at edgewaternetworks.com Wed Feb 11 04:17:01 2015 From: rrarankurissi at edgewaternetworks.com (Rajeesh Rarankurissi) Date: Wed, 11 Feb 2015 17:47:01 +0530 Subject: [Xorp-hackers] Error xorp 1.8.5src Message-ID: Hi, I am trying to compile xorp. While compilling xorp 1.8.5-src I am geting errors. what might be the reason GCC I am using 4.8.3 gcc -o obj/i686-pc-linux-gnu/libxorp/random.os -c -O2 -g3 -Werror -W -Wall -Wwrite-strings -Wbad-function-cast -Wmissing-prototypes -Wcast-qual -Wmissing-declarations -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -pipe -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.5 -Iobj/i686-pc-linux-gnu -I. -I. libxorp/random.c libxorp/random.c: In function ?xorp_srandomdev?: libxorp/random.c:393:15: error: ?junk_seed[1]? may be used uninitialized in this function [-Werror=maybe-uninitialized] xorp_srandom((getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec ^ junk); ^ cc1: all warnings being treated as errors scons: *** [obj/i686-pc-linux-gnu/libxorp/random.os] Error 1 scons: building terminated because of errors. Thanks Rajeesh Rarankurissi -- This electronic message, including attachments, is intended only for the use of the individual or company named above or to which it is addressed. The information contained in this message shall be considered confidential and proprietary, and may include confidential work product. If you are not the intended recipient, please be aware that any unauthorized use, dissemination, distribution or copying of this message is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and deleting this email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20150211/fc4ba2f0/attachment.html From greearb at candelatech.com Wed Feb 11 07:36:55 2015 From: greearb at candelatech.com (Ben Greear) Date: Wed, 11 Feb 2015 07:36:55 -0800 Subject: [Xorp-hackers] Error xorp 1.8.5src In-Reply-To: References: Message-ID: <54DB7717.3080405@candelatech.com> Try using the latest from git: http://www.xorp.org/scm.html Thanks, Ben On 02/11/2015 04:17 AM, Rajeesh Rarankurissi wrote: > Hi, > > I am trying to compile xorp. While compilling xorp 1.8.5-src I am geting errors. > what might be the reason GCC I am using 4.8.3 > > gcc -o obj/i686-pc-linux-gnu/libxorp/random.os -c -O2 -g3 -Werror -W -Wall -Wwrite-strings -Wbad-function-cast -Wmissing-prototypes -Wcast-qual -Wmissing-declarations -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -pipe -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.5 -Iobj/i686-pc-linux-gnu -I. -I. libxorp/random.c > libxorp/random.c: In function ?xorp_srandomdev?: > libxorp/random.c:393:15: error: ?junk_seed[1]? may be used uninitialized in this function [-Werror=maybe-uninitialized] > xorp_srandom((getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec ^ junk); > ^ > cc1: all warnings being treated as errors > scons: *** [obj/i686-pc-linux-gnu/libxorp/random.os] Error 1 > scons: building terminated because of errors. > > > > Thanks > Rajeesh Rarankurissi > > > This electronic message, including attachments, is intended only for the use of the individual or company named above or to which it is addressed. The information contained in this message shall be considered confidential and proprietary, and may include confidential work product. If you are not the intended recipient, please be aware that any unauthorized use, dissemination, distribution or copying of this message is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and deleting this email immediately. > > > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rejip77 at gmail.com Wed Feb 11 20:04:55 2015 From: rejip77 at gmail.com (Reji P Rajesh) Date: Thu, 12 Feb 2015 09:34:55 +0530 Subject: [Xorp-hackers] XORP - Small Footprint - Router Message-ID: Hi, Does anybody attempted/successful in making XORP as small footprint router? Any pointers on this highly appreciated Thanks in advance Reji -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20150212/6b2d4144/attachment.html From greearb at candelatech.com Wed Feb 11 20:23:44 2015 From: greearb at candelatech.com (Ben Greear) Date: Wed, 11 Feb 2015 20:23:44 -0800 Subject: [Xorp-hackers] XORP - Small Footprint - Router In-Reply-To: References: Message-ID: <54DC2AD0.3080300@candelatech.com> How much RAM and storage do you have available? Most protocols can be compiled out so you should be able to tailor the build to just the protocols you care about. Thanks, Ben On 02/11/2015 08:04 PM, Reji P Rajesh wrote: > Hi, > > Does anybody attempted/successful in making XORP as small footprint router? Any pointers on this highly appreciated > > Thanks in advance > Reji > > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rrarankurissi at edgewaternetworks.com Thu Feb 12 06:46:56 2015 From: rrarankurissi at edgewaternetworks.com (Rajeesh Rarankurissi) Date: Thu, 12 Feb 2015 20:16:56 +0530 Subject: [Xorp-hackers] Trying to test IGMP and PIM Message-ID: Hi I am trying to test IGMP and PIM in xorp using Linux PC . But in client side I am not geting video output. Do I want to do any more changes in my configuration file ? My setup is *PC1* IP address 171.21.1.4 Running VLC Media player Streaming with ttl 8 Address stream to the network via RTP : 224.5.5.1:5004 *Router* C2600 Using to get Rendozvous Point Interface FastEthernet 0/0 171.21.1.5 interface FastEthernet 0/1 10.10.10.10 pim ssm default ip pim rp-address 10.10.205.60 *PC2* em1 = 10.10.10.1 p2p1= 192.168.250.1 XORP is running on this pc I am attatching my Configuration file with this mail *PC3* p2p1 = 192.168.250.2 VLC client - rtp://@224.5.5.1:5004 *My connection is * PC1 =====> Router(FE 0/0) Router(FE 0/1)======> PC2 em1 PC2 p2p1 ======> PC3 p2p1 Thanks Rajeesh -- This electronic message, including attachments, is intended only for the use of the individual or company named above or to which it is addressed. The information contained in this message shall be considered confidential and proprietary, and may include confidential work product. If you are not the intended recipient, please be aware that any unauthorized use, dissemination, distribution or copying of this message is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and deleting this email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20150212/f0e56fdd/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: config.boot Type: application/octet-stream Size: 3407 bytes Desc: not available Url : http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20150212/f0e56fdd/attachment.obj From rajeesh.r at thinkpalm.com Sat Feb 14 02:57:45 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Sat, 14 Feb 2015 10:57:45 +0000 Subject: [Xorp-hackers] Porting xorp Message-ID: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com> Hello, I am trying to port xorp to Intel G850 and Power pc architecture I found one point in your porting section that we need to change somethng in allconfig.py What changes I have to make in this file ? Thanks Rajeesh ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20150214/2d044e8f/attachment.html From greearb at candelatech.com Sat Feb 14 07:39:05 2015 From: greearb at candelatech.com (Ben Greear) Date: Sat, 14 Feb 2015 07:39:05 -0800 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com> Message-ID: <54DF6C19.7080009@candelatech.com> Read through the xorp/BUILD_NOTES file. Thanks, Ben On 02/14/2015 02:57 AM, Rajeesh R wrote: > Hello, > > I am trying to port xorp to Intel G850 and Power pc architecture I found one point in your porting section that > we need to change somethng in allconfig.py > What changes I have to make in this file ? > > > Thanks > Rajeesh > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rajeesh.r at thinkpalm.com Sun Feb 15 02:08:15 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Sun, 15 Feb 2015 10:08:15 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <54DF6C19.7080009@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com> Hi, while cross compiling I getting some errors scons CC=/home/thinkpalm/git/snapgear/tools/ucfront-gcc \ CXX=/home/thinkpalm/git/snapgear/tools/ucfront-g++ \ LINKFLAGS=/home/thinkpalm/git/snapgear/lib \ LINKFLAGS=/usr/local \ CFLAGS=/usr/local/i686-linux/include \ CXXFLAGS=/usr/local/i686-linux/include\ CFLAGS=/home/thinkpalm/git/snapgear/uClibc\include \ CXXFLAGS=/home/thinkpalm/git/snapgear/uClibc\include scons: Reading SConscript files ... Mkdir("/home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu") Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: /home/thinkpalm/git/snapgear/tools/ucfront-gcc CXX: /home/thinkpalm/git/snapgear/tools/ucfront-g++ RANLIB: ranlib STRIP: strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local WARNING: The GNU ld linker was not detected on your system. Some combinations of linker or compiler flags, specific to building XORP, may not function correctly. Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... no Checking whether byte ordering is bigendian... (cached) no OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... no Checking for C header file inttypes.h... no Checking for C type int8_t... no Checking for C type uint8_t... no Checking for C type int16_t... no Checking for C type uint16_t... no Checking for C type int32_t... no Checking for C type uint32_t... no Checking for C type int64_t... no Checking for C type uint64_t... no Checking for C header file stdbool.h... no Checking for C header file stddef.h... no Checking for C header file stdarg.h... no Checking for C header file stdlib.h... no Checking for C header file strings.h... no Checking for C header file string.h... no Checking for C header file signal.h... no Checking for C header file math.h... no Checking for C header file memory.h... no Checking for C function strftime()... no Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... no Checking for C header file sys/types.h... no Checking for C header file fcntl.h... no Checking for C header file getopt.h... no Checking for C header file glob.h... no Checking for C header file grp.h... no Checking for C header file pthread.h... no Checking for C header file pwd.h... no Checking for C header file mqueue.h... no Checking for C header file regex.h... no Checking for C header file syslog.h... no Checking for C header file termios.h... no Checking for C header file time.h... no Checking for C header file unistd.h... no Checking for C header file vfork.h... no Checking for C function readv()... no Checking for C function strerror()... no Checking for C function syslog()... no Checking for C function uname()... no Checking for C function writev()... no Checking for C library xnet... no Checking for C function recvmsg()... no Checking for C function sendmsg()... no Checking for C library rt... no Checking for C function clock_gettime()... no Checking whether CLOCK_MONOTONIC is declared... no Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... no Checking for C header file paths.h... no Checking for C header file sysexits.h... no Checking for C function realpath()... no Checking for C function strptime()... no Checking for C function sysctl()... no Checking for C header file netdb.h... no Checking for C library resolv... no Checking for C function hstrerror()... no Checking for C header file sys/cdefs.h... no Checking for C header file sys/param.h... no Checking for C header file sys/utsname.h... no Checking for C header file sys/errno.h... no Checking for C header file sys/wait.h... no Checking for C header file sys/signal.h... no Checking for C header file sys/time.h... no Checking for C header file sys/uio.h... no Checking for C header file sys/ioctl.h... no Checking for C header file sys/select.h... no Checking for C header file sys/socket.h... no Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... no Checking for C header file sys/mount.h... no Checking for C header file sys/resource.h... no Checking for C header file sys/stat.h... no Checking for C header file sys/syslog.h... no Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... no Checking for C header file linux/types.h... no Checking for C header file linux/sockios.h... no Checking for C type struct iovec... no Checking for C type struct msghdr... no Checking for C type struct cmsghdr... no Checking whether AF_INET is declared... no Checking whether AF_INET6 is declared... no Checking whether SOCK_STREAM is declared... no Checking whether SOCK_DGRAM is declared... no Checking whether SOCK_RAW is declared... no Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... no Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... no Checking for C header file net/if_arp.h... no Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... no Checking for C header file ifaddrs.h... no Checking for C header file stropts.h... no Checking for C header file linux/ethtool.h... no Checking for C header file linux/if_tun.h... no Checking for C header file linux/netlink.h... no Checking for C header file linux/rtnetlink.h... no Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... no Checking whether C type struct ifreq has member ifr_ifindex... no Checking for C function ether_aton()... no Checking for C function ether_aton_r()... no Checking for C function ether_ntoa()... no Checking for C function ether_ntoa_r()... no Checking for C function getaddrinfo()... no Checking for C function getifaddrs()... no Checking for C function getnameinfo()... no Checking for C function if_indextoname()... no Checking for C function if_nametoindex()... no Checking for C function inet_ntop()... no Checking for C function inet_pton()... no Checking for C type struct ether_addr... no Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... no Checking for C header file netinet/in.h... no Checking for C header file netinet/in_systm.h... no Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... no Checking for C header file netinet/tcp.h... no Checking for C header file netinet/igmp.h... no Checking for C header file netinet/ether.h... no Checking for C type struct ip_mreqn... no WARNING: No struct ip_mreqn found. Each interface must have a unique IP address or IP multicast (at least) will not be transmitted on the correct interface. Checking for C header file netinet/if_ether.h... no Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... no Checking for C header file arpa/telnet.h... no Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... no Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... no Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... no Checking for C header file netinet/ip6.h... no Checking for C header file netinet/icmp6.h... no Checking for C type struct mld_hdr... no Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... no Checking whether fpclassify is declared... no Checking whether fpclassify is declared... no ERROR: Cannot find fpclassify, tried -std=gnu99 as well. make[2]: *** [all] Error 1 make[2]: Leaving directory `/home/thinkpalm/git/snapgear/user/xorp' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/thinkpalm/git/snapgear/user' make: *** [subdirs] Error 1 ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Saturday, February 14, 2015 9:09 PM To: Rajeesh R; xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Read through the xorp/BUILD_NOTES file. Thanks, Ben On 02/14/2015 02:57 AM, Rajeesh R wrote: > Hello, > > I am trying to port xorp to Intel G850 and Power pc architecture I found one point in your porting section that > we need to change somethng in allconfig.py > What changes I have to make in this file ? > > > Thanks > Rajeesh > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From greearb at candelatech.com Sun Feb 15 11:31:18 2015 From: greearb at candelatech.com (Ben Greear) Date: Sun, 15 Feb 2015 11:31:18 -0800 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com> Message-ID: <54E0F406.5040804@candelatech.com> On 02/15/2015 02:08 AM, Rajeesh R wrote: > Hi, > > while cross compiling I getting some errors Did you try the top-of-tree git repo for xorp? Either way, you could have to do some changes to the code to get it to work with your cross-compiler. I don't have time to fix your problems for you, but if you get patches that help, please send them to the mailing list and I can review them and apply them if they make sense. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rajeesh.r at thinkpalm.com Mon Feb 16 04:12:28 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Mon, 16 Feb 2015 12:12:28 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <54E0F406.5040804@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com> Hi , Thanks. I found one thing that all my header file checkings are failing . [....... Checking whether fpclassify is declared... no Checking whether fpclassify is declared... no ERROR: Cannot find fpclassify, tried -std=gnu99 as well ] Do I want to modify the allconfig.py and SConstruct file according to my include path ? currently I am passing paths as arguemet scon arguement My command is scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Monday, February 16, 2015 1:01 AM To: Rajeesh R; xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp On 02/15/2015 02:08 AM, Rajeesh R wrote: > Hi, > > while cross compiling I getting some errors Did you try the top-of-tree git repo for xorp? Either way, you could have to do some changes to the code to get it to work with your cross-compiler. I don't have time to fix your problems for you, but if you get patches that help, please send them to the mailing list and I can review them and apply them if they make sense. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From greearb at candelatech.com Mon Feb 16 09:24:43 2015 From: greearb at candelatech.com (Ben Greear) Date: Mon, 16 Feb 2015 09:24:43 -0800 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com> Message-ID: <54E227DB.3030305@candelatech.com> On 02/16/2015 04:12 AM, Rajeesh R wrote: > Hi , > > Thanks. > > I found one thing that all my header file checkings are failing . [....... Checking whether fpclassify is declared... no > Checking whether fpclassify is declared... no ERROR: Cannot find fpclassify, tried -std=gnu99 as well ] > > Do I want to modify the allconfig.py and SConstruct file according to my include path ? > currently I am passing paths as arguemet scon arguement > > My command is > > scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib You did not answer my question: Are you using the latest code from the git tree? Please go look at the code that is complaining. There were issues with this before, though I don't recall the details. 'gitk' and other tools will show you the history around that code. Have you tried compiling with normal x86 compiler to make sure at least that works for you? Thanks, Ben > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 1:01 AM > To: Rajeesh R; xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/15/2015 02:08 AM, Rajeesh R wrote: >> Hi, >> >> while cross compiling I getting some errors > > Did you try the top-of-tree git repo for xorp? > > Either way, you could have to do some changes to the code > to get it to work with your cross-compiler. I don't have time > to fix your problems for you, but if you get patches that help, > please send them to the mailing list and I can review them and > apply them if they make sense. > > Thanks, > Ben > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rajeesh.r at thinkpalm.com Mon Feb 16 09:48:46 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Mon, 16 Feb 2015 17:48:46 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <54E227DB.3030305@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA706A9E1@SS015.chn.synergy.com> Hi Ben, Sorry for mentioning the git details I am using latest from git Version I could able to compile the code in Linux pc using gcc and g++ git details using gtk SHA1 ID 55f4eaefb5dc6113b63314423ac3fe8f7d830ed Author: Radim Kolar 2013-12-24 00:51:01 Committer: Ben Greear 2014-11-14 05:12:18 Parent: ee6dfb03afdbde63df5e1bdb1e2cde72d046098b (process system header same way as any other header file. Required for compiling with clang 3.3 on FreeBSD 10) Child: 168414a536bb1196c83d2c7de1f2b0b88fc6db49 (do not init _keepalive field, it was not used and deleted) Branches: master, remotes/origin/master Follows: lf-5.2.13 Precedes: Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Monday, February 16, 2015 10:54 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp On 02/16/2015 04:12 AM, Rajeesh R wrote: > Hi , > > Thanks. > > I found one thing that all my header file checkings are failing . [....... Checking whether fpclassify is declared... no > Checking whether fpclassify is declared... no ERROR: Cannot find fpclassify, tried -std=gnu99 as well ] > > Do I want to modify the allconfig.py and SConstruct file according to my include path ? > currently I am passing paths as arguemet scon arguement > > My command is > > scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib You did not answer my question: Are you using the latest code from the git tree? Please go look at the code that is complaining. There were issues with this before, though I don't recall the details. 'gitk' and other tools will show you the history around that code. Have you tried compiling with normal x86 compiler to make sure at least that works for you? Thanks, Ben > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 1:01 AM > To: Rajeesh R; xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/15/2015 02:08 AM, Rajeesh R wrote: >> Hi, >> >> while cross compiling I getting some errors > > Did you try the top-of-tree git repo for xorp? > > Either way, you could have to do some changes to the code > to get it to work with your cross-compiler. I don't have time > to fix your problems for you, but if you get patches that help, > please send them to the mailing list and I can review them and > apply them if they make sense. > > Thanks, > Ben > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Tue Feb 17 05:33:55 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Tue, 17 Feb 2015 13:33:55 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <54E227DB.3030305@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com> Hi, Source code verion I tried . 1.8.4 1.8.6-WIP etc. I tried with last version also( git clone git://github.com/greearb/xorp.ct.git) Last version I could compile for x86 platform properly. But in all case while cross compiling the command line argument values are not taking . Do I want to checkout any particular branch for cross-compilation ? I am new to scons I tried one activity modified the path manually in SConstruct file env = Environment( TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', 'TOOL_SUBST'], ENV = os.environ, BUILDDIR = builddir, CPPPATH=[''/home/test/git/project/include'], LIBPATH=['/git/project/include/lib'], variables = vars) } Then its getting PATHS but CC and CXX not getting. But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. suspecting enviourment detials is not reaching to allconfig.py file Do I want to checkout any particular branch for cross-compilation ? Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Monday, February 16, 2015 10:54 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp On 02/16/2015 04:12 AM, Rajeesh R wrote: > Hi , > > Thanks. > > I found one thing that all my header file checkings are failing . [....... Checking whether fpclassify is declared... no > Checking whether fpclassify is declared... no ERROR: Cannot find fpclassify, tried -std=gnu99 as well ] > > Do I want to modify the allconfig.py and SConstruct file according to my include path ? > currently I am passing paths as arguemet scon arguement > > My command is > > scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib You did not answer my question: Are you using the latest code from the git tree? Please go look at the code that is complaining. There were issues with this before, though I don't recall the details. 'gitk' and other tools will show you the history around that code. Have you tried compiling with normal x86 compiler to make sure at least that works for you? Thanks, Ben > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 1:01 AM > To: Rajeesh R; xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/15/2015 02:08 AM, Rajeesh R wrote: >> Hi, >> >> while cross compiling I getting some errors > > Did you try the top-of-tree git repo for xorp? > > Either way, you could have to do some changes to the code > to get it to work with your cross-compiler. I don't have time > to fix your problems for you, but if you get patches that help, > please send them to the mailing list and I can review them and > apply them if they make sense. > > Thanks, > Ben > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From greearb at candelatech.com Tue Feb 17 07:19:55 2015 From: greearb at candelatech.com (Ben Greear) Date: Tue, 17 Feb 2015 07:19:55 -0800 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com> Message-ID: <54E35C1B.6050003@candelatech.com> The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file > env = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . [....... Checking whether fpclassify is declared... no >> Checking whether fpclassify is declared... no ERROR: Cannot find fpclassify, tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues with this before, > though I don't recall the details. 'gitk' and other tools will show you the history > around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code >> to get it to work with your cross-compiler. I don't have time >> to fix your problems for you, but if you get patches that help, >> please send them to the mailing list and I can review them and >> apply them if they make sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rajeesh.r at thinkpalm.com Wed Feb 18 00:37:42 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Wed, 18 Feb 2015 08:37:42 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <54E35C1B.6050003@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com> Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file > env = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . [....... Checking whether fpclassify is declared... no >> Checking whether fpclassify is declared... no ERROR: Cannot find fpclassify, tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues with this before, > though I don't recall the details. 'gitk' and other tools will show you the history > around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code >> to get it to work with your cross-compiler. I don't have time >> to fix your problems for you, but if you get patches that help, >> please send them to the mailing list and I can review them and >> apply them if they make sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From syam.gandikota at freescale.com Wed Feb 18 01:06:52 2015 From: syam.gandikota at freescale.com (Syamasundar Gandikota) Date: Wed, 18 Feb 2015 09:06:52 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com> Message-ID: Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers From rajeesh.r at thinkpalm.com Wed Feb 18 03:14:19 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Wed, 18 Feb 2015 11:14:19 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, Message-ID: <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com> Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From syam.gandikota at freescale.com Wed Feb 18 22:05:15 2015 From: syam.gandikota at freescale.com (Syamasundar Gandikota) Date: Thu, 19 Feb 2015 06:05:15 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com> Message-ID: Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Thu Feb 19 01:17:16 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Thu, 19 Feb 2015 09:17:16 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, Message-ID: <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com> Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From syam.gandikota at freescale.com Thu Feb 19 01:49:32 2015 From: syam.gandikota at freescale.com (Syamasundar Gandikota) Date: Thu, 19 Feb 2015 09:49:32 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com> Message-ID: Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Thu Feb 19 03:03:37 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Thu, 19 Feb 2015 11:03:37 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, Message-ID: <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com> Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From syam.gandikota at freescale.com Thu Feb 19 04:11:03 2015 From: syam.gandikota at freescale.com (Syamasundar Gandikota) Date: Thu, 19 Feb 2015 12:11:03 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com> Message-ID: Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Thu Feb 19 05:02:18 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Thu, 19 Feb 2015 13:02:18 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, Message-ID: <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com> Hi Syam, I tried with LINKFLAGS . But still the same issue eventhough it is available in the directory . ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 Do we want to give any flags that like -lssl -lcrypto etc . for linking in scon command ? or will it take automatically ? If so What might be the arguement name ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 5:41 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From syam.gandikota at freescale.com Thu Feb 19 05:42:30 2015 From: syam.gandikota at freescale.com (Syamasundar Gandikota) Date: Thu, 19 Feb 2015 13:42:30 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com> Message-ID: Hi Rajesh, The scons command format is below. scons build=$(TARGET_HOST) CC=$(CC) CXX=$(CXX) STRIP=$(STRIP) RANLIB=$(RANLIB) CFLAGS=-I$(INCL_PATH) LINKFLAGS=-L$(LIB_PATH) prefix=$INSTALL_PATH install my knowledge there is problem with your library. Create a static library libcrypto.a and put it in the right path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 6:32 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with LINKFLAGS . But still the same issue eventhough it is available in the directory . ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 Do we want to give any flags that like -lssl -lcrypto etc . for linking in scon command ? or will it take automatically ? If so What might be the arguement name ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 5:41 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Thu Feb 19 07:07:08 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Thu, 19 Feb 2015 15:07:08 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, Message-ID: <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> Hi, Thanks. while compiling I am not geting the file build_info.os . scons: *** [obj/powerpc-unknown-none/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-none/libxorp/build_info.os'. Do I want to enable any thing during building .? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 7:12 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, The scons command format is below. scons build=$(TARGET_HOST) CC=$(CC) CXX=$(CXX) STRIP=$(STRIP) RANLIB=$(RANLIB) CFLAGS=-I$(INCL_PATH) LINKFLAGS=-L$(LIB_PATH) prefix=$INSTALL_PATH install my knowledge there is problem with your library. Create a static library libcrypto.a and put it in the right path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 6:32 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with LINKFLAGS . But still the same issue eventhough it is available in the directory . ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 Do we want to give any flags that like -lssl -lcrypto etc . for linking in scon command ? or will it take automatically ? If so What might be the arguement name ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 5:41 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_copy is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes Checking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.h... yes Checking for C header file netinet/in_var.h... no Checking for C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file linux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Thu Feb 19 20:50:51 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Fri, 20 Feb 2015 04:50:51 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com> Hi Syam, Thank you very . I could able to solved the problem of openssl header file inclusion issue it was due to soft links.and CFLAG setings. Already in project souce code openssl is using I am trying to integrate xorp to this . In project source code already openssl is using. But while making open ssl is creating the softlinks to the include files . I tried by manually took the header files and could able to open ssl md5.h header file search. Now in the same source code it is not detecting the libraries geting error ERROR: Cannot find required crypto library.Actually the folder contains .so files and .a files of crypto and ssl libraries still the xorp is not detecting these files . I checked the ls -lrt of the files actul file doesnot have softlink see below -rwxrwxr-x libcrypto.so.1.0.0 lrwxrwxrwx libcrypto.so -> libcrypto.so.1.0.0 -rwxrwxr-x libssl.so.1.0.0 lrwxrwxrwx libssl.so -> libssl.so.1.0.0 What might be the reason for not detecting the libraries by xorp ? Any idea ? Thanks Rajeesh ________________________________________ From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 8:37 PM To: Syamasundar Gandikota; Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi, Thanks. while compiling I am not geting the file build_info.os . scons: *** [obj/powerpc-unknown-none/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-none/libxorp/build_info.os'. Do I want to enable any thing during building .? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 7:12 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, The scons command format is below. scons build=$(TARGET_HOST) CC=$(CC) CXX=$(CXX) STRIP=$(STRIP) RANLIB=$(RANLIB) CFLAGS=-I$(INCL_PATH) LINKFLAGS=-L$(LIB_PATH) prefix=$INSTALL_PATH install my knowledge there is problem with your library. Create a static library libcrypto.a and put it in the right path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 6:32 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with LINKFLAGS . But still the same issue eventhough it is available in the directory . ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 Do we want to give any flags that like -lssl -lcrypto etc . for linking in scon command ? or will it take automatically ? If so What might be the arguement name ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 5:41 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_co! py is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function ! clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no! Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether ! C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes C! hecking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.! h... yes Checking for C header file netinet/in_var.h... no Checking fo r C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking ! for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file! linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file l inux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Thu Feb 19 23:03:23 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Fri, 20 Feb 2015 07:03:23 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA770E49B@SS014.chn.synergy.com> Hi Any body knows why the error below geting Is it configuration issue ? scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. scons: building terminated because of errors. make: *** [all] Error 2 Thanks Rajeesh ________________________________________ From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] Sent: Friday, February 20, 2015 10:20 AM To: Syamasundar Gandikota; Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Syam, Thank you very . I could able to solved the problem of openssl header file inclusion issue it was due to soft links.and CFLAG setings. Already in project souce code openssl is using I am trying to integrate xorp to this . In project source code already openssl is using. But while making open ssl is creating the softlinks to the include files . I tried by manually took the header files and could able to open ssl md5.h header file search. Now in the same source code it is not detecting the libraries geting error ERROR: Cannot find required crypto library.Actually the folder contains .so files and .a files of crypto and ssl libraries still the xorp is not detecting these files . I checked the ls -lrt of the files actul file doesnot have softlink see below -rwxrwxr-x libcrypto.so.1.0.0 lrwxrwxrwx libcrypto.so -> libcrypto.so.1.0.0 -rwxrwxr-x libssl.so.1.0.0 lrwxrwxrwx libssl.so -> libssl.so.1.0.0 What might be the reason for not detecting the libraries by xorp ? Any idea ? Thanks Rajeesh ________________________________________ From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 8:37 PM To: Syamasundar Gandikota; Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi, Thanks. while compiling I am not geting the file build_info.os . scons: *** [obj/powerpc-unknown-none/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-none/libxorp/build_info.os'. Do I want to enable any thing during building .? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 7:12 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, The scons command format is below. scons build=$(TARGET_HOST) CC=$(CC) CXX=$(CXX) STRIP=$(STRIP) RANLIB=$(RANLIB) CFLAGS=-I$(INCL_PATH) LINKFLAGS=-L$(LIB_PATH) prefix=$INSTALL_PATH install my knowledge there is problem with your library. Create a static library libcrypto.a and put it in the right path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 6:32 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with LINKFLAGS . But still the same issue eventhough it is available in the directory . ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 Do we want to give any flags that like -lssl -lcrypto etc . for linking in scon command ? or will it take automatically ? If so What might be the arguement name ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 5:41 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_co! py is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function ! clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no! Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether ! C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes C! hecking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.! h... yes Checking for C header file netinet/in_var.h... no Checking fo r C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking ! for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file! linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file l inux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From syam.gandikota at freescale.com Thu Feb 19 23:08:51 2015 From: syam.gandikota at freescale.com (Syamasundar Gandikota) Date: Fri, 20 Feb 2015 07:08:51 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com> Message-ID: Hi Rajesh, You should not touch the opensll source code, you cross compile it, and make install to proper location. It will create include/opensll directory without soft links, and it will create required libraries as well. You put the path in CFLAGS and LINKFLAGS. By giving --prefix in ./config you can install to separate folder. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Friday, February 20, 2015 10:21 AM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, Thank you very . I could able to solved the problem of openssl header file inclusion issue it was due to soft links.and CFLAG setings. Already in project souce code openssl is using I am trying to integrate xorp to this . In project source code already openssl is using. But while making open ssl is creating the softlinks to the include files . I tried by manually took the header files and could able to open ssl md5.h header file search. Now in the same source code it is not detecting the libraries geting error ERROR: Cannot find required crypto library.Actually the folder contains .so files and .a files of crypto and ssl libraries still the xorp is not detecting these files . I checked the ls -lrt of the files actul file doesnot have softlink see below -rwxrwxr-x libcrypto.so.1.0.0 lrwxrwxrwx libcrypto.so -> libcrypto.so.1.0.0 -rwxrwxr-x libssl.so.1.0.0 lrwxrwxrwx libssl.so -> libssl.so.1.0.0 What might be the reason for not detecting the libraries by xorp ? Any idea ? Thanks Rajeesh ________________________________________ From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 8:37 PM To: Syamasundar Gandikota; Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi, Thanks. while compiling I am not geting the file build_info.os . scons: *** [obj/powerpc-unknown-none/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-none/libxorp/build_info.os'. Do I want to enable any thing during building .? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 7:12 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, The scons command format is below. scons build=$(TARGET_HOST) CC=$(CC) CXX=$(CXX) STRIP=$(STRIP) RANLIB=$(RANLIB) CFLAGS=-I$(INCL_PATH) LINKFLAGS=-L$(LIB_PATH) prefix=$INSTALL_PATH install my knowledge there is problem with your library. Create a static library libcrypto.a and put it in the right path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 6:32 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with LINKFLAGS . But still the same issue eventhough it is available in the directory . ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 Do we want to give any flags that like -lssl -lcrypto etc . for linking in scon command ? or will it take automatically ? If so What might be the arguement name ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 5:41 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_co! py is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function ! clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no! Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether ! C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes C! hecking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.! h... yes Checking for C header file netinet/in_var.h... no Checking fo r C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking ! for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file! linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file l inux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Fri Feb 20 00:08:27 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Fri, 20 Feb 2015 08:08:27 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <54DF6C19.7080009@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A870@SS015.chn.synergy.com>, <54E0F406.5040804@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA706A981@SS015.chn.synergy.com>, <54E227DB.3030305@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA707C558@SS014.chn.synergy.com>, <54E35C1B.6050003@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA76F62F0@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com>, Message-ID: <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com> Hi Syam, Thank you for your information Now I am facing an issue .see below error message . /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/win_dispatcher.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/win_dispatcher.cc /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/profile.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/profile.cc scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. scons: building terminated because of errors. make: *** [all] Error 2 Do you have any idea on this ? Do I want to enable or disable during compilation to generate it ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Friday, February 20, 2015 12:38 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You should not touch the opensll source code, you cross compile it, and make install to proper location. It will create include/opensll directory without soft links, and it will create required libraries as well. You put the path in CFLAGS and LINKFLAGS. By giving --prefix in ./config you can install to separate folder. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Friday, February 20, 2015 10:21 AM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, Thank you very . I could able to solved the problem of openssl header file inclusion issue it was due to soft links.and CFLAG setings. Already in project souce code openssl is using I am trying to integrate xorp to this . In project source code already openssl is using. But while making open ssl is creating the softlinks to the include files . I tried by manually took the header files and could able to open ssl md5.h header file search. Now in the same source code it is not detecting the libraries geting error ERROR: Cannot find required crypto library.Actually the folder contains .so files and .a files of crypto and ssl libraries still the xorp is not detecting these files . I checked the ls -lrt of the files actul file doesnot have softlink see below -rwxrwxr-x libcrypto.so.1.0.0 lrwxrwxrwx libcrypto.so -> libcrypto.so.1.0.0 -rwxrwxr-x libssl.so.1.0.0 lrwxrwxrwx libssl.so -> libssl.so.1.0.0 What might be the reason for not detecting the libraries by xorp ? Any idea ? Thanks Rajeesh ________________________________________ From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 8:37 PM To: Syamasundar Gandikota; Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi, Thanks. while compiling I am not geting the file build_info.os . scons: *** [obj/powerpc-unknown-none/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-none/libxorp/build_info.os'. Do I want to enable any thing during building .? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 7:12 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, The scons command format is below. scons build=$(TARGET_HOST) CC=$(CC) CXX=$(CXX) STRIP=$(STRIP) RANLIB=$(RANLIB) CFLAGS=-I$(INCL_PATH) LINKFLAGS=-L$(LIB_PATH) prefix=$INSTALL_PATH install my knowledge there is problem with your library. Create a static library libcrypto.a and put it in the right path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 6:32 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with LINKFLAGS . But still the same issue eventhough it is available in the directory . ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 Do we want to give any flags that like -lssl -lcrypto etc . for linking in scon command ? or will it take automatically ? If so What might be the arguement name ? Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 5:41 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Library include flag is not LIBPATH, it is LINKFLAGS. ex: LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib/libssl/ Make sure that libraries are at the above path. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 4:34 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam Yes you are right Last problem solved. Checking for C library crypto... no ERROR: Cannot find required crypto library. clear the configure cache before re-building. make: *** [all] Error 1 In my command I am giving LIBPATH += -L/home/thinkpalm/git/snapgear/lib/libssl/crypto LIBPATH += -L/home/thinkpalm/git/snapgear/lib/ LIBS += ssl crypto Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 3:19 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, This is not CPPPATH, it is CFLAGS right ?. CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Thursday, February 19, 2015 2:47 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam, I tried with out softlink also. Same result hecking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Thursday, February 19, 2015 11:35 AM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, Please make sure that no soft links to opensll .h files. Ex: cd /usr/local/openssl ls see the result. All opensll .h files should not have any soft links. Thanks, Syam -----Original Message----- From: Rajeesh R [mailto:rajeesh.r at thinkpalm.com] Sent: Wednesday, February 18, 2015 4:44 PM To: Gandikota Syamasundar-B38867; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Syam This is the command I am using scons CC=powerpc-linux-gcc \ CXX=powerpc-linux-g++ \ RANLIB=powerpc-linux-ranlib \ STRIP=powerpc-linux-strip \ CPPPATH=-Ihome/thinkpalm/git/snapgear/lib/libssl/include/openssl \ LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried home/thinkpalm/git/snapgear/lib/libssl/include/openssl to /usr/local/openssl and executed the command still the same issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Thanks Rajeesh ________________________________________ From: Syamasundar Gandikota [syam.gandikota at freescale.com] Sent: Wednesday, February 18, 2015 2:36 PM To: Rajeesh R; Ben Greear Cc: xorp-hackers at icir.org Subject: RE: [Xorp-hackers] Porting xorp Hi Rajesh, You must have absolute path to opensll include directory. Thanks, Syam -----Original Message----- From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Rajeesh R Sent: Wednesday, February 18, 2015 2:08 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi Thanks Yes . You are right. I tried with Power Pc tool chain . It is better than the previous tool chain . But getting some errors . related to openssl path issue . Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. While seeing the Terminal log it is dedtected the include path but in the case of open ssl its failing. Terminal Log Details: Build System Type: i686-pc-linux-gnu Host System Type: i686-pc-linux-gnu Source path: /home/thinkpalm/git/snapgear/user/xorp Build path: /home/thinkpalm/git/snapgear/user/xorp/obj/i686-pc-linux-gnu Install prefix: /usr/local/xorp CC: powerpc-linux-gcc CXX: powerpc-linux-g++ RANLIB: powerpc-linux-ranlib STRIP: powerpc-linux-strip Strip binaries: True Optimize code: full Profile code: no Default XRL transport: local Shared libraries: True Use rtld ORIGIN: True Ignore check errors: False Debug symbols: full Debug STL: False Debug messages: False Debug function names: False Debug callbacks: False Debug XRL syntax: False Enable OLSR: True Enable Wrapper: True Enable OSPF: True Enable RIP: True Enable VRRP: True Enable xorpsh True Enable Test Programs: False Enable CLICK: False Enable FEA Dummy: True Enable VIFF_USE_IFINDEX: False Enable async method impls: False Enable BGP: True Enable BuildInfo: True Xorp can run from BUILD_DIR: False Try Enable BOOST: False Try Enable uSTL : False Disable IPv6: False Disable libtecla: False Disable Firewall: False Disable Profile : False Disable -Werror : False Enable lex hack : False Disable warning logs : False Disable error logs : False Disable trace logs : False Disable fatal logs : False Disable info logs : False Disable assert logs : False Disable other logs : False Disable assert: False Re-creating build_info.cc: old md5sum doesn't exist. NOTE: Not a git repository, no git history in build-info. /home/thinkpalm/git/snapgear/user/xorp Checking for C header file endian.h... yes OK: c compiler appears functional. OK: C++ compiler appears functional. OK: flex appears functional. OK: bison appears functional. Checking for C header file iphlpapi.h... no Checking for C header file routprot.h... no Checking for C header file stdint.h... yes Checking for C header file inttypes.h... yes Checking for C type int8_t... yes Checking for C type uint8_t... yes Checking for C type int16_t... yes Checking for C type uint16_t... yes Checking for C type int32_t... yes Checking for C type uint32_t... yes Checking for C type int64_t... yes Checking for C type uint64_t... yes Checking for C header file stdbool.h... yes Checking for C header file stddef.h... yes Checking for C header file stdarg.h... yes Checking for C header file stdlib.h... yes Checking for C header file strings.h... yes Checking for C header file string.h... yes Checking for C header file signal.h... yes Checking for C header file math.h... yes Checking for C header file memory.h... yes Checking for C function strftime()... yes Checking for C function strlcpy()... no Checking for C function strlcat()... no Checking whether va_co! py is declared... yes Checking for C header file sys/types.h... yes Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C header file glob.h... yes Checking for C header file grp.h... yes Checking for C header file pthread.h... yes Checking for C header file pwd.h... yes Checking for C header file mqueue.h... yes Checking for C header file regex.h... yes Checking for C header file syslog.h... yes Checking for C header file termios.h... yes Checking for C header file time.h... yes Checking for C header file unistd.h... yes Checking for C header file vfork.h... no Checking for C function readv()... yes Checking for C function strerror()... yes Checking for C function syslog()... yes Checking for C function uname()... yes Checking for C function writev()... yes Checking for C library xnet... no Checking for C function recvmsg()... yes Checking for C function sendmsg()... yes Checking for C library rt... yes Checking for C function ! clock_gettime()... yes Checking whether CLOCK_MONOTONIC is declared... yes Checking whether CLOCK_MONOTONIC_FAST is declared... no Checking for C type struct timespec... yes Checking for C header file paths.h... yes Checking for C header file sysexits.h... yes Checking for C function realpath()... yes Checking for C function strptime()... yes Checking for C function sysctl()... yes Checking for C header file netdb.h... yes Checking for C library resolv... yes Checking for C function hstrerror()... yes Checking for C header file sys/cdefs.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/utsname.h... yes Checking for C header file sys/errno.h... yes Checking for C header file sys/wait.h... yes Checking for C header file sys/signal.h... yes Checking for C header file sys/time.h... yes Checking for C header file sys/uio.h... yes Checking for C header file sys/ioctl.h... yes Checking for C header file sys/select.h... yes Checking for C header file sys/socket.h... yes Checking for C header file sys/sockio.h... no! Checking for C header file sys/un.h... yes Checking for C header file sys/mount.h... yes Checking for C header file sys/resource.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/syslog.h... yes Checking for C header file sys/linker.h... no Checking for C header file sys/sysctl.h... yes Checking for C header file linux/types.h... yes Checking for C header file linux/sockios.h... yes Checking for C type struct iovec... yes Checking for C type struct msghdr... yes Checking for C type struct cmsghdr... yes Checking whether AF_INET is declared... yes Checking whether AF_INET6 is declared... yes Checking whether SOCK_STREAM is declared... yes Checking whether SOCK_DGRAM is declared... yes Checking whether SOCK_RAW is declared... yes Checking whether C type struct msghdr has member msg_control... yes Checking whether C type struct msghdr has member msg_iov... yes Checking whether C type struct msghdr has member msg_name... yes Checking whether ! C type struct msghdr has member msg_namelen... yes Checking whether C type struct sockaddr has member sa_len... no Checking whether C type struct sockaddr_storage has member ss_len... no Checking whether C type struct sockaddr_un has member sun_len... no Checking for C header file net/ethernet.h... yes Checking for C header file sys/ethernet.h... no Checking for C header file net/if.h... yes Checking for C header file net/if_arp.h... yes Checking for C header file net/if_dl.h... no Checking for C header file net/if_ether.h... no Checking for C header file net/if_media.h... no Checking for C header file net/if_var.h... no Checking for C header file net/if_types.h... no Checking for C header file net/route.h... yes Checking for C header file ifaddrs.h... yes Checking for C header file stropts.h... yes Checking for C header file linux/ethtool.h... yes Checking for C header file linux/if_tun.h... yes Checking for C header file linux/netlink.h... yes Checking for C header file linux/rtnetlink.h... yes Checking whether RTA_TABLE is declared... yes C! hecking whether C type struct sockaddr_dl has member sdl_len... no Checking whether C type struct ifreq has member ifr_hwaddr... yes Checking whether C type struct ifreq has member ifr_ifindex... yes Checking for C function ether_aton()... yes Checking for C function ether_aton_r()... yes Checking for C function ether_ntoa()... yes Checking for C function ether_ntoa_r()... yes Checking for C function getaddrinfo()... yes Checking for C function getifaddrs()... yes Checking for C function getnameinfo()... yes Checking for C function if_indextoname()... yes Checking for C function if_nametoindex()... yes Checking for C function inet_ntop()... yes Checking for C function inet_pton()... yes Checking for C type struct ether_addr... yes Checking whether system has sysctl NET_RT_DUMP... no Checking whether system has sysctl NET_RT_IFLIST... no Checking whether SIOCGIFCONF is declared... yes Checking for C header file netinet/in.h... yes Checking for C header file netinet/in_systm.! h... yes Checking for C header file netinet/in_var.h... no Checking fo r C header file netinet/ip.h... yes Checking for C header file netinet/tcp.h... yes Checking for C header file netinet/igmp.h... yes Checking for C header file netinet/ether.h... yes Checking for C type struct ip_mreqn... yes Checking for C header file netinet/if_ether.h... yes Checking for C header file inet/nd.h... no Checking for C header file inet/ip.h... no Checking for C header file arpa/inet.h... yes Checking for C header file arpa/telnet.h... yes Checking whether C type struct sockaddr_in has member sin_len... no Checking whether IP_MULTICAST_IF is declared... yes Checking whether IP_MULTICAST_TTL is declared... yes Checking whether IP_MULTICAST_LOOP is declared... yes Checking whether IP_ADD_MEMBERSHIP is declared... yes Checking whether IP_DROP_MEMBERSHIP is declared... yes Enabling MULT_MCAST_TABLES logic since we are compiling for Linux. Checking whether system has sysctl IPCTL_FORWARDING... no Checking whether __KAME__ is declared... no Checking whether inet6_opt_init is declared... yes Checking whether C type struct sockaddr_in6 has member sin6_len... no Checking whether C type struct sockaddr_in6 has member sin6_scope_id... yes Checking for C header file netinet/ip6.h... yes Checking for C header file netinet/icmp6.h... yes Checking for C type struct mld_hdr... yes Checking for C header file netinet6/in6_var.h... no Checking for C header file netinet6/nd6.h... no Checking for C++ header file netinet6/nd6.h... no Checking whether system has sysctl IPV6CTL_FORWARDING... no Checking whether system has sysctl IPV6CTL_ACCEPT_RTADV... no Checking whether IPV6_MULTICAST_IF is declared... yes Checking whether IPV6_MULTICAST_LOOP is declared... yes Checking whether fpclassify is declared... yes Checking for C header file netinet/ip_mroute.h... no Checking for C header file net/ip_mroute/ip_mroute.h... no Checking ! for C header file linux/mroute.h... yes Checking for C type struct mfcctl2... no Checking whether C type struct mfcctl2 has member mfcc_flags... no Checking whether C type struct mfcctl2 has member mfcc_rp... no Checking for C header file netinet/pim.h... no Checking for C type struct pim... no Checking whether C type struct pim has member pim_vt... no Checking for C header file netinet6/ip6_mroute.h... no Checking for C header file linux/mroute6.h... yes Checking whether inet6_option_space is declared... no Checking for C type struct mf6cctl2... no Checking whether C type struct mf6cctl2 has member mf6cc_flags... no Checking whether C type struct mf6cctl2 has member mf6cc_rp... no Checking whether C type struct mif6ctl has member vifc_threshold... yes Checking for C header file netinet/ip_compat.h... no Checking for C header file netinet/ip_fil.h... no Checking for C header file netinet/ip_fw.h... no Checking for C header file net/pfvar.h... no Checking for C++ header file! linux/netfilter_ipv4/ip_tables.h... no Checking for C++ header file l inux/netfilter_ipv6/ip6_tables.h... no Checking for C header file net/if_vlanvar.h... no Checking for C header file net/if_vlan_var.h... no Checking for C header file net/vlan/if_vlan_var.h... no Checking for C header file linux/if_vlan.h... yes Checking whether GET_VLAN_REALDEV_NAME_CMD is declared... yes Checking whether GET_VLAN_VID_CMD is declared... yes Checking for C header file pcre.h... no Checking for C header file pcreposix.h... no Checking for C library pcre... no Checking for C library pcreposix... no Checking for C header file openssl/md5.h... no ERROR: Cannot find required openssl/md5.h. On Fedora/RedHat: yum install openssl-devel On Ubuntu: apt-get install libssl-dev After install, rm -fr xorp/obj build directory to clear the configure cache before re-building. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 17, 2015 8:49 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp The top-of-tree is best. Obviously, the code is not yet perfect for your cross-compiler. I think this is a problem with your c++ compiler, libraries, or the xorp code. Probably not scons. You should look at the code that is complaining, google around, and try to figure out what is the root cause. Can I get a copy of your cross-compiler chain for Linux? Maybe I can figure out the problem for you... Thanks, Ben On 02/17/2015 05:33 AM, Rajeesh R wrote: > Hi, > > Source code verion I tried . 1.8.4 1.8.6-WIP etc. > I tried with last version also( git clone > git://github.com/greearb/xorp.ct.git) > Last version I could compile for x86 platform properly. > But in all case while cross compiling the command line argument values are not taking . > Do I want to checkout any particular branch for cross-compilation ? > > I am new to scons > > I tried one activity modified the path manually in SConstruct file env > = Environment( > TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen', > 'TOOL_SUBST'], > ENV = os.environ, > BUILDDIR = builddir, > CPPPATH=[''/home/test/git/project/include'], > LIBPATH=['/git/project/include/lib'], > variables = vars) > } > Then its getting PATHS but CC and CXX not getting. > But if i modify CC=gcc and CXX=g++ path in SConstruct same problem . configure failing. > suspecting enviourment detials is not reaching to allconfig.py file > > Do I want to checkout any particular branch for cross-compilation ? > > Thanks > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 16, 2015 10:54 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/16/2015 04:12 AM, Rajeesh R wrote: >> Hi , >> >> Thanks. >> >> I found one thing that all my header file checkings are failing . >> [....... Checking whether fpclassify is declared... no Checking >> whether fpclassify is declared... no ERROR: Cannot find fpclassify, >> tried -std=gnu99 as well ] >> >> Do I want to modify the allconfig.py and SConstruct file according to my include path ? >> currently I am passing paths as arguemet scon arguement >> >> My command is >> >> scons CC=${HOME}/git/project/tools/ucfront-gcc CXX=${HOME}/git/project/tools/ucfront-g++ CPPPATH=-I${HOME}/git/project/include LINKPATH= ${HOME}/git/project/lib > > You did not answer my question: > > Are you using the latest code from the git tree? > > Please go look at the code that is complaining. There were issues > with this before, though I don't recall the details. 'gitk' and other > tools will show you the history around that code. > > Have you tried compiling with normal x86 compiler to make sure at least that works for you? > > Thanks, > Ben > >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Monday, February 16, 2015 1:01 AM >> To: Rajeesh R; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/15/2015 02:08 AM, Rajeesh R wrote: >>> Hi, >>> >>> while cross compiling I getting some errors >> >> Did you try the top-of-tree git repo for xorp? >> >> Either way, you could have to do some changes to the code to get it >> to work with your cross-compiler. I don't have time to fix your >> problems for you, but if you get patches that help, please send them >> to the mailing list and I can review them and apply them if they make >> sense. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> _____________________________________________________________________ >> _ This email has been scanned by the Symantec Email Security.cloud >> service. >> For more information please visit http://www.symanteccloud.com >> _____________________________________________________________________ >> _ >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From greearb at candelatech.com Fri Feb 20 09:00:15 2015 From: greearb at candelatech.com (Ben Greear) Date: Fri, 20 Feb 2015 09:00:15 -0800 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com> Message-ID: <54E7681F.6040609@candelatech.com> On 02/20/2015 12:08 AM, Rajeesh R wrote: > Hi Syam, > > Thank you for your information > > Now I am facing an issue .see below error message . > > /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/win_dispatcher.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/win_dispatcher.cc > /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/profile.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/profile.cc > scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. > scons: building terminated because of errors. > make: *** [all] Error 2 > > Do you have any idea on this ? Do I want to enable or disable during compilation to generate it ? This should be auto-generated by the scons framework. You might grep through code to find what is supposed to be creating it and see if you can figure out why it is not. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com From noreply at github.com Sat Feb 21 09:02:14 2015 From: noreply at github.com (GitHub) Date: Sat, 21 Feb 2015 09:02:14 -0800 Subject: [Xorp-hackers] [greearb/xorp.ct] Message-ID: <54e8ba16d4c32_538f3fca588572a033210@hookshot-fe1-cp1-prd.iad.github.net.mail> Branch: refs/tags/lf-5.3.1 Home: https://github.com/greearb/xorp.ct From rajeesh.r at thinkpalm.com Mon Feb 23 02:35:06 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Mon, 23 Feb 2015 10:35:06 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <54E7681F.6040609@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com>, <54E7681F.6040609@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA772E37B@SS016.chn.synergy.com> Hi I am facing an issue with RPATH . It is not taking the library . Its generated (pls see the below terminal log) I tried with RPATH variable but it is not taking. Any idea ? My command is scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -L/home/thinkpalm/git/snapgear/lib -rdynamic -Wl,-rpath=\$ORIGIN/../lib obj/powerpc-unknown-none/cli/tools/cli_generic.o -Lobj/powerpc-unknown-none/cli/tools/usr/lib -Lcli/tools/usr/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' collect2: error: ld returned 1 exit status scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error 1 scons: building terminated because of errors. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Friday, February 20, 2015 10:30 PM To: Rajeesh R Cc: Syamasundar Gandikota; xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp On 02/20/2015 12:08 AM, Rajeesh R wrote: > Hi Syam, > > Thank you for your information > > Now I am facing an issue .see below error message . > > /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/win_dispatcher.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/win_dispatcher.cc > /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/profile.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/profile.cc > scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. > scons: building terminated because of errors. > make: *** [all] Error 2 > > Do you have any idea on this ? Do I want to enable or disable during compilation to generate it ? This should be auto-generated by the scons framework. You might grep through code to find what is supposed to be creating it and see if you can figure out why it is not. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Mon Feb 23 06:06:54 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Mon, 23 Feb 2015 14:06:54 +0000 Subject: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile Message-ID: <991638A0F9045847BB52E1BE67DA871AA772E3A6@SS016.chn.synergy.com> Hi, Facing some errors while crosscompiling to power pc. scons: Building targets ... scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -rdynamic -Wl,-rpath=\$ORIGIN/../lib obj/powerpc-unknown-none/cli/tools/cli_generic.o -L/home/thinkpalm/git/snapgear/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' collect2: error: ld returned 1 exit status scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error My Command is scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib I tried with command scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib still the same issue Thanks Rajeesh ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20150223/170ad275/attachment.html From greearb at candelatech.com Mon Feb 23 08:49:52 2015 From: greearb at candelatech.com (Ben Greear) Date: Mon, 23 Feb 2015 08:49:52 -0800 Subject: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA772E3A6@SS016.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA772E3A6@SS016.chn.synergy.com> Message-ID: <54EB5A30.1010309@candelatech.com> On 02/23/2015 06:06 AM, Rajeesh R wrote: > Hi, > > Facing some errors while crosscompiling to power pc. You need to cross-compile libcrypto, or find a version that someone has already cross-compiled for your platform. Thanks, Ben > > scons: Building targets ... > scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. > scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. > scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. > scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. > scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. > /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -rdynamic -Wl,-rpath=\$ORIGIN/../lib > obj/powerpc-unknown-none/cli/tools/cli_generic.o -L/home/thinkpalm/git/snapgear/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp > -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto > -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools > -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm > /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed > by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' > collect2: error: ld returned 1 exit status > scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error > > > My Command is > > scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include > LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib > > I tried with command > > scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include > LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib > > still the same issue > > Thanks > Rajeesh > > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rajeesh.r at thinkpalm.com Mon Feb 23 10:13:49 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Mon, 23 Feb 2015 18:13:49 +0000 Subject: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile In-Reply-To: <54EB5A30.1010309@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA772E3A6@SS016.chn.synergy.com>, <54EB5A30.1010309@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA772E414@SS016.chn.synergy.com> Hi Libcryto is exist in my LINKFLAG path . also it passed check lib (allconfig.py) So Is it related to any Linking sequence issue ie lcrypto coming before ? I tried RPATH . But not get effected .. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Monday, February 23, 2015 10:19 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile On 02/23/2015 06:06 AM, Rajeesh R wrote: > Hi, > > Facing some errors while crosscompiling to power pc. You need to cross-compile libcrypto, or find a version that someone has already cross-compiled for your platform. Thanks, Ben > > scons: Building targets ... > scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. > scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. > scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. > scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. > scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. > /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -rdynamic -Wl,-rpath=\$ORIGIN/../lib > obj/powerpc-unknown-none/cli/tools/cli_generic.o -L/home/thinkpalm/git/snapgear/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp > -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto > -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools > -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm > /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed > by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' > collect2: error: ld returned 1 exit status > scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error > > > My Command is > > scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include > LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib > > I tried with command > > scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include > LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib > > still the same issue > > Thanks > Rajeesh > > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From greearb at candelatech.com Mon Feb 23 17:00:39 2015 From: greearb at candelatech.com (Ben Greear) Date: Mon, 23 Feb 2015 17:00:39 -0800 Subject: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA772E414@SS016.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA772E3A6@SS016.chn.synergy.com>, <54EB5A30.1010309@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA772E414@SS016.chn.synergy.com> Message-ID: <54EBCD37.8060003@candelatech.com> On 02/23/2015 10:13 AM, Rajeesh R wrote: > Hi > > Libcryto is exist in my LINKFLAG path . also it passed check lib (allconfig.py) > So Is it related to any Linking sequence issue ie lcrypto coming before ? I tried RPATH . But not get effected .. Please show me exact location (full path and name) of your libcrypto libraries. Thanks, Ben > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 23, 2015 10:19 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile > > On 02/23/2015 06:06 AM, Rajeesh R wrote: >> Hi, >> >> Facing some errors while crosscompiling to power pc. > > You need to cross-compile libcrypto, or find a version that someone > has already cross-compiled for your platform. > > Thanks, > Ben > >> >> scons: Building targets ... >> scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. >> scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. >> scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. >> scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. >> scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. >> /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -rdynamic -Wl,-rpath=\$ORIGIN/../lib >> obj/powerpc-unknown-none/cli/tools/cli_generic.o -L/home/thinkpalm/git/snapgear/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp >> -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto >> -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools >> -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm >> /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed >> by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' >> collect2: error: ld returned 1 exit status >> scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error >> >> >> My Command is >> >> scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include >> LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib >> >> I tried with command >> >> scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include >> LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib >> >> still the same issue >> >> Thanks >> Rajeesh >> >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> >> >> _______________________________________________ >> Xorp-hackers mailing list >> Xorp-hackers at icir.org >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rajeesh.r at thinkpalm.com Mon Feb 23 19:47:30 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Tue, 24 Feb 2015 03:47:30 +0000 Subject: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile In-Reply-To: <54EBCD37.8060003@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA772E3A6@SS016.chn.synergy.com>, <54EB5A30.1010309@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA772E414@SS016.chn.synergy.com>, <54EBCD37.8060003@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA772F4C9@SS016.chn.synergy.com> Hi, /home/thinkpalm/git/snapgear/lib Here Iam keeping all cross compiled libraries Result of - ls -la is below lrwxrwxrwx 1 thinkpalm thinkpalm 37 Feb 19 11:18 dnscache -> /home/thinkpalm/git/e30/mand/dnscache drwxr-xr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:03 expat drwxr-xr-x 3 thinkpalm thinkpalm 4096 Feb 19 13:00 flex drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libaes drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libares drwxr-xr-x 5 thinkpalm thinkpalm 4096 Nov 10 2005 libatm lrwxrwxrwx 1 thinkpalm thinkpalm 51 Feb 19 13:29 libb2bua.so -> /home/thinkpalm/git/snapgear/lib/libewn/libb2bua.so drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libbzip2 drwxr-xr-x 24 thinkpalm thinkpalm 4096 Nov 10 2005 libc drwxr-xr-x 7 thinkpalm thinkpalm 4096 Nov 10 2005 libccmalloc drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:08 libcrypt_algo_proxy lrwxrwxrwx 1 thinkpalm thinkpalm 51 Feb 19 13:29 libcrypto.a -> /home/thinkpalm/git/snapgear/lib/libssl/libcrypto.a lrwxrwxrwx 1 thinkpalm thinkpalm 52 Feb 19 13:29 libcrypto.so -> /home/thinkpalm/git/snapgear/lib/libssl/libcrypto.so lrwxrwxrwx 1 thinkpalm thinkpalm 58 Feb 19 13:29 libcrypto.so.1.0.0 -> /home/thinkpalm/git/snapgear/lib/libssl/libcrypto.so.1.0.0 drwxr-xr-x 8 thinkpalm thinkpalm 4096 Nov 10 2005 libcurl drwxr-xr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:00 libdes lrwxrwxrwx 1 thinkpalm thinkpalm 48 Feb 19 13:29 libdes.a -> /home/thinkpalm/git/snapgear/lib/libdes/libdes.a drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 libewdsp drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 libewmgl drwxr-xr-x 12 thinkpalm thinkpalm 4096 Feb 19 13:04 libexpat lrwxrwxrwx 1 thinkpalm thinkpalm 50 Feb 19 13:29 libexpat.so -> /home/thinkpalm/git/snapgear/lib/expat/libexpat.so lrwxrwxrwx 1 thinkpalm thinkpalm 51 Feb 19 13:29 libfl.a -> /home/thinkpalm/git/snapgear/lib/flex/build/libfl.a lrwxrwxrwx 1 thinkpalm thinkpalm 57 Feb 19 13:29 libform.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libform.a drwxr-xr-x 3 thinkpalm thinkpalm 4096 Feb 19 13:02 libg drwxrwxr-x 5 thinkpalm thinkpalm 4096 Feb 19 13:04 libghthash drwxr-xr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:02 libgmp lrwxrwxrwx 1 thinkpalm thinkpalm 48 Feb 19 13:29 libgmp.a -> /home/thinkpalm/git/snapgear/lib/libgmp/libgmp.a lrwxrwxrwx 1 thinkpalm thinkpalm 83 Feb 19 13:29 liblber.a -> /home/thinkpalm/git/snapgear/lib/libldap/builddir/libraries/liblber/.libs/liblber.a drwxrwxr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:03 libldap lrwxrwxrwx 1 thinkpalm thinkpalm 83 Feb 19 13:29 libldap.a -> /home/thinkpalm/git/snapgear/lib/libldap/builddir/libraries/libldap/.libs/libldap.a drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libm lrwxrwxrwx 1 thinkpalm thinkpalm 57 Feb 19 13:29 libmenu.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libmenu.a drwxrwxr-x 3 thinkpalm thinkpalm 4096 Feb 9 11:58 libmgw drwxrwxr-x 7 thinkpalm thinkpalm 4096 Feb 19 13:29 libmini323 drwxr-xr-x 18 thinkpalm thinkpalm 4096 Feb 19 13:02 libncurses lrwxrwxrwx 1 thinkpalm thinkpalm 60 Feb 19 13:29 libncurses.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libncurses.a drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libnet drwxr-xr-x 11 thinkpalm thinkpalm 4096 Nov 10 2005 Libnet lrwxrwxrwx 1 thinkpalm thinkpalm 42 Feb 19 11:18 Libnet-1.0.2a -> /home/thinkpalm/git/e30/mand/Libnet-1.0.2a drwxrwxr-x 3 thinkpalm thinkpalm 4096 Feb 9 11:58 libnl-1.1 drwxrwxr-x 6 thinkpalm thinkpalm 4096 Feb 19 13:08 libntlm lrwxrwxrwx 1 thinkpalm thinkpalm 63 Feb 19 13:29 libntlm.so -> /home/thinkpalm/git/snapgear/lib/libntlm/build/.libs/libntlm.so drwxrwxr-x 8 thinkpalm thinkpalm 4096 Feb 19 13:04 libosip2 drwxrwxr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:29 libpam drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:03 libpamradius lrwxrwxrwx 1 thinkpalm thinkpalm 61 Feb 19 13:29 libpamradius.so -> /home/thinkpalm/git/snapgear/lib/libpamradius/libpamradius.so lrwxrwxrwx 1 thinkpalm thinkpalm 56 Feb 19 13:29 libpam.so -> /home/thinkpalm/git/snapgear/lib/libpam/libpam/libpam.so drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:03 libpamtacacs lrwxrwxrwx 1 thinkpalm thinkpalm 61 Feb 19 13:29 libpamtacacs.so -> /home/thinkpalm/git/snapgear/lib/libpamtacacs/libpamtacacs.so lrwxrwxrwx 1 thinkpalm thinkpalm 58 Feb 19 13:29 libpanel.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libpanel.a drwxr-xr-x 13 thinkpalm thinkpalm 4096 Feb 19 13:03 libpcap lrwxrwxrwx 1 thinkpalm thinkpalm 56 Feb 19 13:29 libpcap.a -> /home/thinkpalm/git/snapgear/lib/libpcap/build/libpcap.a drwxr-xr-x 5 thinkpalm thinkpalm 4096 Nov 10 2005 libpng drwxrwxr-x 7 thinkpalm thinkpalm 4096 Feb 19 13:03 libqDecoder lrwxrwxrwx 1 thinkpalm thinkpalm 63 Feb 19 13:29 libqDecoder.so -> /home/thinkpalm/git/snapgear/lib/libqDecoder/src/libqDecoder.so drwxrwxr-x 3 thinkpalm thinkpalm 4096 Feb 19 11:19 libresip drwxrwxr-x 23 thinkpalm thinkpalm 4096 Feb 20 10:41 libssl lrwxrwxrwx 1 thinkpalm thinkpalm 48 Feb 19 13:29 libssl.a -> /home/thinkpalm/git/snapgear/lib/libssl/libssl.a lrwxrwxrwx 1 thinkpalm thinkpalm 49 Feb 19 13:29 libssl.so -> /home/thinkpalm/git/snapgear/lib/libssl/libssl.so lrwxrwxrwx 1 thinkpalm thinkpalm 55 Feb 19 13:29 libssl.so.1.0.0 -> /home/thinkpalm/git/snapgear/lib/libssl/libssl.so.1.0.0 drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:08 libtinyxml lrwxrwxrwx 1 thinkpalm thinkpalm 57 Feb 19 13:29 libtinyxml.so -> /home/thinkpalm/git/snapgear/lib/libtinyxml/libtinyxml.so drwxr-xr-x 5 thinkpalm thinkpalm 4096 Nov 10 2005 libupnp drwxr-xr-x 5 thinkpalm thinkpalm 4096 May 5 2010 libusb drwxrwxr-x 5 thinkpalm thinkpalm 4096 Feb 19 11:19 libusb-compat drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 lib_vos drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 libvsc7390 lrwxrwxrwx 1 thinkpalm thinkpalm 44 Feb 19 13:29 libz.a -> /home/thinkpalm/git/snapgear/lib/zlib/libz.a lrwxrwxrwx 1 thinkpalm thinkpalm 9 Feb 19 11:19 lua -> lua-5.1.4 lrwxrwxrwx 1 thinkpalm thinkpalm 36 Feb 19 11:18 resolve -> /home/thinkpalm/git/e30/mand/resolve Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 24, 2015 6:30 AM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile On 02/23/2015 10:13 AM, Rajeesh R wrote: > Hi > > Libcryto is exist in my LINKFLAG path . also it passed check lib (allconfig.py) > So Is it related to any Linking sequence issue ie lcrypto coming before ? I tried RPATH . But not get effected .. Please show me exact location (full path and name) of your libcrypto libraries. Thanks, Ben > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 23, 2015 10:19 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile > > On 02/23/2015 06:06 AM, Rajeesh R wrote: >> Hi, >> >> Facing some errors while crosscompiling to power pc. > > You need to cross-compile libcrypto, or find a version that someone > has already cross-compiled for your platform. > > Thanks, > Ben > >> >> scons: Building targets ... >> scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. >> scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. >> scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. >> scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. >> scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. >> /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -rdynamic -Wl,-rpath=\$ORIGIN/../lib >> obj/powerpc-unknown-none/cli/tools/cli_generic.o -L/home/thinkpalm/git/snapgear/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp >> -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto >> -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools >> -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm >> /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed >> by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' >> collect2: error: ld returned 1 exit status >> scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error >> >> >> My Command is >> >> scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include >> LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib >> >> I tried with command >> >> scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include >> LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib >> >> still the same issue >> >> Thanks >> Rajeesh >> >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> >> >> _______________________________________________ >> Xorp-hackers mailing list >> Xorp-hackers at icir.org >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Mon Feb 23 21:50:05 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Tue, 24 Feb 2015 05:50:05 +0000 Subject: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA772F4C9@SS016.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA772E3A6@SS016.chn.synergy.com>, <54EB5A30.1010309@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA772E414@SS016.chn.synergy.com>, <54EBCD37.8060003@candelatech.com>, <991638A0F9045847BB52E1BE67DA871AA772F4C9@SS016.chn.synergy.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA772F4E9@SS016.chn.synergy.com> Hi, Problem solve by using the flag shared=no Thanks Rajeesh ________________________________________ From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] Sent: Tuesday, February 24, 2015 9:17 AM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile Hi, /home/thinkpalm/git/snapgear/lib Here Iam keeping all cross compiled libraries Result of - ls -la is below lrwxrwxrwx 1 thinkpalm thinkpalm 37 Feb 19 11:18 dnscache -> /home/thinkpalm/git/e30/mand/dnscache drwxr-xr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:03 expat drwxr-xr-x 3 thinkpalm thinkpalm 4096 Feb 19 13:00 flex drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libaes drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libares drwxr-xr-x 5 thinkpalm thinkpalm 4096 Nov 10 2005 libatm lrwxrwxrwx 1 thinkpalm thinkpalm 51 Feb 19 13:29 libb2bua.so -> /home/thinkpalm/git/snapgear/lib/libewn/libb2bua.so drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libbzip2 drwxr-xr-x 24 thinkpalm thinkpalm 4096 Nov 10 2005 libc drwxr-xr-x 7 thinkpalm thinkpalm 4096 Nov 10 2005 libccmalloc drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:08 libcrypt_algo_proxy lrwxrwxrwx 1 thinkpalm thinkpalm 51 Feb 19 13:29 libcrypto.a -> /home/thinkpalm/git/snapgear/lib/libssl/libcrypto.a lrwxrwxrwx 1 thinkpalm thinkpalm 52 Feb 19 13:29 libcrypto.so -> /home/thinkpalm/git/snapgear/lib/libssl/libcrypto.so lrwxrwxrwx 1 thinkpalm thinkpalm 58 Feb 19 13:29 libcrypto.so.1.0.0 -> /home/thinkpalm/git/snapgear/lib/libssl/libcrypto.so.1.0.0 drwxr-xr-x 8 thinkpalm thinkpalm 4096 Nov 10 2005 libcurl drwxr-xr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:00 libdes lrwxrwxrwx 1 thinkpalm thinkpalm 48 Feb 19 13:29 libdes.a -> /home/thinkpalm/git/snapgear/lib/libdes/libdes.a drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 libewdsp drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 libewmgl drwxr-xr-x 12 thinkpalm thinkpalm 4096 Feb 19 13:04 libexpat lrwxrwxrwx 1 thinkpalm thinkpalm 50 Feb 19 13:29 libexpat.so -> /home/thinkpalm/git/snapgear/lib/expat/libexpat.so lrwxrwxrwx 1 thinkpalm thinkpalm 51 Feb 19 13:29 libfl.a -> /home/thinkpalm/git/snapgear/lib/flex/build/libfl.a lrwxrwxrwx 1 thinkpalm thinkpalm 57 Feb 19 13:29 libform.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libform.a drwxr-xr-x 3 thinkpalm thinkpalm 4096 Feb 19 13:02 libg drwxrwxr-x 5 thinkpalm thinkpalm 4096 Feb 19 13:04 libghthash drwxr-xr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:02 libgmp lrwxrwxrwx 1 thinkpalm thinkpalm 48 Feb 19 13:29 libgmp.a -> /home/thinkpalm/git/snapgear/lib/libgmp/libgmp.a lrwxrwxrwx 1 thinkpalm thinkpalm 83 Feb 19 13:29 liblber.a -> /home/thinkpalm/git/snapgear/lib/libldap/builddir/libraries/liblber/.libs/liblber.a drwxrwxr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:03 libldap lrwxrwxrwx 1 thinkpalm thinkpalm 83 Feb 19 13:29 libldap.a -> /home/thinkpalm/git/snapgear/lib/libldap/builddir/libraries/libldap/.libs/libldap.a drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libm lrwxrwxrwx 1 thinkpalm thinkpalm 57 Feb 19 13:29 libmenu.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libmenu.a drwxrwxr-x 3 thinkpalm thinkpalm 4096 Feb 9 11:58 libmgw drwxrwxr-x 7 thinkpalm thinkpalm 4096 Feb 19 13:29 libmini323 drwxr-xr-x 18 thinkpalm thinkpalm 4096 Feb 19 13:02 libncurses lrwxrwxrwx 1 thinkpalm thinkpalm 60 Feb 19 13:29 libncurses.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libncurses.a drwxr-xr-x 2 thinkpalm thinkpalm 4096 Nov 10 2005 libnet drwxr-xr-x 11 thinkpalm thinkpalm 4096 Nov 10 2005 Libnet lrwxrwxrwx 1 thinkpalm thinkpalm 42 Feb 19 11:18 Libnet-1.0.2a -> /home/thinkpalm/git/e30/mand/Libnet-1.0.2a drwxrwxr-x 3 thinkpalm thinkpalm 4096 Feb 9 11:58 libnl-1.1 drwxrwxr-x 6 thinkpalm thinkpalm 4096 Feb 19 13:08 libntlm lrwxrwxrwx 1 thinkpalm thinkpalm 63 Feb 19 13:29 libntlm.so -> /home/thinkpalm/git/snapgear/lib/libntlm/build/.libs/libntlm.so drwxrwxr-x 8 thinkpalm thinkpalm 4096 Feb 19 13:04 libosip2 drwxrwxr-x 11 thinkpalm thinkpalm 4096 Feb 19 13:29 libpam drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:03 libpamradius lrwxrwxrwx 1 thinkpalm thinkpalm 61 Feb 19 13:29 libpamradius.so -> /home/thinkpalm/git/snapgear/lib/libpamradius/libpamradius.so lrwxrwxrwx 1 thinkpalm thinkpalm 56 Feb 19 13:29 libpam.so -> /home/thinkpalm/git/snapgear/lib/libpam/libpam/libpam.so drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:03 libpamtacacs lrwxrwxrwx 1 thinkpalm thinkpalm 61 Feb 19 13:29 libpamtacacs.so -> /home/thinkpalm/git/snapgear/lib/libpamtacacs/libpamtacacs.so lrwxrwxrwx 1 thinkpalm thinkpalm 58 Feb 19 13:29 libpanel.a -> /home/thinkpalm/git/snapgear/lib/libncurses/lib/libpanel.a drwxr-xr-x 13 thinkpalm thinkpalm 4096 Feb 19 13:03 libpcap lrwxrwxrwx 1 thinkpalm thinkpalm 56 Feb 19 13:29 libpcap.a -> /home/thinkpalm/git/snapgear/lib/libpcap/build/libpcap.a drwxr-xr-x 5 thinkpalm thinkpalm 4096 Nov 10 2005 libpng drwxrwxr-x 7 thinkpalm thinkpalm 4096 Feb 19 13:03 libqDecoder lrwxrwxrwx 1 thinkpalm thinkpalm 63 Feb 19 13:29 libqDecoder.so -> /home/thinkpalm/git/snapgear/lib/libqDecoder/src/libqDecoder.so drwxrwxr-x 3 thinkpalm thinkpalm 4096 Feb 19 11:19 libresip drwxrwxr-x 23 thinkpalm thinkpalm 4096 Feb 20 10:41 libssl lrwxrwxrwx 1 thinkpalm thinkpalm 48 Feb 19 13:29 libssl.a -> /home/thinkpalm/git/snapgear/lib/libssl/libssl.a lrwxrwxrwx 1 thinkpalm thinkpalm 49 Feb 19 13:29 libssl.so -> /home/thinkpalm/git/snapgear/lib/libssl/libssl.so lrwxrwxrwx 1 thinkpalm thinkpalm 55 Feb 19 13:29 libssl.so.1.0.0 -> /home/thinkpalm/git/snapgear/lib/libssl/libssl.so.1.0.0 drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 19 13:08 libtinyxml lrwxrwxrwx 1 thinkpalm thinkpalm 57 Feb 19 13:29 libtinyxml.so -> /home/thinkpalm/git/snapgear/lib/libtinyxml/libtinyxml.so drwxr-xr-x 5 thinkpalm thinkpalm 4096 Nov 10 2005 libupnp drwxr-xr-x 5 thinkpalm thinkpalm 4096 May 5 2010 libusb drwxrwxr-x 5 thinkpalm thinkpalm 4096 Feb 19 11:19 libusb-compat drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 lib_vos drwxrwxr-x 2 thinkpalm thinkpalm 4096 Feb 9 11:58 libvsc7390 lrwxrwxrwx 1 thinkpalm thinkpalm 44 Feb 19 13:29 libz.a -> /home/thinkpalm/git/snapgear/lib/zlib/libz.a lrwxrwxrwx 1 thinkpalm thinkpalm 9 Feb 19 11:19 lua -> lua-5.1.4 lrwxrwxrwx 1 thinkpalm thinkpalm 36 Feb 19 11:18 resolve -> /home/thinkpalm/git/e30/mand/resolve Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 24, 2015 6:30 AM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile On 02/23/2015 10:13 AM, Rajeesh R wrote: > Hi > > Libcryto is exist in my LINKFLAG path . also it passed check lib (allconfig.py) > So Is it related to any Linking sequence issue ie lcrypto coming before ? I tried RPATH . But not get effected .. Please show me exact location (full path and name) of your libcrypto libraries. Thanks, Ben > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Monday, February 23, 2015 10:19 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile > > On 02/23/2015 06:06 AM, Rajeesh R wrote: >> Hi, >> >> Facing some errors while crosscompiling to power pc. > > You need to cross-compile libcrypto, or find a version that someone > has already cross-compiled for your platform. > > Thanks, > Ben > >> >> scons: Building targets ... >> scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. >> scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. >> scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. >> scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. >> scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. >> /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -rdynamic -Wl,-rpath=\$ORIGIN/../lib >> obj/powerpc-unknown-none/cli/tools/cli_generic.o -L/home/thinkpalm/git/snapgear/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp >> -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto >> -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools >> -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm >> /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed >> by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' >> collect2: error: ld returned 1 exit status >> scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error >> >> >> My Command is >> >> scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include >> LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib >> >> I tried with command >> >> scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include >> LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib >> >> still the same issue >> >> Thanks >> Rajeesh >> >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> >> >> _______________________________________________ >> Xorp-hackers mailing list >> Xorp-hackers at icir.org >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers >> > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From rajeesh.r at thinkpalm.com Tue Feb 24 04:16:08 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Tue, 24 Feb 2015 12:16:08 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA772E37B@SS016.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA76F932A@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com>, <54E7681F.6040609@candelatech.com>, <991638A0F9045847BB52E1BE67DA871AA772E37B@SS016.chn.synergy.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA772F5A0@SS016.chn.synergy.com> Hi I could able to cross compile the source for powerpc arch ..!!!!!!!!! But While disabling features = enable_bgp=no = enable_ospf=no = enable_olsr=no = enable_vrrp=no and compiling I am geting error (Pls see below) Is it necessary to enable above protocols for compilation ? obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xcc): In function `hmac_md5': libxipc/hmac_md5.c:96: undefined reference to `MD5_Init' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xdc):libxipc/hmac_md5.c:97: undefined reference to `MD5_Update' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xec):libxipc/hmac_md5.c:98: undefined reference to `MD5_Update' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xf8):libxipc/hmac_md5.c:99: undefined reference to `MD5_Final' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x100):libxipc/hmac_md5.c:103: undefined reference to `MD5_Init' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x110):libxipc/hmac_md5.c:104: undefined reference to `MD5_Update' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x120):libxipc/hmac_md5.c:105: undefined reference to `MD5_Update' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x12c):libxipc/hmac_md5.c:106: undefined reference to `MD5_Final' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x16c):libxipc/hmac_md5.c:63: undefined reference to `MD5_Init' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x17c):libxipc/hmac_md5.c:64: undefined reference to `MD5_Update' obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x190):libxipc/hmac_md5.c:65: undefined reference to `MD5_Final' collect2: ld returned 1 exit status scons: *** [obj/powerpc-unknown-linux-gnu/rip/tools/rip_show_peer_stats] Error 1 scons: building terminated because of errors. make: *** [all] Error 2 Thanks Rajeesh ________________________________________ From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] Sent: Monday, February 23, 2015 4:05 PM To: Ben Greear Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp Hi I am facing an issue with RPATH . It is not taking the library . Its generated (pls see the below terminal log) I tried with RPATH variable but it is not taking. Any idea ? My command is scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -L/home/thinkpalm/git/snapgear/lib -rdynamic -Wl,-rpath=\$ORIGIN/../lib obj/powerpc-unknown-none/cli/tools/cli_generic.o -Lobj/powerpc-unknown-none/cli/tools/usr/lib -Lcli/tools/usr/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' collect2: error: ld returned 1 exit status scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error 1 scons: building terminated because of errors. Thanks Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Friday, February 20, 2015 10:30 PM To: Rajeesh R Cc: Syamasundar Gandikota; xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp On 02/20/2015 12:08 AM, Rajeesh R wrote: > Hi Syam, > > Thank you for your information > > Now I am facing an issue .see below error message . > > /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/win_dispatcher.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/win_dispatcher.cc > /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/profile.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/profile.cc > scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. > scons: building terminated because of errors. > make: *** [all] Error 2 > > Do you have any idea on this ? Do I want to enable or disable during compilation to generate it ? This should be auto-generated by the scons framework. You might grep through code to find what is supposed to be creating it and see if you can figure out why it is not. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ _______________________________________________ Xorp-hackers mailing list Xorp-hackers at icir.org http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From greearb at candelatech.com Tue Feb 24 06:56:09 2015 From: greearb at candelatech.com (Ben Greear) Date: Tue, 24 Feb 2015 06:56:09 -0800 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA772F5A0@SS016.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com>, <54E7681F.6040609@candelatech.com>, <991638A0F9045847BB52E1BE67DA871AA772E37B@SS016.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA772F5A0@SS016.chn.synergy.com> Message-ID: <54EC9109.50906@candelatech.com> On 02/24/2015 04:16 AM, Rajeesh R wrote: > Hi > > I could able to cross compile the source for powerpc arch ..!!!!!!!!! > > But While disabling features > > = enable_bgp=no > = enable_ospf=no > = enable_olsr=no > = enable_vrrp=no > > and compiling I am geting error (Pls see below) Is it necessary to enable above protocols for compilation ? > > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xcc): In function `hmac_md5': > libxipc/hmac_md5.c:96: undefined reference to `MD5_Init' Looks like this should be linking libssl or something like that? Thanks, Ben > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xdc):libxipc/hmac_md5.c:97: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xec):libxipc/hmac_md5.c:98: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xf8):libxipc/hmac_md5.c:99: undefined reference to `MD5_Final' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x100):libxipc/hmac_md5.c:103: undefined reference to `MD5_Init' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x110):libxipc/hmac_md5.c:104: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x120):libxipc/hmac_md5.c:105: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x12c):libxipc/hmac_md5.c:106: undefined reference to `MD5_Final' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x16c):libxipc/hmac_md5.c:63: undefined reference to `MD5_Init' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x17c):libxipc/hmac_md5.c:64: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x190):libxipc/hmac_md5.c:65: undefined reference to `MD5_Final' > collect2: ld returned 1 exit status > scons: *** [obj/powerpc-unknown-linux-gnu/rip/tools/rip_show_peer_stats] Error 1 > scons: building terminated because of errors. > make: *** [all] Error 2 > > > Thanks > Rajeesh > > ________________________________________ > From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] > Sent: Monday, February 23, 2015 4:05 PM > To: Ben Greear > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > Hi > > I am facing an issue with RPATH . It is not taking the library . Its generated (pls see the below terminal log) > I tried with RPATH variable but it is not taking. Any idea ? > > My command is > > scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib > > > scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. > scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. > scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. > scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. > scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. > /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -L/home/thinkpalm/git/snapgear/lib -rdynamic -Wl,-rpath=\$ORIGIN/../lib obj/powerpc-unknown-none/cli/tools/cli_generic.o -Lobj/powerpc-unknown-none/cli/tools/usr/lib -Lcli/tools/usr/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm > /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' > collect2: error: ld returned 1 exit status > scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error 1 > scons: building terminated because of errors. > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Friday, February 20, 2015 10:30 PM > To: Rajeesh R > Cc: Syamasundar Gandikota; xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/20/2015 12:08 AM, Rajeesh R wrote: >> Hi Syam, >> >> Thank you for your information >> >> Now I am facing an issue .see below error message . >> >> /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/win_dispatcher.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/win_dispatcher.cc >> /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/profile.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/profile.cc >> scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. >> scons: building terminated because of errors. >> make: *** [all] Error 2 >> >> Do you have any idea on this ? Do I want to enable or disable during compilation to generate it ? > > This should be auto-generated by the scons framework. You might grep through code to find what > is supposed to be creating it and see if you can figure out why it is not. > > Thanks, > Ben > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From rajeesh.r at thinkpalm.com Tue Feb 24 09:35:55 2015 From: rajeesh.r at thinkpalm.com (Rajeesh R) Date: Tue, 24 Feb 2015 17:35:55 +0000 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <54EC9109.50906@candelatech.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770B3A9@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com>, <54E7681F.6040609@candelatech.com>, <991638A0F9045847BB52E1BE67DA871AA772E37B@SS016.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA772F5A0@SS016.chn.synergy.com>, <54EC9109.50906@candelatech.com> Message-ID: <991638A0F9045847BB52E1BE67DA871AA772F5E1@SS016.chn.synergy.com> Hi Yes ..Without BGP .. Linking is not happening. I tried to enable only multicast but it is not worked out got errors related to linking then i enable bgp problem solved Thank you for your support . Rajeesh ________________________________________ From: Ben Greear [greearb at candelatech.com] Sent: Tuesday, February 24, 2015 8:26 PM To: Rajeesh R Cc: xorp-hackers at icir.org Subject: Re: [Xorp-hackers] Porting xorp On 02/24/2015 04:16 AM, Rajeesh R wrote: > Hi > > I could able to cross compile the source for powerpc arch ..!!!!!!!!! > > But While disabling features > > = enable_bgp=no > = enable_ospf=no > = enable_olsr=no > = enable_vrrp=no > > and compiling I am geting error (Pls see below) Is it necessary to enable above protocols for compilation ? > > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xcc): In function `hmac_md5': > libxipc/hmac_md5.c:96: undefined reference to `MD5_Init' Looks like this should be linking libssl or something like that? Thanks, Ben > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xdc):libxipc/hmac_md5.c:97: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xec):libxipc/hmac_md5.c:98: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xf8):libxipc/hmac_md5.c:99: undefined reference to `MD5_Final' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x100):libxipc/hmac_md5.c:103: undefined reference to `MD5_Init' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x110):libxipc/hmac_md5.c:104: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x120):libxipc/hmac_md5.c:105: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x12c):libxipc/hmac_md5.c:106: undefined reference to `MD5_Final' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x16c):libxipc/hmac_md5.c:63: undefined reference to `MD5_Init' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x17c):libxipc/hmac_md5.c:64: undefined reference to `MD5_Update' > obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x190):libxipc/hmac_md5.c:65: undefined reference to `MD5_Final' > collect2: ld returned 1 exit status > scons: *** [obj/powerpc-unknown-linux-gnu/rip/tools/rip_show_peer_stats] Error 1 > scons: building terminated because of errors. > make: *** [all] Error 2 > > > Thanks > Rajeesh > > ________________________________________ > From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] > Sent: Monday, February 23, 2015 4:05 PM > To: Ben Greear > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > Hi > > I am facing an issue with RPATH . It is not taking the library . Its generated (pls see the below terminal log) > I tried with RPATH variable but it is not taking. Any idea ? > > My command is > > scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib > > > scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. > scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. > scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. > scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. > scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. > /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -L/home/thinkpalm/git/snapgear/lib -rdynamic -Wl,-rpath=\$ORIGIN/../lib obj/powerpc-unknown-none/cli/tools/cli_generic.o -Lobj/powerpc-unknown-none/cli/tools/usr/lib -Lcli/tools/usr/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm > /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' > obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' > collect2: error: ld returned 1 exit status > scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error 1 > scons: building terminated because of errors. > > Thanks > Rajeesh > > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Friday, February 20, 2015 10:30 PM > To: Rajeesh R > Cc: Syamasundar Gandikota; xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/20/2015 12:08 AM, Rajeesh R wrote: >> Hi Syam, >> >> Thank you for your information >> >> Now I am facing an issue .see below error message . >> >> /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/win_dispatcher.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/win_dispatcher.cc >> /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/profile.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/profile.cc >> scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. >> scons: building terminated because of errors. >> make: *** [all] Error 2 >> >> Do you have any idea on this ? Do I want to enable or disable during compilation to generate it ? > > This should be auto-generated by the scons framework. You might grep through code to find what > is supposed to be creating it and see if you can figure out why it is not. > > Thanks, > Ben > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > > _______________________________________________ > Xorp-hackers mailing list > Xorp-hackers at icir.org > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ From greearb at candelatech.com Tue Feb 24 09:44:53 2015 From: greearb at candelatech.com (Ben Greear) Date: Tue, 24 Feb 2015 09:44:53 -0800 Subject: [Xorp-hackers] Porting xorp In-Reply-To: <991638A0F9045847BB52E1BE67DA871AA772F5E1@SS016.chn.synergy.com> References: <991638A0F9045847BB52E1BE67DA871AA706A836@SS015.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770C3BE@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770D3EC@SS014.chn.synergy.com>, , <991638A0F9045847BB52E1BE67DA871AA770D413@SS014.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA770E46D@SS014.chn.synergy.com>, <991638A0F9045847BB52E1BE67DA871AA770E4B2@SS014.chn.synergy.com>, <54E7681F.6040609@candelatech.com>, <991638A0F9045847BB52E1BE67DA871AA772E37B@SS016.chn.synergy.com> <991638A0F9045847BB52E1BE67DA871AA772F5A0@SS016.chn.synergy.com>, <54EC9109.50906@candelatech.com> <991638A0F9045847BB52E1BE67DA871AA772F5E1@SS016.chn.synergy.com> Message-ID: <54ECB895.8080902@candelatech.com> On 02/24/2015 09:35 AM, Rajeesh R wrote: > Hi > > Yes ..Without BGP .. Linking is not happening. I tried to enable only multicast but it is not worked out got errors related to linking > then i enable bgp problem solved Look in the bgp directory and see if it is linking the crypt or maybe ssl library. You could probably put that same include into the libxipc sconscript file and properly link w/out bgp enabled? Thanks, Ben > > Thank you for your support . > Rajeesh > ________________________________________ > From: Ben Greear [greearb at candelatech.com] > Sent: Tuesday, February 24, 2015 8:26 PM > To: Rajeesh R > Cc: xorp-hackers at icir.org > Subject: Re: [Xorp-hackers] Porting xorp > > On 02/24/2015 04:16 AM, Rajeesh R wrote: >> Hi >> >> I could able to cross compile the source for powerpc arch ..!!!!!!!!! >> >> But While disabling features >> >> = enable_bgp=no >> = enable_ospf=no >> = enable_olsr=no >> = enable_vrrp=no >> >> and compiling I am geting error (Pls see below) Is it necessary to enable above protocols for compilation ? >> >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xcc): In function `hmac_md5': >> libxipc/hmac_md5.c:96: undefined reference to `MD5_Init' > > Looks like this should be linking libssl or something like that? > > Thanks, > Ben > >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xdc):libxipc/hmac_md5.c:97: undefined reference to `MD5_Update' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xec):libxipc/hmac_md5.c:98: undefined reference to `MD5_Update' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0xf8):libxipc/hmac_md5.c:99: undefined reference to `MD5_Final' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x100):libxipc/hmac_md5.c:103: undefined reference to `MD5_Init' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x110):libxipc/hmac_md5.c:104: undefined reference to `MD5_Update' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x120):libxipc/hmac_md5.c:105: undefined reference to `MD5_Update' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x12c):libxipc/hmac_md5.c:106: undefined reference to `MD5_Final' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x16c):libxipc/hmac_md5.c:63: undefined reference to `MD5_Init' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x17c):libxipc/hmac_md5.c:64: undefined reference to `MD5_Update' >> obj/powerpc-unknown-linux-gnu/libxipc/libxorp_ipc.a(hmac_md5.o)(.text+0x190):libxipc/hmac_md5.c:65: undefined reference to `MD5_Final' >> collect2: ld returned 1 exit status >> scons: *** [obj/powerpc-unknown-linux-gnu/rip/tools/rip_show_peer_stats] Error 1 >> scons: building terminated because of errors. >> make: *** [all] Error 2 >> >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: xorp-hackers-bounces at icir.org [xorp-hackers-bounces at icir.org] on behalf of Rajeesh R [rajeesh.r at thinkpalm.com] >> Sent: Monday, February 23, 2015 4:05 PM >> To: Ben Greear >> Cc: xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> Hi >> >> I am facing an issue with RPATH . It is not taking the library . Its generated (pls see the below terminal log) >> I tried with RPATH variable but it is not taking. Any idea ? >> >> My command is >> >> scons build=powerpc CC=/usr/local/ppce500v2/bin/powerpc-linux-gcc CXX=/usr/local/ppce500v2/bin/powerpc-linux-g++ CFLAGS=-I/home/thinkpalm/git/snapgear/include LINKFLAGS=-L/home/thinkpalm/git/snapgear/lib RPATH=/home/thinkpalm/git/snapgear/lib >> >> >> scons: `obj/powerpc-unknown-none/libxorp/libxorp_core.so' is up to date. >> scons: `obj/powerpc-unknown-none/libcomm/libxorp_comm.so' is up to date. >> scons: `obj/powerpc-unknown-none/libxipc/libxorp_ipc.so' is up to date. >> scons: `obj/powerpc-unknown-none/xrl/interfaces/libxif_cli_processor.so' is up to date. >> scons: `obj/powerpc-unknown-none/libproto/libxorp_proto.so' is up to date. >> /usr/local/ppce500v2/bin/powerpc-linux-g++ -o obj/powerpc-unknown-none/cli/tools/cli_generic -Wl,-z,origin -L/home/thinkpalm/git/snapgear/lib -rdynamic -Wl,-rpath=\$ORIGIN/../lib obj/powerpc-unknown-none/cli/tools/cli_generic.o -Lobj/powerpc-unknown-none/cli/tools/usr/lib -Lcli/tools/usr/lib -Lobj/powerpc-unknown-none/libxorp -Llibxorp -Lobj/powerpc-unknown-none/libcomm -Llibcomm -Lobj/powerpc-unknown-none/libxipc -Llibxipc -Lobj/powerpc-unknown-none/libproto -Llibproto -Lobj/powerpc-unknown-none/xrl/interfaces -Lxrl/interfaces -Lobj/powerpc-unknown-none/xrl/targets -Lxrl/targets -Lobj/powerpc-unknown-none/cli/tools -Lcli/tools -lxif_cli_processor -lxorp_ipc -lxorp_core -lxorp_proto -lxorp_comm >> /usr/local/ppce500v2/bin/../lib/gcc/powerpc-buildroot-linux-gnuspe/4.7.3/../../../../powerpc-buildroot-linux-gnuspe/bin/ld: warning: libcrypto.so.1.0.0, needed by obj/powerpc-unknown-none/libxipc/libxorp_ipc.so, not found (try using -rpath or -rpath-link) >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Init' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Final' >> obj/powerpc-unknown-none/libxipc/libxorp_ipc.so: undefined reference to `MD5_Update' >> collect2: error: ld returned 1 exit status >> scons: *** [obj/powerpc-unknown-none/cli/tools/cli_generic] Error 1 >> scons: building terminated because of errors. >> >> Thanks >> Rajeesh >> >> ________________________________________ >> From: Ben Greear [greearb at candelatech.com] >> Sent: Friday, February 20, 2015 10:30 PM >> To: Rajeesh R >> Cc: Syamasundar Gandikota; xorp-hackers at icir.org >> Subject: Re: [Xorp-hackers] Porting xorp >> >> On 02/20/2015 12:08 AM, Rajeesh R wrote: >>> Hi Syam, >>> >>> Thank you for your information >>> >>> Now I am facing an issue .see below error message . >>> >>> /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/win_dispatcher.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/win_dispatcher.cc >>> /usr/local/powerpc-linux/bin/powerpc-linux-g++ -o obj/powerpc-unknown-linux-gnu/libxorp/profile.os -c -O2 -g3 -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -DXORP_BUILDINFO -fPIC -DXRL_PF=120 -DXORP_VERSION=1.8.6-WIP -Iobj/powerpc-unknown-linux-gnu -I. -I. libxorp/profile.cc >>> scons: *** [obj/powerpc-unknown-linux-gnu/libxorp/build_info.os] Source `libxorp/build_info.cc' not found, needed by target `obj/powerpc-unknown-linux-gnu/libxorp/build_info.os'. >>> scons: building terminated because of errors. >>> make: *** [all] Error 2 >>> >>> Do you have any idea on this ? Do I want to enable or disable during compilation to generate it ? >> >> This should be auto-generated by the scons framework. You might grep through code to find what >> is supposed to be creating it and see if you can figure out why it is not. >> >> Thanks, >> Ben >> >> -- >> Ben Greear >> Candela Technologies Inc http://www.candelatech.com >> >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> >> _______________________________________________ >> Xorp-hackers mailing list >> Xorp-hackers at icir.org >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers >> >> ______________________________________________________________________ >> This email has been scanned by the Symantec Email Security.cloud service. >> For more information please visit http://www.symanteccloud.com >> ______________________________________________________________________ >> > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > -- Ben Greear Candela Technologies Inc http://www.candelatech.com