This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc packaging bug [Was: Re: libtool linking problem]


Larry Hall wrote:

libtool: link: cannot find the library `/GCC/gcc-3.3.1-3/.inst/package-
gcc/usr/lib/./libstdc++.la'


It's hard to work with partial problem reports.

My WAG is that you didn't install the gcc-g++ package. If that's true, do
so. If it's not, do a 'cygcheck -c gcc-g++'. If the "Status" isn't
"OK", reinstall the gcc-g++ package. If it is "OK" already, I don't know what to think beyond pointing you at the link above and suggesting
you follow the procedures it outlines.

Nope, not really. The *real* problem is that /usr/lib/libstdc++.la specifies the wrong dependency_libs and libdir. Old libtools (such as the one still used by gcc & binutils) didn't handle DESTDIR-based installs very well, so you have to munge the .la files by hand (or by script; whatever).


Newer libtools, (1.5 and later) DO handle DESTDIR correctly, and it is hoped that the current effort that the gcc folks are doing to update the gcc tree to use the latest autotools will eventually mean that this problem will go away.

For now:

short term: end-users can hand-edit the .la files (change the dependency_libs and libdir to the obvious thing)

medium term: GCC maintainer add logic to his packaging script to "do the right thing" to the installed .la files

long term: wait for the gcc developers to finish updating their tree to use modern autotools.

--
Chuck


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]