This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Linking program from qt-3.3.2 with binutils-2.15


I'm building qt-3.3.2 on RH 7.1/x86 and RHEL 2.1/x86 with a GCC 3.4.3
built against binutils-2.15 (as and ld). When trying to link one of
the programs, I get the following:
  /opt/TWWfsw/gcc343/i686-redhat-linuxe2.1/bin/ld: warning: libXi.so.6,
  needed by /usr/lib/libGL.so, not found (try using -rpath or
  -rpath-link)
  /opt/TWWfsw/gcc343/i686-redhat-linuxe2.1/bin/ld: warning: libXt.so.6,
  needed by /usr/X11R6/lib/libXmu.so, not found (try using -rpath or
  -rpath-link)
  /usr/X11R6/lib/libXmu.so: undefined reference to
  `XtDisplayToApplicationContext'
  /usr/X11R6/lib/libXmu.so: undefined reference to `XtWarningMsg'
  /usr/X11R6/lib/libXmu.so: undefined reference to
  `XtGetConstraintResourceList'
  /usr/X11R6/lib/libXmu.so: undefined reference to
  `XtGetApplicationResources'
  /usr/X11R6/lib/libXmu.so: undefined reference to `XtErrorMsg'
  /usr/X11R6/lib/libXmu.so: undefined reference to `XtGetValues'
  ...

The compile command-line is:
  ... -L/usr/X11R6/lib ... -lGLU -lGL -lXmu -lXrender ...

libXi.so.6 and libXt.so.6 are in /usr/X11R6/lib and libGL.so is in
/usr/lib:
  $ ldd /usr/lib/libGL.so
  libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x401de000)
  libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x401e7000)
  libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x401fe000)
  libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40214000)
  libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40223000)
  libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4022b000)
  libdl.so.2 => /lib/libdl.so.2 (0x40321000)
  libc.so.6 => /lib/i686/libc.so.6 (0x40325000)
  libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40462000)
  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Why doesn't ld look in /usr/X11R6/lib for libXt and libXi?
binutils-2.12.1 doesn't give this warning. The binutils-2.14 shipped
with RH 9/x86, RHEL 3.0/x86, and RHEL 3.0/amd64 don't give this
warning either.

-- 
albert chin (china@thewrittenword.com)


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