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