Project

General

Profile

Issue #3143

failure for "make prefix=/somedir install"

Added by Harald Dunkel about 1 year ago. Updated about 1 month ago.

Status:
Closed
Priority:
Low
Category:
build
Affected version:
5.8.0
Resolution:
No feedback

Description

Not a big issue, but "make prefix=/usr/local/stow/strongswan-5.8.0 install" gave me

:
Making install in libsimaka
make[3]: Entering directory '/home/harri/debian/strongswan/tmp/strongswan-5.8.0/src/libsimaka'
make[4]: Entering directory '/home/harri/debian/strongswan/tmp/strongswan-5.8.0/src/libsimaka'
make[4]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/stow/strongswan-5.8.0/lib/ipsec'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libsimaka.la '/usr/local/stow/strongswan-5.8.0/lib/ipsec'
libtool:   error: error: cannot install 'libsimaka.la' to a directory not ending in /usr/local/lib/ipsec
make[4]: *** [Makefile:504: install-ipseclibLTLIBRARIES] Error 1
make[4]: Leaving directory '/home/harri/debian/strongswan/tmp/strongswan-5.8.0/src/libsimaka'
make[3]: *** [Makefile:675: install-am] Error 2
make[3]: Leaving directory '/home/harri/debian/strongswan/tmp/strongswan-5.8.0/src/libsimaka'
make[2]: *** [Makefile:533: install-recursive] Error 1
make[2]: Leaving directory '/home/harri/debian/strongswan/tmp/strongswan-5.8.0/src'
make[1]: *** [Makefile:594: install-recursive] Error 1
make[1]: Leaving directory '/home/harri/debian/strongswan/tmp/strongswan-5.8.0'
make: *** [Makefile:891: install] Error 2

Other *.la files did not have this problem:
% ls -al /usr/local/stow/strongswan-5.8.0/lib/ipsec/
total 3776
drwxr-sr-x 3 harri staff    4096 Aug 12 18:16 .
drwxr-sr-x 3 harri staff    4096 Aug 12 18:16 ..
-rwxr-xr-x 1 harri staff     981 Aug 12 18:16 libstrongswan.la
lrwxrwxrwx 1 harri staff      22 Aug 12 18:16 libstrongswan.so -> libstrongswan.so.0.0.0
lrwxrwxrwx 1 harri staff      22 Aug 12 18:16 libstrongswan.so.0 -> libstrongswan.so.0.0.0
-rwxr-xr-x 1 harri staff 3849264 Aug 12 18:16 libstrongswan.so.0.0.0
drwxr-sr-x 2 harri staff    4096 Aug 12 18:16 plugins

