Hello,

I am working on Linux-phycore-AM335x-kit.

I trying to add OPENSWAN package into development.I have referred the following to configure ptxdist.

https://www.mail-archive.com/ptxdist@pengutronix.de/msg06140.html

I am facing the following error after ptxdist.


make[4]: Nothing to be done for `programs'.
make[4]: Leaving directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43/OBJ.linux.arm/programs/proc'
make[4]: Entering directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43/OBJ.linux.arm/programs/pluto'
LD _pluto_adns
LD whack
LD pluto
/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/../../../../arm-cortexa8-linux-gnueabihf/bin/ld: adns.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
adns.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [_pluto_adns] Error 1
make[4]: *** Waiting for unfinished jobs....
/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/../../../../arm-cortexa8-linux-gnueabihf/bin/ld: /opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43/OBJ.linux.arm/lib/libwhack/libwhack.a(whacklib.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43/OBJ.linux.arm/lib/libwhack/libwhack.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [whack] Error 1
/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/../../../../arm-cortexa8-linux-gnueabihf/bin/ld: connections.o: relocation R_ARM_MOVW_ABS_NC against `host_pairs' can not be used when making a shared object; recompile with -fPIC
connections.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [pluto] Error 1
make[4]: Leaving directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43/OBJ.linux.arm/programs/pluto'
make[3]: *** [programs] Error 1
make[3]: Leaving directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43/OBJ.linux.arm/programs'
make[2]: *** [programs] Error 1
make[2]: Leaving directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43/OBJ.linux.arm'
make[1]: *** [programs] Error 2
make[1]: Leaving directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-target/openswan-2.6.43'
make: *** [/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/state/openswan.compile] Error 2


--
Regards
Hardik A Gohil
Willowglen Msc Bhd