Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 1997 13:06:19 -0500
From:      Tim Tsai <tim@futuresouth.com>
To:        questions@freebsd.org
Subject:   ld.so/ldconfig problem
Message-ID:  <19970501130619.51444@shell.futuresouth.com>

next in thread | raw e-mail | index | archive | help
  We are seeing a strange problem with ld.so.  A customer is trying to
run xauth but keeps having problem with a shared library.  I have run
ldconfig to add the X11R6 library path and the problem persists.  The
only way around this so far is to manually set the LD_LIBRARY_PATH
variable to include /usr/X11R6/lib.  Any ideas?  I have enclosed a
sample program output, ldconfig -r, and a ktrace dump.  Note that ktrace
seems to indicate that ld.so never made it past /usr/lib.

  PS: We're running 2.2-STABLE (042797).

  Thanks!

  Tim

shell% /usr/X11R6/bin/xauth
ld.so failed: Can't find shared library "libXmu.so.6.0"

shell% ldconfig -r
/var/run/ld.so.hints:
	search directories: /usr/lib:/usr/lib/compat:/usr/local/lib:/usr/X11R6/lib:./
	0:-lrpcsvc.2.0 => /usr/lib/librpcsvc.so.2.0
	1:-lss.2.0 => /usr/lib/libss.so.2.0
	2:-lcrypt.2.0 => /usr/lib/libcrypt.so.2.0
	3:-lf2c.2.0 => /usr/lib/libf2c.so.2.0
	4:-ltelnet.2.0 => /usr/lib/libtelnet.so.2.0
	5:-lm.2.0 => /usr/lib/libm.so.2.0
	6:-lskey.2.0 => /usr/lib/libskey.so.2.0
	7:-lg++.3.0 => /usr/lib/libg++.so.3.0
	8:-ly.2.0 => /usr/lib/liby.so.2.0
	9:-lmp.2.0 => /usr/lib/libmp.so.2.0
	10:-ldescrypt.2.0 => /usr/lib/libdescrypt.so.2.0
	11:-lftpio.2.0 => /usr/lib/libftpio.so.2.0
	12:-lutil.2.1 => /usr/lib/libutil.so.2.1
	13:-lg++.4.0 => /usr/lib/libg++.so.4.0
	14:-lz.2.0 => /usr/lib/libz.so.2.0
	15:-ltcl.75.1 => /usr/lib/libtcl.so.75.1
	16:-lstdc++.2.0 => /usr/lib/libstdc++.so.2.0
	17:-lc.2.2 => /usr/lib/libc.so.2.2.216
	18:-ldes.2.1 => /usr/lib/libdes.so.2.1
	19:-ldes.3.0 => /usr/lib/libdes.so.3.0
	20:-lgnumalloc.2.0 => /usr/lib/libgnumalloc.so.2.0
	21:-ltiff.3.0 => /usr/lib/libtiff.so.3.0
	22:-ltermcap.2.1 => /usr/lib/libtermcap.so.2.1
	23:-ltclx.75.2 => /usr/local/lib/libtclx.so.75.2
	24:-lICE.6.0 => /usr/X11R6/lib/libICE.so.6.0
	25:-ltk41.1.0 => /usr/local/lib/libtk41.so.1.0
	26:-lkvm.2.0 => /usr/lib/libkvm.so.2.0
	27:-lreadline.3.0 => /usr/lib/libreadline.so.3.0
	28:-lSM.6.0 => /usr/X11R6/lib/libSM.so.6.0
	29:-lX11.6.1 => /usr/X11R6/lib/libX11.so.6.1
	30:-lXIE.6.0 => /usr/X11R6/lib/libXIE.so.6.0
	31:-lXaw.6.1 => /usr/X11R6/lib/libXaw.so.6.1
	32:-lXi.6.0 => /usr/X11R6/lib/libXi.so.6.0
	33:-lcipher.2.0 => /usr/lib/libcipher.so.2.0
	34:-lscrypt.2.0 => /usr/lib/libscrypt.so.2.0
	35:-lc.3.0 => /usr/lib/libc.so.3.0
	36:-lPEX5.6.0 => /usr/X11R6/lib/libPEX5.so.6.0
	37:-lXmu.6.0 => /usr/X11R6/lib/libXmu.so.6.0
	38:-lcom_err.2.0 => /usr/lib/libcom_err.so.2.0
	39:-ledit.2.0 => /usr/lib/libedit.so.2.0
	40:-lXt.6.0 => /usr/X11R6/lib/libXt.so.6.0
	41:-lmp.3.0 => /usr/lib/libmp.so.3.0
	42:-lmytinfo.2.0 => /usr/lib/libmytinfo.so.2.0
	43:-lXtst.6.1 => /usr/X11R6/lib/libXtst.so.6.1
	44:-lftpio.4.0 => /usr/lib/libftpio.so.4.0
	45:-lgnuregex.2.0 => /usr/lib/libgnuregex.so.2.0
	46:-lscsi.2.0 => /usr/lib/libscsi.so.2.0
	47:-lncurses.3.0 => /usr/lib/libncurses.so.3.0
	48:-lgmp.2.0 => /usr/lib/libgmp.so.2.0
	49:-loldX.6.0 => /usr/X11R6/lib/liboldX.so.6.0
	50:-lXext.6.1 => /usr/X11R6/lib/libXext.so.6.1
	51:-lpcap.2.1 => /usr/lib/libpcap.so.2.1
	52:-lresolv.2.0 => /usr/lib/libresolv.so.2.0
	53:-ltcl76.1.0 => /usr/local/lib/libtcl76.so.1.0
	54:-lxpg4.2.0 => /usr/lib/libxpg4.so.2.0
	55:-ldialog.3.0 => /usr/lib/libdialog.so.3.0
	56:-lcurses.2.0 => /usr/lib/libcurses.so.2.0
	57:-lgmp.3.0 => /usr/lib/libgmp.so.3.0
	58:-ltermlib.2.1 => /usr/lib/libtermlib.so.2.1
	59:-ltcl75.1.1 => /usr/lib/libtcl75.so.1.1
	60:-lipx.2.0 => /usr/lib/libipx.so.2.0
	61:-ltkx.41.2 => /usr/local/lib/libtkx.so.41.2

