home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / solaris / 420 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.0 KB

  1. Xref: sparky comp.unix.solaris:420 comp.windows.x:20368 comp.unix.programmer:5731
  2. Newsgroups: comp.unix.solaris,comp.windows.x,comp.unix.programmer
  3. Path: sparky!uunet!mcsun!ub4b!sunbim!usenet
  4. From: db@sunbim.be (Danny Backx)
  5. Subject: Solaris 2: how do I get rid of -lucb ?
  6. Message-ID: <1992Dec18.094738.15038@sunbim.be>
  7. Keywords: SVR4, shared libraries, Solaris 2
  8. Sender: usenet@sunbim.be (user news)
  9. Reply-To: db@sunbim.be
  10. Organization: BIM n.v. Everberg Belgium
  11. Date: Fri, 18 Dec 92 09:47:38 GMT
  12. Lines: 50
  13.  
  14. Hi,
  15.  
  16. I am using Solaris 2.* on my SPARC, and many of the home-brew applications
  17. I have compiled on it (with Motif, Xt, and Xlib libraries) have the habit
  18. of trying to load libucb at run time.
  19.  
  20. What happens in fact is I compile the applications with commands like this :
  21.     cc -o prog *.o -lXm -lXt -lX11
  22. without any references to /usr/ucbinclude or /usr/ucblib around. That is, I
  23. do NOT have an LD_LIBRARY_PATH or an LD_RUN_PATH set, and none of the sources
  24. require /usr/ucbinclude.
  25.  
  26. When after linking I use "ldd" on the executable, it will tell me that the
  27. UCB library is linked in. E.g.
  28.     whitney!db 90 % ldd phone
  29.         libXm.so =>      /usr/lib/libXm.so
  30.         libXt.so.5.0 =>  /usr/lib/libXt.so.5.0
  31.         libXmu.so.5.0 =>         /usr/lib/libXmu.so.5.0
  32.         libX11.so.5.0 =>         /usr/lib/libX11.so.5.0
  33.         libc.so.1 =>     /usr/lib/libc.so.1
  34.         libresolv.so.1 =>        /usr/lib/libresolv.so.1
  35.         libsocket.so.1 =>        /usr/lib/libsocket.so.1
  36.         libnsl.so.1 =>   /usr/lib/libnsl.so.1
  37.         libelf.so.1 =>   /usr/lib/libelf.so.1
  38. -->        libucb.so.1 =>   /usr/ucblib/libucb.so.1
  39.         libdl.so.1 =>    /usr/lib/libdl.so.1
  40.         libintl.so.1 =>  /usr/lib/libintl.so.1
  41.         libw.so.1 =>     /usr/lib/libw.so.1
  42.  
  43. How can I find out exactly what is causing this ? I would like to know how
  44. to generate applications that can run without the binary compatibility
  45. package.
  46.  
  47. Thanks,
  48.     Danny
  49. --
  50.     Danny Backx
  51.     System Engineer
  52.  
  53. E-Mail: db@sunbim.be    (or uunet!mcsun!ub4b!sunbim!db)
  54.  
  55. Telephone: +32(2)759.59.25    Fax : +32(2)759.47.95
  56.  
  57. Postal Mail :
  58.     Danny Backx
  59.     BIM
  60.     Kwikstraat 4
  61.     3078 Everberg
  62.     Belgium
  63.  
  64.