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

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!lissie!bbum
  3. From: bbum@object.com (Bill Bumgarner)
  4. Subject: Re: rld: undefined symbols
  5. Message-ID: <1992Nov23.163544.247@object.com>
  6. Sender: bbum@object.com
  7. Organization: Objective Technologies,Inc.
  8. References: <1992Nov21.090743.8818@monu6.cc.monash.edu.au>
  9. Date: Mon, 23 Nov 92 16:35:44 GMT
  10. Lines: 74
  11.  
  12. In article <1992Nov21.090743.8818@monu6.cc.monash.edu.au>  
  13. ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:
  14. > I am writing a Workspace contents inspector.
  15. > Upon trying to load the bundle I get the following
  16. > message on the console.
  17. > /robert/Apps/RIBInspector.bundle/RIBInspector
  18. > Nov 21 19:59:45 steffi WM[148]: rld(): Undefined symbols:
  19. > My Bundle's nib has a customView is this legal with bundles?
  20.  
  21. Assuming that by saying customView, you mean that you have a custom subclass of  
  22. the view class-- in this case, probably a subclass of N3DMovieCamera-- yes,  
  23. this is allowable within a bundle.  The source files (whatever.[hm]) should  
  24. just be added to the bundle project like any other source files.
  25.  
  26. That rld() message is totally useless-- and not uncommon.  There is an annoying  
  27. bug in rld such that it doesn't dump a complete message to console.  It DOES  
  28. work under gdb-- so you might try attaching gdb to the WM process:
  29.  
  30. gdb /usr/lib/NextStep/Workspace.app/WM.app/WM
  31. attach 148
  32.  
  33. << go inspect a .rib file here and it should give you a useful message >>
  34.  
  35. In the best case, there is simply some function/class being referenced that you  
  36. have forgotten to include in your code or have mis-typed it (any compiler  
  37. warnings when you compile the code?).
  38.  
  39. In the worst case, the undefined symbol is N3DCamera itself because WM.app  
  40. doesn't include libMedia-- looking at WM.app/WM via otool -l, one gets:
  41.  
  42. Load command 6
  43.            cmd LC_LOADFVMLIB
  44.        cmdsize 56
  45.           name /usr/shlib/libIndexing_s.A.shlib (offset 20)
  46.  minor version 1
  47.    header addr 0x0a000000
  48. Load command 7
  49.            cmd LC_LOADFVMLIB
  50.        cmdsize 52
  51.           name /usr/shlib/libNeXT_s.C.shlib (offset 20)
  52.  minor version 57
  53.    header addr 0x06000000
  54. Load command 8
  55.            cmd LC_LOADFVMLIB
  56.        cmdsize 48
  57.           name /usr/shlib/libsys_s.B.shlib (offset 20)
  58.  minor version 55
  59.    header addr 0x05000000
  60. Load command 9
  61.      cmd LC_SYMTAB
  62.  cmdsize 24
  63.   symoff 524288
  64.    nsyms 5106
  65.   stroff 585560
  66.  strsize 121640
  67.  
  68.  
  69. Which seems to indicate that WM.app doesn't have any kind of a reference to  
  70. libMedia_... which would leave the 3Dkit (and anything else in that lib-- live  
  71. video, as well) inaccessible...
  72.  
  73. One COULD potentially edit the load commands....
  74.  
  75. --
  76. Bill Bumgarner <bbum@object.com> | "The devils of truth...
  77. Objective Technologies, Inc.     |    steal the souls of the free." -- NIN
  78. -- 
  79. Bill Bumgarner <bbum@object.com> | "The devils of truth...
  80.