Georg Baum wrote:

Angus Leeming wrote:

Helge Hafting <[EMAIL PROTECTED]> writes:
How can I know what compiler was used for a library?
I tried   strings /usr/lib/libstdc++.so.6.0.7 | grep GCC
and got
GCC_3.3
GCC_3.0
So, 3.0 or 3.3?

This test is not suitable to find out which compiler was used. It rather
finds some versioned symbols that are there for compatibility with older
compilers. In fact, if you get GCC_3.3 that means that something newer was
used to compile this lib, either gcc 3.4 or later.
A better test is

dpkg -S /usr/lib/libstdc++.so.6.0.7

that should print the package name and version number of the libstdc++
package.
The default qt was built with gcc 4.0:
http://pdo.debian.net/unstable/libs/libqt3-mt

From where do you get the compiler used?  The dependency
on libstdc++6 >= 4.0.2-4 ?  There are no dependency problems
here.

dpkg -S gets the package name, "dpkg -l" will then provide the version number.
This is fine for libgstdc++6, which indeed have the same version
as the compiler.  Other libraries, such as qt, does not indicate
what compiler was used.  The version number seems unrelated
to compiler releases.

I suggest to do the dpkg -S test with all libraries that are listed in 'ldd
lyx'.
Ok, but this doesn't tell me what compiler was used:
ldd /usr/local/bin/lyx (with packages and versions added)
libqt3-mt 3.3.5-3 libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0x00002b508890a000) libaudio2 1.7-4 libaudio.so.2 => /usr/lib/libaudio.so.2 (0x00002b50893f0000) #audio? libxt6 6.9.0.dfsg.1-4 libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x00002b508951e000) libjpeg62 6b-11 libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00002b508967f000) libpng12-0 1.2.8rel-5 libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00002b50897a1000) libxi6 6.9.0.dfsg.1-4 libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x00002b50898c6000) libxrandr2 6.9.0.dfsg.1-4 libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x00002b50899ce000) libxcursor1 1.1.3-1 libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00002b5089ad1000) libxrender1 0.9.0.2-1 libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00002b5089bdc000) libxinerama1 6.9.0.dfsg.1-4 libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x00002b5089ce5000) libxft2 2.1.8.2-3 libXft.so.2 => /usr/lib/libXft.so.2 (0x00002b5089de7000) libfreetype6 2.1.10-1 libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00002b5089efc000) libfontconfig1 2.3.2-2 libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00002b508a076000) libxext6 6.9.0.dfsg.1-4 libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00002b508a1b5000) libc6 2.3.6-1 libpthread.so.0 => /lib/libpthread.so.0 (0x00002b508a2c7000) libaspell15 0.60.4-3 libaspell.so.15 => /usr/lib/libaspell.so.15 (0x00002b508a3dc000) libc6 2.3.6-1 libdl.so.2 => /lib/libdl.so.2 (0x00002b508a5b5000) libsm6 6.9.0.dfsg.1-4 libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00002b508a6b9000) libice6 6.9.0.dfsg.1-4 libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00002b508a7c3000) libx11-6 6.9.0.dfsg.1-4 libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00002b508a8de000) zlib1g 1.2.3-9 libz.so.1 => /usr/lib/libz.so.1 (0x00002b508aabf000) libstdc++6 4.0.2-9 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b508abd5000) libc6 2.3.6-1 libm.so.6 => /lib/libm.so.6 (0x00002b508add2000) libc6 2.3.6-1 libc.so.6 => /lib/libc.so.6 (0x00002b508af59000) libgcc1 4.0.2-9 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002b508b198000) libexpat1 1.95.8-3 libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00002b508b2a6000)
/lib64/ld-linux-x86-64.so.2 (0x00002b50887f2000) -> /lib64/ld-2.3.6.so

Reply via email to