home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / solaris / 430 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.9 KB

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