% ls -al /usr/local/stow/strongswan-5.8.0/lib/ipsec/plugins/
total 8276
drwxr-sr-x 2 harri staff    4096 Aug 12 18:16 .
drwxr-sr-x 3 harri staff    4096 Aug 12 18:16 ..
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-aes.la
-rwxr-xr-x 1 harri staff  128504 Aug 12 18:16 libstrongswan-aes.so
-rwxr-xr-x 1 harri staff    1001 Aug 12 18:16 libstrongswan-agent.la
-rwxr-xr-x 1 harri staff  106768 Aug 12 18:16 libstrongswan-agent.so
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-ccm.la
-rwxr-xr-x 1 harri staff  104328 Aug 12 18:16 libstrongswan-ccm.so
-rwxr-xr-x 1 harri staff    1013 Aug 12 18:16 libstrongswan-chapoly.la
-rwxr-xr-x 1 harri staff  402576 Aug 12 18:16 libstrongswan-chapoly.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-cmac.la
-rwxr-xr-x 1 harri staff  101096 Aug 12 18:16 libstrongswan-cmac.so
-rwxr-xr-x 1 harri staff    1037 Aug 12 18:16 libstrongswan-constraints.la
-rwxr-xr-x 1 harri staff  120744 Aug 12 18:16 libstrongswan-constraints.so
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-ctr.la
-rwxr-xr-x 1 harri staff   90208 Aug 12 18:16 libstrongswan-ctr.so
-rwxr-xr-x 1 harri staff    1041 Aug 12 18:16 libstrongswan-curl.la
-rwxr-xr-x 1 harri staff  114416 Aug 12 18:16 libstrongswan-curl.so
-rwxr-xr-x 1 harri staff    1031 Aug 12 18:16 libstrongswan-curve25519.la
-rwxr-xr-x 1 harri staff  810552 Aug 12 18:16 libstrongswan-curve25519.so
-rwxr-xr-x 1 harri staff    1007 Aug 12 18:16 libstrongswan-dnskey.la
-rwxr-xr-x 1 harri staff   97032 Aug 12 18:16 libstrongswan-dnskey.so
-rwxr-xr-x 1 harri staff    1019 Aug 12 18:16 libstrongswan-fips-prf.la
-rwxr-xr-x 1 harri staff   93184 Aug 12 18:16 libstrongswan-fips-prf.so
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-gcm.la
-rwxr-xr-x 1 harri staff  104272 Aug 12 18:16 libstrongswan-gcm.so
-rwxr-xr-x 1 harri staff    1058 Aug 12 18:16 libstrongswan-gcrypt.la
-rwxr-xr-x 1 harri staff  301760 Aug 12 18:16 libstrongswan-gcrypt.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-gmp.la
-rwxr-xr-x 1 harri staff  240632 Aug 12 18:16 libstrongswan-gmp.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-hmac.la
-rwxr-xr-x 1 harri staff   91200 Aug 12 18:16 libstrongswan-hmac.so
-rwxr-xr-x 1 harri staff    1009 Aug 12 18:16 libstrongswan-ldap.la
-rwxr-xr-x 1 harri staff   92448 Aug 12 18:16 libstrongswan-ldap.so
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-md5.la
-rwxr-xr-x 1 harri staff   71344 Aug 12 18:16 libstrongswan-md5.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-mgf1.la
-rwxr-xr-x 1 harri staff   93224 Aug 12 18:16 libstrongswan-mgf1.so
-rwxr-xr-x 1 harri staff    1001 Aug 12 18:16 libstrongswan-nonce.la
-rwxr-xr-x 1 harri staff   84152 Aug 12 18:16 libstrongswan-nonce.so
-rwxr-xr-x 1 harri staff    1022 Aug 12 18:16 libstrongswan-openssl.la
-rwxr-xr-x 1 harri staff  939752 Aug 12 18:16 libstrongswan-openssl.so
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-pem.la
-rwxr-xr-x 1 harri staff  145376 Aug 12 18:16 libstrongswan-pem.so
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-pgp.la
-rwxr-xr-x 1 harri staff  192256 Aug 12 18:16 libstrongswan-pgp.so
-rwxr-xr-x 1 harri staff    1001 Aug 12 18:16 libstrongswan-pkcs1.la
-rwxr-xr-x 1 harri staff  130120 Aug 12 18:16 libstrongswan-pkcs1.so
-rwxr-xr-x 1 harri staff    1007 Aug 12 18:16 libstrongswan-pkcs11.la
-rwxr-xr-x 1 harri staff  521816 Aug 12 18:16 libstrongswan-pkcs11.so
-rwxr-xr-x 1 harri staff    1007 Aug 12 18:16 libstrongswan-pkcs12.la
-rwxr-xr-x 1 harri staff  104880 Aug 12 18:16 libstrongswan-pkcs12.so
-rwxr-xr-x 1 harri staff    1001 Aug 12 18:16 libstrongswan-pkcs7.la
-rwxr-xr-x 1 harri staff  304824 Aug 12 18:16 libstrongswan-pkcs7.so
-rwxr-xr-x 1 harri staff    1001 Aug 12 18:16 libstrongswan-pkcs8.la
-rwxr-xr-x 1 harri staff   92000 Aug 12 18:16 libstrongswan-pkcs8.so
-rwxr-xr-x 1 harri staff    1007 Aug 12 18:16 libstrongswan-pubkey.la
-rwxr-xr-x 1 harri staff   94592 Aug 12 18:16 libstrongswan-pubkey.so
-rwxr-xr-x 1 harri staff    1007 Aug 12 18:16 libstrongswan-random.la
-rwxr-xr-x 1 harri staff   90072 Aug 12 18:16 libstrongswan-random.so
-rwxr-xr-x 1 harri staff     989 Aug 12 18:16 libstrongswan-rc2.la
-rwxr-xr-x 1 harri staff   98344 Aug 12 18:16 libstrongswan-rc2.so
-rwxr-xr-x 1 harri staff    1031 Aug 12 18:16 libstrongswan-revocation.la
-rwxr-xr-x 1 harri staff  122288 Aug 12 18:16 libstrongswan-revocation.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-sha1.la
-rwxr-xr-x 1 harri staff  132592 Aug 12 18:16 libstrongswan-sha1.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-sha2.la
-rwxr-xr-x 1 harri staff   93064 Aug 12 18:16 libstrongswan-sha2.so
-rwxr-xr-x 1 harri staff    1007 Aug 12 18:16 libstrongswan-sshkey.la
-rwxr-xr-x 1 harri staff  140152 Aug 12 18:16 libstrongswan-sshkey.so
-rwxr-xr-x 1 harri staff    1043 Aug 12 18:16 libstrongswan-test-vectors.la
-rwxr-xr-x 1 harri staff 1133368 Aug 12 18:16 libstrongswan-test-vectors.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-x509.la
-rwxr-xr-x 1 harri staff  559024 Aug 12 18:16 libstrongswan-x509.so
-rwxr-xr-x 1 harri staff     995 Aug 12 18:16 libstrongswan-xcbc.la
-rwxr-xr-x 1 harri staff  101704 Aug 12 18:16 libstrongswan-xcbc.so
build.txt.gz (44 KB) build.txt.gz Harald Dunkel, 14.08.2019 15:17

