GNU bug report logs - #22258
libtool should skip .la files it cannot read

Previous Next

Package: libtool;

Reported by: Basin Ilya <basin <at> reksoft.ru>

Date: Mon, 28 Dec 2015 17:45:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Basin Ilya <basin <at> reksoft.ru>
To: 22258 <at> debbugs.gnu.org
Subject: bug#22258: libtool should skip .la files it cannot read
Date: Mon, 28 Dec 2015 15:48:49 +0300
libtool behavior differs from GNU linker (ld) behavior

When a .so file exists in library path, but ld fails to open it due to
file permissions, it silently skips it and tries next directory.
Libtool fails with: "is not a valid libtool archive"

    [git <at> dioptase ~]$ ls -l
/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib/libexpat.*
    -rw-------. 1 oracle oracle 617772 Nov  8  2011
/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib/libexpat.a
    -rw-------. 1 oracle oracle    793 Nov  8  2011
/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib/libexpat.la
    -rw-------. 1 oracle oracle 408282 Nov  8  2011
/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib/libexpat.so
    -rw-------. 1 oracle oracle 408282 Nov  8  2011
/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib/libexpat.so.1
    -rw-------. 1 oracle oracle 408282 Nov  8  2011
/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib/libexpat.so.1.5.2
    [git <at> dioptase ~]$ echo 'int main(int argc, char *argv[]) { return 0;
}' >test.c
    [git <at> dioptase ~]$ gcc -c test.c
    [git <at> dioptase ~]$ gcc
-L/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib -lexpat -o test test.o
    [git <at> dioptase ~]$ libtool --tag=CC --mode=link gcc
-L/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib -lexpat -o test test.o
    libtool: link:
`/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib/libexpat.la' is not
a valid libtool archive


libtool version 2.4.6

-- 

--------------------------------------------------------------------------------
Kind regards,
Ilya Basin
software engineer
Reksoft

Skype: basin_ilya
phone +7(812)324-24-40*553





This bug report was last modified 9 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.