[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22258: libtool should skip .la files it cannot read
From: |
Basin Ilya |
Subject: |
bug#22258: libtool should skip .la files it cannot read |
Date: |
Mon, 28 Dec 2015 15:48:49 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
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"
address@hidden ~]$ 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
address@hidden ~]$ echo 'int main(int argc, char *argv[]) { return 0;
}' >test.c
address@hidden ~]$ gcc -c test.c
address@hidden ~]$ gcc
-L/opt/oracle/product/12.1.0.2/OraClient12c_Home1/lib -lexpat -o test test.o
address@hidden ~]$ 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#22258: libtool should skip .la files it cannot read,
Basin Ilya <=