home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / 15263 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.3 KB

  1. Path: sparky!uunet!olivea!tymix!Tymnet.COM!rmurphy
  2. From: rmurphy@Tymnet.COM (Ron Murphy)
  3. Newsgroups: comp.windows.x
  4. Subject: Help! SunOS 4.1.2/Xmu linking problem
  5. Message-ID: <2312@tymix.Tymnet.COM>
  6. Date: 14 Aug 92 21:40:55 GMT
  7. Sender: usenet@tymix.Tymnet.COM
  8. Reply-To: rmurphy@Tymnet.COM (Ron Murphy)
  9. Organization: BT Tymnet Inc.; San Jose, CA
  10. Lines: 67
  11. Nntp-Posting-Host: fusco
  12.  
  13. Greetings X window Xperts,
  14.  
  15. I have just installed Sun OS 4.1.2/OpenWindows 3 on my system.  A problem now
  16. arises in linking one of my programs using X11R4 (pure MIT) libraries.  (The
  17. same thing happens whether I use the ones I got myself from MIT or the ones
  18. with OW 3.)  This problem occurs when linking the shared library versions.
  19.  
  20. Since I use facilities in libXExt.a, the symbol references
  21. _get_wmShellWidgetClass and _get_applicationShellWidgetClass occur,
  22. but they never get resolved!
  23.  
  24. The library resolving these symbols is libXmu.sa.4.0 on my system, as
  25. you can see:
  26.  
  27. fusco% nm /usr/lib/X11/libXmu.sa.4.0
  28.  
  29. sharedlib.o:
  30.          U _applicationShellWidgetClass
  31. 00000000 T _get_applicationShellWidgetClass
  32. 0000000c T _get_wmShellWidgetClass
  33.          U _wmShellWidgetClass
  34.  
  35. I gave the linker every chance to load libXmu, by specifying 
  36.  
  37. -lXaw -lXt -lXmu -lX11 -lXext -lXmu -lm -lg -lc -lXmu
  38.  
  39. Can't be too careful!
  40.  
  41. I used cc -v to determine the linker command that was issued, and then I 
  42. executed this command with -M to figure out what the linker was doing.  Here
  43. is a summary of the interesting stuff:
  44.  
  45. ...(lots of my modules and libraries)
  46.  
  47. /usr/lib/X11/libXaw.so.4.0
  48. /usr/lib/X11/libXt.so.4.1
  49. /usr/lib/X11/libXt.sa.4.1
  50.         sharedlib.o
  51. /usr/lib/X11/libXmu.so.4.0
  52. /usr/lib/X11/libXmu.sa.4.0
  53. /usr/lib/X11/libX11.so.4.3
  54. /usr/lib/X11/libX11.sa.4.3
  55. /usr/lib/X11/libXext.a
  56.         XShape.o
  57.         extutil.o
  58. /usr/lib/X11/libXmu.so.4.0
  59. /usr/lib/X11/libXmu.sa.4.0
  60.  
  61. ...(math and C libraries)
  62.  
  63. /lib/libdl.so.1.0
  64. /usr/lib/X11/libXmu.so.4.0
  65. /usr/lib/X11/libXmu.sa.4.0
  66. ld: Undefined symbol
  67.    _get_wmShellWidgetClass
  68.    _get_applicationShellWidgetClass
  69.  
  70. So, on every pass, libXmu.sa.4.0 was ignored!  Is this a known bug, and how
  71. would I get a patch for it?  Or am I missing something?
  72.  
  73. If you post an answer, please also reply by e-mail.  I don't normally read this
  74. group since there's so much stuff on it.
  75.  
  76. Cheers,
  77.  
  78. Ron Murphy
  79. BT North America Inc.
  80.