[CMake] xlC / HAVE_GETHOSTBYNAME_R_6 (Was Re: CMake 2.8.0 RC 1 ready for testing!)

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Oct 1 08:51:16 EDT 2009


On Thu, Oct 1, 2009 at 2:31 PM, Brad King <brad.king at kitware.com> wrote:
>> A couple of warnings that's all:
>> http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=439244
>
> Warnings in system headers are always a pain.  Can you please
> investigate options to turn them off?

I am thinking that I do not have the proper default flag on this
64bits machine (think of the lseek vs lseek64).

>> However, there are still two issues remaining with xlC -q64 (64bits
>> compilation) :
>> http://www.cdash.org/CDash/viewTest.php?onlyfailed&buildid=439310
>>
>> I do not understand what I need to adjust to get the path right, for instance:
>>
>>> file /usr/lib/qt3/lib/libqt-mt.so.3.3.7
>> /usr/lib/qt3/lib/libqt-mt.so.3.3.7: ELF 32-bit MSB shared object,
>> PowerPC or cisco 4500, version 1 (SYSV), stripped
>>> file /usr/lib/qt3/lib64/libqt-mt.so.3.3.7
>> /usr/lib/qt3/lib64/libqt-mt.so.3.3.7: ELF 64-bit MSB shared object,
>> cisco 7500, version 1 (SYSV), stripped
>
> Are the binaries built with RPATH?

I do not think so:

> readelf -d /usr/lib/qt3/lib/libqt-mt.so.3.3.7

Dynamic section at offset 0x832e88 contains 41 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libpng12.so.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXrender.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXrandr.so.2]
 0x00000001 (NEEDED)                     Shared library: [libXcursor.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXinerama.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXft.so.2]
 0x00000001 (NEEDED)                     Shared library: [libfreetype.so.6]
 0x00000001 (NEEDED)                     Shared library: [libfontconfig.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXext.so.6]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libSM.so.6]
 0x00000001 (NEEDED)                     Shared library: [libICE.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [libqt-mt.so.3]
 0x0000000c (INIT)                       0x1cda3c
 0x0000000d (FINI)                       0x732010
 0x00000004 (HASH)                       0xd4
 0x00000005 (STRTAB)                     0x73c70
 0x00000006 (SYMTAB)                     0x24050
 0x0000000a (STRSZ)                      676072 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000003 (PLTGOT)                     0x843000
 0x00000002 (PLTRELSZ)                   97236 (bytes)
 0x00000014 (PLTREL)                     RELA
 0x00000017 (JMPREL)                     0x1b5e68
 0x70000000 (PPC_GOT)                    0x842ff4
 0x00000007 (RELA)                       0x122ebc
 0x00000008 (RELASZ)                     699264 (bytes)
 0x00000009 (RELAENT)                    12 (bytes)
 0x6ffffffe (VERNEED)                    0x122cdc
 0x6fffffff (VERNEEDNUM)                 7
 0x6ffffff0 (VERSYM)                     0x118d58
 0x6cbdd031 (SUSE_DIRECT)                0x7eb300
 0x6ffffff9 (RELACOUNT)                  17560
 0x00000000 (NULL)                       0x0

and
> readelf -d /usr/lib/qt3/lib64/libqt-mt.so.3.3.7

Dynamic section at offset 0xa54d30 contains 41 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libpng12.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libXrender.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libXrandr.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libXcursor.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libXinerama.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libXft.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libfreetype.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libfontconfig.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libXext.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libX11.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libSM.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libICE.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000e (SONAME)             Library soname: [libqt-mt.so.3]
 0x000000000000000c (INIT)               0xa652e0
 0x000000000000000d (FINI)               0xa652f8
 0x0000000000000004 (HASH)               0x158
 0x0000000000000005 (STRTAB)             0x9ad08
 0x0000000000000006 (SYMTAB)             0x23ed8
 0x000000000000000a (STRSZ)              674461 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000003 (PLTGOT)             0xae28c0
 0x0000000000000002 (PLTRELSZ)           194328 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x33fc10
 0x0000000070000000 (PPC64_GLINK)        0x920400
 0x0000000000000007 (RELA)               0x149740
 0x0000000000000008 (RELASZ)             2057424 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x149630
 0x000000006fffffff (VERNEEDNUM)         6
 0x000000006ffffff0 (VERSYM)             0x13f7a6
 0x000000006cbdd031 (SUSE_DIRECT)        0x9e7b90
 0x000000006ffffff9 (RELACOUNT)          53181
 0x0000000000000000 (NULL)               0x0


> Are they linking to the right
> one in the first place?

I do not understand the question... :(


My question was simply is cmake able to pick the 64bits libs even for
Qt ? Or should I set something else in my nightly cmake dashboard ?

Thanks again,
-- 
Mathieu


More information about the CMake mailing list