[Openswan Users] Compile problem on embedded platform
Paul Wouters
paul at xelerance.com
Tue Jun 7 12:29:26 EDT 2011
On Tue, 7 Jun 2011, Erich Titl wrote:
> I am running into the following
>
> while building addconn
>
> ..../openswan-2.6.33/OBJ.linux.i386/lib/libcrypto/libsha2/libsha2.a: No
> such file or directory
>
> It feels like the libsha2 is not built, possibly because a number of
> subdirs are not added, maybe because the following is false.
>
> ifeq ($(USE_EXTRACRYPTO),true)
> SUBDIRS+=libblowfish libtwofish libserpent libsha2
> endif
That was changed:
ifeq ($(USE_EXTRACRYPTO),true)
CRYPTOLIBS+= ${LIBSERPENT} ${LIBTWOFISH} ${LIBBLOWFISH}
endif
CRYPTOLIBS=${LIBAES} ${LIBSHA1} ${LIBMD5} ${LIBMD2} ${LIBDESLITE} ${LIBSHA2}
libsha2 is always enabled now. Try 2.6.34rc6? (that will likely be the same as
2.6.34 full release)
Paul
> I am calling make like
>
> $(MAKE) CC=$(TARGET_CC) -C $(OPENSWAN_DIR) programs install\
> USERCOMPILE="-g $(BT_COPT_FLAGS)" \
> LDFLAGS="-L$(BT_STAGING_DIR)/usr/lib" \
> INC_USRLOCAL="/usr" \
> FINALBINDIR="/usr/lib/ipsec" \
> FINALLIBEXECDIR="/usr/lib/ipsec" \
> KERNELSRC=$(BT_LINUX_DIR) \
> DESTDIR=$(OPENSWAN_TARGET_DIR)
>
> which translates into
>
> ############################################################
> ## build the userland programs and install them
> ############################################################
> make
> CC=/data2/leaf/bering-uclibc/devel/src/leaf/bering-uclibc4/buildtool/staging/bin/gcc-m32
> -C openswan-2.6.33 programs install\
> USERCOMPILE="-g -Os -march=i486 -mtune=pentiumpro" \
>
> LDFLAGS="-L/data2/leaf/bering-uclibc/devel/src/leaf/bering-uclibc4/buildtool/staging/usr/lib"
> \
> INC_USRLOCAL="/usr" \
> FINALBINDIR="/usr/lib/ipsec" \
> FINALLIBEXECDIR="/usr/lib/ipsec" \
>
> KERNELSRC=/data2/leaf/bering-uclibc/devel/src/leaf/bering-uclibc4/buildtool/source/linux/linux
> \
>
> DESTDIR=/data2/leaf/bering-uclibc/devel/src/leaf/bering-uclibc4/buildtool/build/openswan
>
> Kernel is a 2.6.35.11
>
> Thanks
>
> Erich
> _______________________________________________
> Users at openswan.org
> http://lists.openswan.org/mailman/listinfo/users
> Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy
> Building and Integrating Virtual Private Networks with Openswan:
> http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
>
More information about the Users
mailing list