• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
gdb isn't looking at DYLD_LIBRARY_PATH - NO frameworks involved.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb isn't looking at DYLD_LIBRARY_PATH - NO frameworks involved.


  • Subject: gdb isn't looking at DYLD_LIBRARY_PATH - NO frameworks involved.
  • From: Mike Logan <email@hidden>
  • Date: Wed, 13 Dec 2006 15:04:49 -0800

Hi, this may be an easy question to answer but much searching of the lists hasn't
 given me anything...    If you have suggestions, please help - I'm out of ideas.


I have a bunch of dylib's and the program starts up fine in a terminal shell & Xcode, but
 in gdb(shell or xcode), it cannot find the libraries  (message is below).

- DYLD_LIBRARY_PATH is set properly.
- (gdb)  show env       gives correct results.
- the dylibs do exist and are freshly built.


(gdb) r
Starting program: /Users/mlogan/dev/KrishnaKumar/NelFly/bin/nelfly
dyld: Library not loaded: libProducer.dylib
  Referenced from: /Users/mlogan/dev/KrishnaKumar/NelFly/bin/nelfly
  Reason: image not found

Program received signal SIGTRAP, Trace/breakpoint trap.
0x8fe05eac in __dyld__ZN4dyld5_mainEPK11mach_headeriPPKcS5_S5_ ()


I tried to "info sharedlibrary all"   in gdb, and got this output this particular dylib:

  6 libProducer.dylib     - -               c-init Y Y /Users/mlogan/dev/KrishnaKumar/NelFly/bin/libProducer.dylib at 0x0
                                  (objfile is) /Users/mlogan/dev/Producer_1.1/src/Darwin32.Opt/libProducer.dylib

but I don't understand what its telling me.
The first line is the wrong path.
Why the second line (the correct path) has no address?


Any ideas?
I'm on gcc-4.0.1,  xcode 2.4.1 (altho same problem with 2.2.1), and OSX 10.4.8 PPC (g5)


Mike



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: ___spin_lock
  • Next by Date: Re: gdb isn't looking at DYLD_LIBRARY_PATH - NO frameworks involved.
  • Previous by thread: Re: glReadPixels and glDrawPixels optimized
  • Next by thread: Re: gdb isn't looking at DYLD_LIBRARY_PATH - NO frameworks involved.
  • Index(es):
    • Date
    • Thread