How to debug USB MDNS backend on Mac OSX 10.5

keens312 keens312 at hotmail.com
Tue Aug 12 19:15:48 PDT 2008


> keens312 wrote:
> >> keens312 wrote:
> >>> Hi Michael,
> >>>
> >>> On OSX 10.5.
> >>>
> >>> I downloaded the latest source of CUPS and built it with ./configure --enable-debug.
> >>>
> >>> But the USB and MDNS binary cannot be debugged.
> >>>
> >>> When run or debug it, backends will report error and quit.
> >> What error?
> >>
> >> --
> >> ______________________________________________________________________
> >> Michael R Sweet                        Senior Printing System Engineer
> >>
> > imac:backend keen$ ./usb
> > dyld: lazy symbol binding failed: Symbol not found: __ppdGet1284Values
> >   Referenced from: /Volumes/Data/Source/cups/backend/./usb
> >   Expected in: /usr/lib/libcups.2.dylib
> >
> > dyld: Symbol not found: __ppdGet1284Values
> >   Referenced from: /Volumes/Data/Source/cups/backend/./usb
> >   Expected in: /usr/lib/libcups.2.dylib
> >
> > Trace/BPT trap
>
> You need to tell the run-time linker where to find the shared
> libraries:
>
>      DYLD_LIBRARY_PATH=/path/to/cups/lib; export DYLD_LIBRARY_PATH
>
> --
> ______________________________________________________________________
> Michael R Sweet                        Senior Printing System Engineer
>
After adding the env DYLD_LIBRARY_PATH and recompile, i got another:
DEBUG: load_classdriver(/System/Library/Printers/Libraries/USBGenericTOPrintingClass.plugin) (kr:0x00000000)
dyld: lazy symbol binding failed: Symbol not found: __cups_debug_printf
  Referenced from: /Volumes/Data/Source/cups/backend/usb
  Expected in: /usr/lib/libcups.2.dylib

dyld: Symbol not found: __cups_debug_printf
  Referenced from: /Volumes/Data/Source/cups/backend/usb
  Expected in: /usr/lib/libcups.2.dylib

Trace/BPT trap





More information about the cups mailing list