shell% ktrace /usr/X11R6/bin/xauth; kdump
  1921 ktrace   RET   ktrace 0
  1921 ktrace   CALL  execve(0xefbfda57,0xefbfd9f8,0xefbfda00)
  1921 ktrace   NAMI  "/usr/X11R6/bin/xauth"
  1921 xauth    RET   execve 0
  1921 xauth    CALL  open(0x109c,0,0)
  1921 xauth    NAMI  "/usr/libexec/ld.so"
  1921 xauth    RET   open 3
  1921 xauth    CALL  read(0x3,0xefbfd9a0,0x20)
  1921 xauth    GIO   fd 3 read 32 bytes
       "Ì\0\M^FÀ\0Ð\0\0\0 \0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0"
  1921 xauth    RET   read 32/0x20
  1921 xauth    CALL  mmap(0,0xd000,0x5,0x2,0x3,0,0,0)
  1921 xauth    RET   mmap 67137536/0x4007000
  1921 xauth    CALL  mmap(0x4014000,0x2000,0x3,0x12,0x3,0,0xd000,0)
  1921 xauth    RET   mmap 67190784/0x4014000
  1921 xauth    CALL  getuid
  1921 xauth    RET   getuid 1000/0x3e8
  1921 xauth    CALL  geteuid
  1921 xauth    RET   geteuid 1000/0x3e8
  1921 xauth    CALL  getgid
  1921 xauth    RET   getgid 1000/0x3e8
  1921 xauth    CALL  getegid
  1921 xauth    RET   getegid 1000/0x3e8
  1921 xauth    CALL  __sysctl(0xefbfd8e0,0x2,0x4015844,0xefbfd8e8,0,0)
  1921 xauth    RET   __sysctl 0
  1921 xauth    CALL  mmap(0,0x8000,0x3,0x1004,0xffffffff,0,0,0)
  1921 xauth    RET   mmap 67198976/0x4016000
  1921 xauth    CALL  open(0x4008977,0,0)
  1921 xauth    NAMI  "/var/run/ld.so.hints"
  1921 xauth    RET   open 4
  1921 xauth    CALL  read(0x4,0xefbfd8dc,0x1c)
  1921 xauth    GIO   fd 4 read 28 bytes
       "iHDL\^B\0\0\0 \0\0\0>\0\0\0À\v\0\0»\a\0\0{\^S\0\0"
  1921 xauth    RET   read 28/0x1c
  1921 xauth    CALL  close(0x4)
  1921 xauth    RET   close 0
  1921 xauth    CALL  stat(0x4018000,0xefbfd5e8)
  1921 xauth    NAMI  "/usr/lib"
  1921 xauth    RET   stat 0
  1921 xauth    CALL  open(0x4018000,0x4,0x4014060)
  1921 xauth    NAMI  "/usr/lib"
  1921 xauth    RET   open 4
  1921 xauth    CALL  fstat(0x4,0xefbfd5e8)
  1921 xauth    RET   fstat 0
  1921 xauth    CALL  fcntl(0x4,0x2,0x1)
  1921 xauth    RET   fcntl 0
  1921 xauth    CALL  getdirentries(0x4,0x401b000,0x1000,0x401a034)
  1921 xauth    RET   getdirentries 3584/0xe00
  1921 xauth    CALL  getdirentries(0x4,0x401b000,0x1000,0x401a034)
  1921 xauth    RET   getdirentries 0
  1921 xauth    CALL  lseek(0x4,0,0,0,0)
  1921 xauth    RET   lseek 0
  1921 xauth    CALL  close(0x4)
  1921 xauth    RET   close 0
  1921 xauth    CALL  write(0x2,0x1134,0xc)
  1921 xauth    GIO   fd 2 wrote 12 bytes
       "ld.so failed"
  1921 xauth    RET   write 12/0xc
  1921 xauth    CALL  write(0x2,0x1141,0x2)
  1921 xauth    GIO   fd 2 wrote 2 bytes
       ": "
  1921 xauth    RET   write 2
  1921 xauth    CALL  write(0x2,0x40155b4,0x29)
  1921 xauth    GIO   fd 2 wrote 41 bytes
       "Can't find shared library "libXmu.so.6.0""
  1921 xauth    RET   write 41/0x29
  1921 xauth    CALL  write(0x2,0x1144,0x1)
  1921 xauth    GIO   fd 2 wrote 1 bytes
       "
       "
  1921 xauth    RET   write 1
  1921 xauth    CALL  exit(0x1)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970501130619.51444>