home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18864 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  3.0 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: georgn@noweh.com (Georg S. Nikodym)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: Solaris 2: how do I get rid of -lucb ?
  5. Message-ID: <1992Dec23.033413.1051@sm.sony.co.jp>
  6. Date: 23 Dec 92 03:34:13 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Noweh Software, Mississauga, CANADA
  10. Lines: 63
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Tue, 22 Dec 1992 06:08:27 GMT
  14. Message-Id: <GEORGN.92Dec22010825@idcrisis.noweh.com>
  15. Newsgroups: comp.unix.solaris,comp.windows.x,comp.unix.programmer
  16. References: <1992Dec18.094738.15038@sunbim.be>, <1992Dec18.133818.19160@walter.bellcore.com>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. In article <1992Dec18.133818.19160@walter.bellcore.com> dana@dino.bellcore.com (Dana Chee) writes:
  20.  
  21.    In article <1992Dec18.094738.15038@sunbim.be>, db@sunbim.be (Danny Backx) writes:
  22.    |> 
  23.    |> I am using Solaris 2.* on my SPARC, and many of the home-brew applications
  24.    |> I have compiled on it (with Motif, Xt, and Xlib libraries) have the habit
  25.    |> of trying to load libucb at run time.
  26.    |> 
  27.    |> What happens in fact is I compile the applications with commands like this :
  28.    |>     cc -o prog *.o -lXm -lXt -lX11
  29.    |> without any references to /usr/ucbinclude or /usr/ucblib around. That is, I
  30.    |> do NOT have an LD_LIBRARY_PATH or an LD_RUN_PATH set, and none of the sources
  31.    |> require /usr/ucbinclude.
  32.    |> 
  33.    |> When after linking I use "ldd" on the executable, it will tell me that the
  34.    |> UCB library is linked in. E.g.
  35.    |>     whitney!db 90 % ldd phone
  36.  
  37.    ...
  38.  
  39.    |>         libelf.so.1 =>   /usr/lib/libelf.so.1
  40.    |> -->        libucb.so.1 =>   /usr/ucblib/libucb.so.1
  41.    |>         libdl.so.1 =>    /usr/lib/libdl.so.1
  42.    |>
  43.  
  44.    ...
  45.  
  46.    |> How can I find out exactly what is causing this ? I would like to know how
  47.    |> to generate applications that can run without the binary compatibility
  48.    |> package.
  49.  
  50.    Danny,
  51.        What compiler are you using?  If its the one in /usr/ucb/cc,
  52.    then you are getting the expected behaviour.  /usr/ucb/cc is a shell
  53.    script that adds -lucb -lsocket -lnsl -lelf -laio to your load path
  54.    and /usr/ucbinclude to your include path.  What you probably want to
  55.    do is get gcc, this will remove any of the above.  (I've not tried
  56.    running /usr/ucb/cc without doing the above, since its designed to
  57.    compile things in compatability mode).  The Cygnus distribution is
  58.    available anon ftp from uunet, or you can get the source and build it
  59.    yourself.
  60.  
  61. I'm inclined to agree that the /usr/ucb/cc script is indeed being
  62. used.  However, you still require the unbundled compiler in order for
  63. it to work and since the original poster has been compiling, it would
  64. stand to reason that he has it.
  65.  
  66. Sounds like the "correct" command path is in order here...
  67.  
  68. Of course, you can always uninstall the BCP mode ;-)
  69.  
  70.  
  71. -- 
  72. Georg S. Nikodym  -  (416) 272-5198 / 720-4729
  73. Noweh Software - Mississauga, Ontario, CANADA
  74. UUCP:    {comspec.com, lsuc.on.ca, uunet.ca}!noweh!georgn
  75. RFC822:    georgn@noweh.COM
  76.