Noah-p0werd0wn / iphuc

Automatically exported from code.google.com/p/iphuc
0 stars 0 forks source link

dyld: Library not loaded: /opt/local/lib/libreadline.5.2.dylib #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Getting just trying to run this from iTerm:

Referenced from: /Users/mcintosh/iPhone Development/./iphuc-universal
  Reason: image not found
Trace/BPT trap

tried setting my DYLD_LIBRARY_PATH to include /usr/lib (where libreadline
is located), with no luck.  Of course, libreadline is pointing to libedit,
so not sure that's valid, but the version I've got is:
 iphuc-universal-no-macports-0.6.1.
which isn't supposed to include libreadline.

Attempted to compile the source revision 17, fresh checkout and hit:
g++  -g -O2  -Lno/lib -o iphuc -framework CoreFoundation
-F/System/Library/PrivateFrameworks -framework MobileDevice main.o Shell.o
NormalInterface.o RestoreInterface.o privateFunctions.o RecoveryInterface.o  
/usr/bin/ld: warning -L: directory name (no/lib) does not exist
/usr/bin/ld: Undefined symbols:
_add_history
_readline
_rl_attempted_completion_function
_rl_catch_signals
_rl_completion_append_character
_rl_readline_name
collect2: ld returned 1 exit status
make[1]: *** [iphuc] Error 1
make: *** [all] Error 2

using pasted MobileDevice.h

At this point, I've not found a solution.

Original issue reported on code.google.com by mcinto...@gmail.com on 15 Aug 2007 at 2:50

GoogleCodeExporter commented 8 years ago
at a quick glance, it looks like you've got your libreadline in the wrong 
place, and
aren't telling configure where it is.

You're indicating that you have the libreadline in /usr/lib, so in your iPhuc
directory, do the following commands:

make distclean
./autogen.sh && ./configure --with-readline=/usr && make

If that doesn't work, you may want to double check how you installed readline, 
it
shouldn't be pointing to libedit (I don't think), you should have the following 
files
somewhere:

/opt/local/lib/libreadline.5.0.dylib
/opt/local/lib/libreadline.5.1.dylib
/opt/local/lib/libreadline.5.2.dylib
/opt/local/lib/libreadline.5.dylib
/opt/local/lib/libreadline.a
/opt/local/lib/libreadline.dylib

along with the header files in:

/opt/local/include/readline

Now, you may not have them in /opt/local, you may have another prefix (which is 
what
you need to specify in the command:

./autogen.sh && ./configure --with-readline=/path/to/readline/prefix && make

Hope that helps.

Original comment by masterof...@gmail.com on 15 Aug 2007 at 5:57

GoogleCodeExporter commented 8 years ago
The point here is that the binary release version which was throwing the error 
isn't
suppposed to include libreadline.  

On the custom compile, I'd tried ./configure --without-readline and got that 
error.

Original comment by mcinto...@gmail.com on 17 Aug 2007 at 2:42

GoogleCodeExporter commented 8 years ago
Right, and it's not only referencing libreadline (at the hard-coded path
/opt/local/lib/libreadline.5.2.dylib) but it's including libncurses there as 
well.

Are you sure you uploaded the right file?

-- st3veh

$ otool -L iphuc-universal       
iphuc-universal:
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 368.28.0)

/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current
version 5.0.0)
        /opt/local/lib/libreadline.5.2.dylib (compatibility version 5.0.0, current
version 5.2.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)

Original comment by steve.ha...@gmail.com on 19 Aug 2007 at 8:02

GoogleCodeExporter commented 8 years ago
As of the current version, you can build iPhuc without external readline and 
forgo the tab completion.  As well, if 
you cant get it to build or if you dont know enough about the GNU build tools 
we recommend just downloading 
the universal binary.

Original comment by iphucm...@gmail.com on 29 Aug 2007 at 2:40

GoogleCodeExporter commented 8 years ago

Original comment by iphucm...@gmail.com on 29 Aug 2007 at 2:40