[Xorp-users] Cross-Compilation PPC Architecture patches
Pavlin Radoslavov
pavlin at icir.org
Wed Nov 28 13:41:49 PST 2007
Scher, Dave <dscher at mitre.org> wrote:
> I am trying to cross-compile xorp for a ppc platform. The build notes
> indicate that there may be a patch required to successfully
> cross-compile; but I cannot find the patch in the release 1.4 archive.
>
>
> Also without using the patch I received the following error when
> building the CLI:
>
> ld: normal_obj/getline.o: Relocations in generic ELF (EM: 20)
> normal_obj/getline.o: could not read symbols: File in wrong format
>
> I configured xorp using the following:
> ./configure --host=powerpc-linux --prefix=$CROSS_LOCATION/usr/include
> --with-openssl=$CROSS_LOCATION/usr
>
> The issue, I believe, is linking of cross arch. and native specific
> objects. Not sure if anyone has run into this specific issue. Since I
> have not yet applied the patch, I was wondering if this error is patch
> specific.
>
> Any clues?
It looks like that the cli/libtecla library wasn't compiled with the
right compiler (or most likely the linker itself is the wrong one).
There are several environmental variables that should be set before
running ./configure. See file BUILD_NOTES (in the XORP top-level
directory), Section "3.8. Cross-compilation". Pay special attention
to step h) which describes the XORP cross-compilation environment.
Setting variable "LD" for example is needed to point to the right
cross-compilation linker.
Please let me know how it goes.
Regards,
Pavlin
P.S. Option "--prefix=..." when running ./configure is used to
specify the directory to install XORP. I doubt you want to install
it in the "$CROSS_LOCATION/usr/include" header directory.
P.P.S. Which cross-compilation patch are you referring to?
All patches mentioned in the "Cross-compilation" section refer to
installing the cross-compilation environment, and each patch itself
is included inline.
More information about the Xorp-users
mailing list