The solution to the undefined symbol caused by the missing link time after libtool 2.2.6b

On operating systems such as debian or ubuntu, since libtool version 2.2.6b, indirect dependencies will be lost when linking. This leads to an inexplicable undefined symbol.

 

http://stackoverflow.com/questions/11802727/libtool-doesnt-provide-library-dependencies-to-link writes
4
down vote
accepted


On any Debian machine I use for development, I have to compile and install Libtool by hand, because the Debian-supplied version is patched and ignores dependencies in a way that break my builds.

If Ubuntu's version is similar, you might want to install Libtool from source too.

 

The address of libtool source code is here http://ftp.gnu.org/gnu/libtool/

 

We can download it and compare it with the currently used libtool. Then change the places like link_all_deplibs=no to be consistent with the libtool generated from the source code. If it still doesn't work, just use yes for all.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326989185&siteId=291194637