home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / misc / 5233 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  2.0 KB

  1. Xref: sparky comp.sys.sun.misc:5233 comp.mail.mh:1283
  2. Newsgroups: comp.sys.sun.misc,comp.mail.mh
  3. Path: sparky!uunet!ocsmd!finnbogi!obi
  4. From: obi@finnbogi.ocs.com (Obi Thomas)
  5. Subject: Unresolved references with SunOS 4.1.3
  6. Message-ID: <BxM6Ar.4sB@finnbogi.ocs.com>
  7. Sender: obi@finnbogi (Obi Thomas)
  8. Reply-To: obi@finnbogi.ocs.com
  9. Organization: Online Computer Systems, Inc.
  10. Date: Thu, 12 Nov 1992 17:37:39 GMT
  11. Lines: 35
  12.  
  13. (Sorry if this has already been discussed, but I've been away for a while
  14. and my news feed was shut off for the duration. I've checked the Sun
  15. groups FAQ and the MH FAQ.)
  16.  
  17. I'm trying to build mh-6.7.2 on a SPARCstation 10 running SunOS 4.1.3.
  18. Part of the process involves building a shared library, libmh.so.xxx and
  19. libmh.sa.xxx. In this library is a reference to an external function
  20. called WhatNow(). The library is built correctly without errors.
  21.  
  22. When it comes time to build the mh binaries, all binaries are linked with
  23. the shareable library, and those that actually reference WhatNow() are
  24. also linked with the .o file containing the WhatNow() definition. Thus,
  25. for example, xanno does not reference WhatNow() while xcomp does:
  26.  
  27. LD_LIBRARY_PATH=../sbr /bin/cc -s -o xanno anno.o \
  28. annosbr.o ../config/config.o -Bdynamic  -lmh  ../mts/libmts.a \
  29. ../zotnet/libzot.a ../config/version.o
  30.  
  31. LD_LIBRARY_PATH=../sbr /bin/cc -s -o xcomp comp.o \
  32. whatnowsbr.o sendsbr.o annosbr.o distsbr.o ../config/config.o -Bdynamic \
  33. -lmh  ../mts/libmts.a  ../zotnet/libzot.a ../config/version.o
  34.  
  35. Note that xcomp is linked with whatnowsbr.o which defines WhatNow(),
  36. whereas xanno is not.
  37.  
  38. This all worked fine on my old SPARCstation 1+ running 4.1.1. But now with
  39. 4.1.3, I notice that xanno gets an unresolved reference for WhatNow().
  40.  
  41. I've noticed the same thing with X11R5 clients. After going to 4.1.3, I've
  42. had to start linking some of my clients with the X extensions library
  43. which wasn't necessary in 4.1.1.
  44.  
  45. Could someone please explain what is going on here and if there is a way
  46. to fix it? I'd prefer email responses; I'll post a summary if there's
  47. interest. Thank you.
  48.