[Xorp-hackers] xorp - Undefined reference - Powerpc Crosscompile

Rajeesh R rajeesh.r at thinkpalm.com
Mon Feb 23 19:47:30 PST 2015


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 <greearb at candelatech.com>
> 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 <greearb at candelatech.com>
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
______________________________________________________________________



More information about the Xorp-hackers mailing list