[Xorp-hackers] XORP compilation for power pc

Gorja Prasad-B37785 B37785 at freescale.com
Tue Mar 13 12:25:47 PDT 2012


This is the exact command I have used and Imade sure that openssl compiled and installed at /usr/loac/ssl.

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


Config.log

> /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-li
> nux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc -o 
> obj/powerpc-none-linux-gnuspe/.sconf_temp/conftest_198.o -c -std=gnu99 
> -Iobj/powerpc-none-linux-gnuspe 
> obj/powerpc-none-linux-gnuspe/.sconf_temp/conftest_198.c
> obj/powerpc-none-linux-gnuspe/.sconf_temp/conftest_198.c:3:25: error: 
> openssl/md5.h: No such file or directory
> scons: Configure: no


Thanks,
Prasad gorja
    

-----Original Message-----
From: Ben Greear [mailto:greearb at candelatech.com] 
Sent: Wednesday, March 14, 2012 12:21 AM
To: Gorja Prasad-B37785
Cc: xorp-hackers at icir.org
Subject: Re: XORP compilation for power pc

On 03/13/2012 11:44 AM, Gorja Prasad-B37785 wrote:
> Log1:(when included CFLAGS=-I=-I/usr/local/ssl/include \
> 	CXXFLAGS=-I/usr/local/ssl/include \
> 	>  LINKFLAGS=-L/usr/local/ssl/lib)\

This doesn't seem to be working, as I see no mention of those flags in the openssl compile check that fails.  Please post your exact commands that you are using to compile.

> Checking whether fpclassify is declared... no Checking whether 
> fpclassify is declared... no
> ERROR:  Cannot find fpclassify, tried -std=gnu99 as well

Not sure about this..maybe it's OK...if not, it should blow up later in the compile.

> 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.
>
>
> Log3(config.log):
>
> cons: Configure: Checking for C header file openssl/md5.h...
> obj/powerpc-none-linux-gnuspe/.sconf_temp/conftest_198.c<-
>    |#include<sys/types.h>
>    |
>    |#include<openssl/md5.h>
>    |
>    |
> /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-li
> nux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc -o 
> obj/powerpc-none-linux-gnuspe/.sconf_temp/conftest_198.o -c -std=gnu99 
> -Iobj/powerpc-none-linux-gnuspe 
> obj/powerpc-none-linux-gnuspe/.sconf_temp/conftest_198.c
> obj/powerpc-none-linux-gnuspe/.sconf_temp/conftest_198.c:3:25: error: 
> openssl/md5.h: No such file or directory
> scons: Configure: no

I'd expect to see -I.../usr/local/... in this command since you are specifying the flags.

Thanks,
Ben


--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com






More information about the Xorp-hackers mailing list