History

#1 Updated by Tobias Brunner about 1 year ago

  • Status changed from New to Feedback

Hm, that looks strange. Did you modify configure arguments (e.g. --prefix or one of the --*dir options?) and not run make clean or something?

#2 Updated by Harald Dunkel about 1 year ago

Sorry, I should have mentioned the configure command line:

./configure --enable-addrblock  --enable-agent  --enable-bypass-lan  --enable-ccm  --enable-certexpire  --enable-chapoly  --enable-cmd  --enable-ctr  --enable-curl  --enable-eap-aka  --enable-eap-gtc  --enable-eap-identity  --enable-eap-md5  --enable-eap-mschapv2  --enable-eap-radius  --enable-eap-tls  --enable-eap-tnc  --enable-eap-ttls  --enable-error-notify  --enable-gcm  --enable-gcrypt  --enable-ha  --enable-ldap  --enable-led  --enable-lookip  --enable-mediation  --enable-openssl  --enable-pkcs11  --enable-test-vectors  --enable-tpm  --enable-unity  --enable-xauth-eap  --enable-xauth-pam  --disable-blowfish  --disable-des

Thats a copy and paste from Debian's debian/rules file for strongswan 5.7.2, except for the --*dir options. No --prefix, either.

Attached you can find a complete build session, using the official source image.

#3 Updated by Tobias Brunner about 1 year ago

Looks like this is a limitation of libtool with libraries that require relinking during installation (see e.g. this discussion).

You might be able to do this with DESTDIR instead:

# make install DESTDIR=/usr/local/stow/strongswan-5.8.0
# stow -d /usr/local/stow -t / strongswan-5.8.0

Notice that the target directory is set to / because DESTDIR is simply prepended to the configured prefix. For instance, the libraries will be installed in /usr/local/stow/strongswan-5.8.0/usr/local/lib/ipsec, so stow has to create symlinks relative to / for them to end up in the correct location (i.e. matching the configured prefix) and not in e.g. /usr/local/usr/local/lib/ipsec. To uninstall (stow -D), -t / will also have to be used.

#4 Updated by Tobias Brunner about 1 month ago

  • Status changed from Feedback to Closed
  • Assignee set to Tobias Brunner
  • Resolution set to No feedback

Also available in: Atom PDF