[Openswan Users] Compile problem on embedded platform

Erich Titl erich.titl at think.ch
Tue Jun 7 05:09:50 EDT 2011


Hi Folks

I am trying to build openswan-2.6.33 on an embeddeded X86 platform
(http://leaf.sourceforge.net).

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

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


More information about the Users mailing list