[Xorp-hackers] XORP compilation for power pc

Gorja Prasad-B37785 B37785 at freescale.com
Tue Mar 13 11:14:53 PDT 2012


Ben,



Thanks for the reply and I have registered with my coreID.

I have compiled openssl-1.0.0 and installed at default location /usr/local/ssl/ and can see /usr/local/ssl/lib and /usr/local/ssl/bin directories.



scons build= powerpc-none-linux-gnuspe \

     STRIP=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-strip \

     CC=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc \

     CXX=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-g++
     CFLAGS=-I=-I/usr/local/ssl/include \
     CXXFLAGS=-I/usr/local/ssl/include \
     LINKFLAGS=-L/usr/local/ssl/lib



I hit the road either ERROR: Cannot find required openssl/md5.h or ERROR: cannot find fpclassify,tried -std=gnu99 as well.



>>>>>>>I think I compiled openssl and placed it in the standard include & library paths for the cross-compiler when using ARM



Could you provide the paths where you have placed opensssl for ARM.





Thanks,

Prasad Gorja





On 03/13/2012 10:05 AM, Gorja Prasad-B37785 wrote:

> Some how, my mail got bounced back to me. Please help me!.



Please make sure you are subscribed with the proper email.



> Hi,

>

> I am trying to compile  tried to compile XORP-1.8.5 for PowerPC.

> 1.Compiled openssl-1.0.0 for PowerPC by using command and installed successsfully:

> CC=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnus

> pe-gcc \

> RANLIB=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-

> gnuspe-ranlib \

> AR==$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnu

> spe-ar\ Perl Configure  --prefix=$(HOME)/openssl-1.0.0 linux-ppc

>

> Make

> Make install

>

>

> 2. Build XORP-1.8.5 by the following command:

>

> scons build= powerpc-none-linux-gnuspe \

>      STRIP=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-strip \

>      CC=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc \

>

> CXX=$(TOOL_CHAIN)/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnu

> spe-g++

>

> It Throws an error that could not find openssl/md5.h and build exited, but I do not see an option of --with-openssl in scons -help or scons -H.

> But in step3(cross compilation heading),BUILD_NOTES, it is mentioned that "Build xorp with the cross-compiler, specifying the path to openssl."

>

> I am aware that xorp-1.6 can be compiled by using the command

> xorp-1.6#./Configure --with-openssl=$(HOME)/openssl-1.0.0 --host=

> powerpc-none-linux-gnuspe

>

> Please let me know how to set up the path for openssl for XORP-1.8.5 for scons.



I think I compiled openssl and placed it in the standard include & library paths for the cross-compiler when using ARM.



If you patch scons files to allow specifying openssl, please post them for inclusion.  Or, maybe someone else on the list knows how to do this...



Thanks,

Ben



--

Ben Greear <greearb at candelatech.com<mailto:greearb at candelatech.com>>

Candela Technologies Inc  http://www.candelatech.com






- Prasad Gorja

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20120313/b171c554/attachment.html 


More information about the Xorp-hackers mailing list