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

To reply to this bug, email your comments to 22258 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#22258; Package libtool. (Mon, 28 Dec 2015 17:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Basin Ilya <basin <at> reksoft.ru>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Mon, 28 Dec 2015 17:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Basin Ilya <basin <at> reksoft.ru>
To: bug-libtool <at> gnu.org
Subject: 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.