home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7390 < prev    next >
Encoding:
Text File  |  1992-11-24  |  4.0 KB  |  109 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!juliet!news
  3. From: drew@fnbc.com (Drew Davidson)
  4. Subject: Re: rld: undefined symbols
  5. Message-ID: <1992Nov23.231427.19933@fnbc.com>
  6. Sender: news@fnbc.com
  7. Reply-To: drew@fnbc.com
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. References: <1992Nov23.163544.247@object.com>
  10. Date: Mon, 23 Nov 92 23:14:27 GMT
  11. Lines: 96
  12.  
  13. In article <1992Nov23.163544.247@object.com> bbum@object.com (Bill Bumgarner)  
  14. writes:
  15. > In article <1992Nov21.090743.8818@monu6.cc.monash.edu.au>  
  16. > ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:
  17. > > 
  18. > > I am writing a Workspace contents inspector.
  19. > > 
  20. > > Upon trying to load the bundle I get the following
  21. > > message on the console.
  22. > > 
  23. > > /robert/Apps/RIBInspector.bundle/RIBInspector
  24. > > 
  25. > > Nov 21 19:59:45 steffi WM[148]: rld(): Undefined symbols:
  26. > > 
  27. > > My Bundle's nib has a customView is this legal with bundles?
  28. > > 
  29. > Assuming that by saying customView, you mean that you have a custom subclass  
  30. of  
  31. > the view class-- in this case, probably a subclass of N3DMovieCamera-- yes,  
  32. > this is allowable within a bundle.  The source files (whatever.[hm]) should  
  33. > just be added to the bundle project like any other source files.
  34. > That rld() message is totally useless-- and not uncommon.  There is an  
  35. annoying  
  36. > bug in rld such that it doesn't dump a complete message to console.  It DOES  
  37. > work under gdb-- so you might try attaching gdb to the WM process:
  38. > gdb /usr/lib/NextStep/Workspace.app/WM.app/WM
  39. > attach 148
  40. > << go inspect a .rib file here and it should give you a useful message >>
  41. > In the best case, there is simply some function/class being referenced that  
  42. you  
  43. > have forgotten to include in your code or have mis-typed it (any compiler  
  44. > warnings when you compile the code?).
  45. > In the worst case, the undefined symbol is N3DCamera itself because WM.app  
  46. > doesn't include libMedia-- looking at WM.app/WM via otool -l, one gets:
  47. > Load command 6
  48. >            cmd LC_LOADFVMLIB
  49. >        cmdsize 56
  50. >           name /usr/shlib/libIndexing_s.A.shlib (offset 20)
  51. >  minor version 1
  52. >    header addr 0x0a000000
  53. > Load command 7
  54. >            cmd LC_LOADFVMLIB
  55. >        cmdsize 52
  56. >           name /usr/shlib/libNeXT_s.C.shlib (offset 20)
  57. >  minor version 57
  58. >    header addr 0x06000000
  59. > Load command 8
  60. >            cmd LC_LOADFVMLIB
  61. >        cmdsize 48
  62. >           name /usr/shlib/libsys_s.B.shlib (offset 20)
  63. >  minor version 55
  64. >    header addr 0x05000000
  65. > Load command 9
  66. >      cmd LC_SYMTAB
  67. >  cmdsize 24
  68. >   symoff 524288
  69. >    nsyms 5106
  70. >   stroff 585560
  71. >  strsize 121640
  72. > Which seems to indicate that WM.app doesn't have any kind of a reference to  
  73. > libMedia_... which would leave the 3Dkit (and anything else in that lib--  
  74. live  
  75. > video, as well) inaccessible...
  76. > One COULD potentially edit the load commands....
  77. > --
  78. > Bill Bumgarner <bbum@object.com> | "The devils of truth...
  79. > Objective Technologies, Inc.     |    steal the souls of the free." -- NIN
  80. > -- 
  81. > Bill Bumgarner <bbum@object.com> | "The devils of truth...
  82.  
  83. This brings up a really sticky question that I've been troubled by recently.   
  84. How in the world do you put an object that you use a lot in two IB Palettes, WM  
  85. Inspectors, Preferences modules, or whatever?  If you link against it in both  
  86. bundles, one will cause rld() to choke at load time, so you cannot use both  
  87. bundles at the same time.  I've got a pretty good library to objects that I  
  88. don't feel like renaming each time they get put into a bundle that *may* have a  
  89. conflict somewhere down the line.
  90.  
  91. --
  92. +--------------------------------+-------------------------------------------+
  93. |        Drew  Davidson          | "Never ask a programmer if he'll have     |
  94. |         Software Guy           |  another cup of coffee because it's       |
  95. | First National Bank of Chicago |  nobody's damn business how much he's     |
  96. |     drew@fnbc.com  (NeXTmail)  |  already had!"       - me                 |
  97. +--------------------------------+-------------------------------------------+
  98.