[Openswan dev] Patch building openswan without xlmto

Gilles Espinasse g.esp at free.fr
Thu Dec 25 12:40:13 EST 2008


----- Original Message ----- 
From: "Paul Wouters" <paul at xelerance.com>
To: "Gilles Espinasse" <g.esp at free.fr>
Cc: <Dev at openswan.org>
Sent: Sunday, December 21, 2008 8:25 PM
Subject: Re: [Openswan dev] Patch building openswan without xlmto


> On Sun, 21 Dec 2008, Gilles Espinasse wrote:
>
> > Not beautiful, just work with minimal documentation how to use it.
> >
> > In fact, there is one caveat, the one stage documented instruction 'make
> > programs install' does not work actually.
> >
> > A two stages usual instructions set work 'make programs && 'make
programs
> > install' work
>
> Actually, one problem that should be fixed is that 'make install' creates
> some files (the man pages) which are then owned by root, instead of the
> user, so 'make programs ; sudo make install' does not work as it should.
>
> Paul
>
I find the reason for 'make programs install' to fail.
This is a parallel build question where
 'make -j 1 programs install' work and
 'make -j 3 programs install' fail with
cc   spi.o
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libopenswan/liboswlog.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libopenswan/libopenswan.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libaes/libaes.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libsha1/libsha1.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libmd5/libmd5.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libmd2/libmd2.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libdes/libdes.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libsha2/libsha2.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libserpent/libserpe
nt.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libtwofish/libtwofi
sh.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libblowfish/libblow
fish.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/liboswcrypto/libosw
crypto.a -lcrypto
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libopenswan/liboswlog.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libopenswan/libopenswan.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libaes/libaes.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libsha1/libsha1.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libmd5/libmd5.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libmd2/libmd2.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libdes/libdes.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libsha2/libsha2.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libserpent/libserpe
nt.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libtwofish/libtwofi
sh.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/libblowfish/libblow
fish.a
/usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libcrypto/liboswcrypto/libosw
crypto.a -lcrypto   -lgmp -o spi
cc: /usr/src/openswan-2.6.20dr2/OBJ.linux.i386/lib/libopenswan/liboswlog.a:
No such file or directory
...

SUBDIRS should depend on the libs being already build but due to all the
different Makefile, I didn't find the proper way to do that.

Makefile chaining there is far from simple.

Anyway that work with make -j 1 programs install

I join a patch that remove the double export with LIBOPENSWANDIR


-------------- next part --------------
A non-text attachment was scrubbed...
Name: openswan-2.6.20dr2_double-export.patch
Type: application/octet-stream
Size: 622 bytes
Desc: not available
Url : http://lists.openswan.org/pipermail/dev/attachments/20081225/7d685883/attachment.obj 


More information about the Dev mailing list