home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.solaris:423 comp.windows.x:20381 comp.unix.programmer:5736
- Newsgroups: comp.unix.solaris,comp.windows.x,comp.unix.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ufo!kaleb
- From: kaleb@jpl-devvax.jpl.nasa.gov (Kaleb Keithley)
- Subject: Re: Solaris 2: how do I get rid of -lucb ?
- Message-ID: <1992Dec18.164909.10789@jpl-devvax.jpl.nasa.gov>
- Keywords: SVR4, shared libraries, Solaris 2
- Organization: Jet Propulsion Laboratory (NASA)
- References: <1992Dec18.094738.15038@sunbim.be>
- Date: Fri, 18 Dec 1992 16:49:09 GMT
- Lines: 32
-
- In article db@sunbim.be 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.
- >
- >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
- > libXm.so => /usr/lib/libXm.so
- > [...]
- >--> libucb.so.1 => /usr/ucblib/libucb.so.1
- > [...]
-
- I'd guess that it's caused by the widespread usage of functions *like*
- bcopy and it's kin that are rooted firmly in Berkeley-based systems.
-
- Seems like the easiest way to find out would be to do a symbol table dump
- of the static libucb, and then grep through your source for those names;
- and then replace them with the SysV equivalents. Sounds like a lot of
- work to me, actually. I'm also not sure that non-system call functions
- like the bcopy family are worth the effort to excise from the application
- source. But, if you're really intent on eliminating libucb from your
- system, then maybe it is.
-
- Also, what about using Sun's migration tool to analyze the "home brew"
- source? Or doesn't that work as well as Sun's marketing hype says it
- does? :-)
-
- --
-
- Kaleb Keithley kaleb@jpl-devvax.jpl.nasa.gov
-
-