Il giorno 01/apr/07, alle ore 01:15, Ryan Schmidt ha scritto:
On Mar 31, 2007, at 11:27, Elias Pipping wrote:
On Mar 31, 2007, at 4:59 PM, Massimo Di Stefano wrote:
ld: Undefined symbols: _rl_completion_matches _rl_filename_completion_function _rl_username_completion_function /usr/bin/libtool: internal link edit command failed
Is it possible that you have readline installed in /usr/local ?
To complete Elias's thought: If you do have readline in /usr/ local, that's a problem for MacPorts. Get rid of that version of readline, if you're not using it for anything. If you are using it, then you'll need to temporarily move it out of the way, do your thing with MacPorts, then move your readline back in place. But note that you may very well need to do this each time you want to use any part of MacPorts, which will get tedious.
hi,
i never installed readline from source, in usr/local
i do not know if this can be an incompatibily with other unix-tools like fink or some frameworks that i've installed.
i've tried to "comment #" the fink path in my .bash_profile and than i restarted term.app and launch again the sefupdate command, but nothing changes.
have you a suggestion a bout on "how check the problem" ?
The error message really does point to a rogue readline somewhere in your path. To see everywhere that you have readline on your system, try this: find / -name '*readline*' 2>/dev/null this is the log : Last login: Sun Apr 1 20:52:36 on ttyp1 Welcome to Darwin! computer-di-epifanio:~ epifanio$ find / -name '*readline*' 2>/dev/null /Applications/MATLAB73/toolbox/compiler/deploy/readline.mexmaci /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/PrivateFrameworks/ readline.framework /Developer/SDKs/MacOSX10.4u.sdk/usr/include/readline /Developer/SDKs/MacOSX10.4u.sdk/usr/include/readline/readline.h /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libreadline.dylib /grass6/rpm/fedora/grass-readline.patch /Library/Frameworks/Python.framework/Versions/2.4/Resources/ Python.app/Contents/Resources/English.lproj/Help/python/lib/module- readline.html /Library/Frameworks/Python.framework/Versions/2.4/Resources/ Python.app/Contents/Resources/English.lproj/Help/python/lib/readline- example.html /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib- dynload/readline.so /Library/Frameworks/Python.framework/Versions/2.5/Resources/ English.lproj/Documentation/lib/module-readline.html /Library/Frameworks/Python.framework/Versions/2.5/Resources/ English.lproj/Documentation/lib/readline-example.html /Library/Frameworks/Python.framework/Versions/MacPython2.4/lib/ python2.4/lib-dynload/readline.so /Library/Frameworks/Python.framework/Versions/MacPython2.4/Resources/ English.lproj/Documentation/lib/module-readline.html /Library/Frameworks/Python.framework/Versions/MacPython2.4/Resources/ English.lproj/Documentation/lib/readline-example.html /Library/Frameworks/R.framework/Versions/2.4/Resources/lib/ libreadline.5.1.dylib /Library/Frameworks/R.framework/Versions/2.4/Resources/lib/ libreadline.dylib /Library/Frameworks/R.framework/Versions/2.4/Resources/library/base/ help/readline /Library/Frameworks/R.framework/Versions/2.4/Resources/library/base/ html/readline.html /Library/Frameworks/R.framework/Versions/2.4/Resources/library/base/ latex/readline.tex /Library/Frameworks/R.framework/Versions/2.4/Resources/library/base/R- ex/readline.R /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate1/base/src/pextlib1.0/readline.c /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate1/base/src/pextlib1.0/readline.h /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate1/base/src/pextlib1.0/readline.o /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/gauche-readline /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/readline /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/readline-4 /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/devel/readline-5 /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/lang/lua/files/patch- use_readline.diff /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/perl/p5-term-readline-gnu /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/python/py-readline /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/python/py25-readline /scisoft/all/packages/iraf/iraf/pkg/ecl/readline /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/doc/readline.0.gz /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/doc/readline.3.gz /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/doc/readline.html.gz /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/doc/readline.info.gz /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/doc/readline.pdf.gz /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/doc/readline.ps.gz /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/doc/readline_3.ps.gz /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/examples/readlinebuf.h /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/readline.c /scisoft/all/packages/iraf/iraf/pkg/ecl/readline/readline.h /scisoft/i386/include/readline /scisoft/i386/lib/libreadline.5.1.dylib /scisoft/i386/lib/libreadline.5.dylib /scisoft/i386/lib/libreadline.a /scisoft/i386/lib/libreadline.dylib /scisoft/i386/Packages/midas/06FEBpl1.0/lib/libreadline.a /scisoft/i386/Packages/midas/06FEBpl1.0/libsrc/readline /scisoft/i386/Packages/midas/06FEBpl1.0/libsrc/readline/readline.c /scisoft/i386/Packages/midas/06FEBpl1.0/libsrc/readline/readline.h /scisoft/i386/Packages/midas/06FEBpl1.0/libsrc/readline/readline.o /scisoft/i386/Packages/midas/06FEBpl1.0/system/unix/man1/readline.1 /scisoft/i386/Packages/midas/06FEBpl1.0/system/unix/manl/readline.l /scisoft/i386/Packages/readline-5.1 /scisoft/i386/Packages/readline-5.1/include/readline /scisoft/i386/Packages/readline-5.1/include/readline/readline.h /scisoft/i386/Packages/readline-5.1/info/readline.info /scisoft/i386/Packages/readline-5.1/lib/libreadline.5.1.dylib /scisoft/i386/Packages/readline-5.1/lib/libreadline.5.dylib /scisoft/i386/Packages/readline-5.1/lib/libreadline.a /scisoft/i386/Packages/readline-5.1/lib/libreadline.dylib /scisoft/i386/Packages/readline-5.1/man/man3/readline.3 /source/DarwinPorts/src/pextlib1.0/readline.c /source/DarwinPorts/src/pextlib1.0/readline.h /source/DarwinPorts/src/pextlib1.0/readline.o /source/gpsdrive-2.09/src/mysql/readline.h /source/grass6/rpm/fedora/grass-readline.patch /source/octave-workshop-0.1/doc/index/f/read_readline_init_file.html /sw/fink/10.4/stable/main/finkinfo/libs/readline.info /sw/fink/10.4/stable/main/finkinfo/libs/readline.patch /sw/fink/10.4/stable/main/finkinfo/libs/readline5.info /sw/fink/10.4/stable/main/finkinfo/libs/readline5.patch /sw/fink/10.4/unstable/main/binary-darwin-i386/libs/readline5- shlibs_5.0-1005_darwin-i386.deb /sw/fink/10.4/unstable/main/binary-darwin-i386/libs/ readline5_5.0-1005_darwin-i386.deb /sw/fink/10.4/unstable/main/finkinfo/libs/perlmods/term-readline-gnu- pm.info /sw/fink/10.4/unstable/main/finkinfo/libs/perlmods/term-readline-pm.info /sw/fink/10.4/unstable/main/finkinfo/libs/readline-java.info /sw/fink/10.4/unstable/main/finkinfo/libs/readline-java.patch /sw/fink/10.4/unstable/main/finkinfo/libs/readline.info /sw/fink/10.4/unstable/main/finkinfo/libs/readline.patch /sw/fink/10.4/unstable/main/finkinfo/libs/readline5.info /sw/fink/10.4/unstable/main/finkinfo/libs/readline5.patch /sw/fink/debs/readline5-shlibs_5.0-1005_darwin-i386.deb /sw/fink/debs/readline5_5.0-1005_darwin-i386.deb /sw/fink.old/10.4/stable/main/finkinfo/libs/readline.info /sw/fink.old/10.4/stable/main/finkinfo/libs/readline.patch /sw/fink.old/10.4/stable/main/finkinfo/libs/readline5.info /sw/fink.old/10.4/stable/main/finkinfo/libs/readline5.patch /sw/fink.old/10.4/unstable/main/finkinfo/libs/perlmods/term-readline- gnu-pm581.info /sw/fink.old/10.4/unstable/main/finkinfo/libs/perlmods/term-readline- gnu-pm586.info /sw/fink.old/10.4/unstable/main/finkinfo/libs/perlmods/term-readline- pm.info /sw/fink.old/10.4/unstable/main/finkinfo/libs/readline-java.info /sw/fink.old/10.4/unstable/main/finkinfo/libs/readline-java.patch /sw/fink.old/10.4/unstable/main/finkinfo/libs/readline.info /sw/fink.old/10.4/unstable/main/finkinfo/libs/readline.patch /sw/fink.old/10.4/unstable/main/finkinfo/libs/readline5.info /sw/fink.old/10.4/unstable/main/finkinfo/libs/readline5.patch /sw/include/readline /sw/include/readline/readline.h /sw/lib/libreadline.4.2.dylib /sw/lib/libreadline.4.3.dylib /sw/lib/libreadline.4.dylib /sw/lib/libreadline.5.0.dylib /sw/lib/libreadline.5.dylib /sw/lib/libreadline.a /sw/lib/libreadline.dylib /sw/lib/python2.4/lib-dynload/readline.so /sw/lib/python2.5/lib-dynload/readline.so /sw/share/doc/python24/Doc/lib/libreadline.tex /sw/share/doc/python24/html/lib/module-readline.html /sw/share/doc/python24/html/lib/readline-example.html /sw/share/doc/python25/Doc/lib/libreadline.tex /sw/share/doc/python25/html/lib/module-readline.html /sw/share/doc/python25/html/lib/readline-example.html /sw/share/doc/readline-shlibs /sw/share/doc/readline5 /sw/share/doc/readline5-shlibs /sw/share/info/readline.info /sw/share/man/man3/readline.3 /sw/src/readline-5.0.tar.gz /sw/var/cache/apt/archives/readline-shlibs_4.3-1028_darwin-i386.deb /sw/var/cache/apt/archives/readline_4.3-1028_darwin-i386.deb /sw/var/lib/dpkg/info/readline-shlibs.list /sw/var/lib/dpkg/info/readline-shlibs.shlibs /sw/var/lib/dpkg/info/readline5-shlibs.list /sw/var/lib/dpkg/info/readline5-shlibs.shlibs /sw/var/lib/dpkg/info/readline5.list /sw/var/lib/dpkg/info/readline5.postinst /sw/var/lib/dpkg/info/readline5.prerm /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/lib-dynload/xreadlines.so /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/test/output/test_xreadline /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/test/test_xreadline.py /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/test/test_xreadline.pyc /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/test/test_xreadline.pyo /Users/epifanio/grass/grass6/rpm/fedora/grass-readline.patch /Users/epifanio/grass6/rpm/fedora/grass-readline.patch /Users/epifanio/grass66/rpm/fedora/grass-readline.patch /usr/include/readline /usr/include/readline/readline.h /usr/lib/libreadline.dylib /usr/local/grasslib/include/readline /usr/local/grasslib/include/readline/readline.h /usr/local/grasslib/info/readline.info /usr/local/grasslib/lib/libreadline.5.2.dylib /usr/local/grasslib/lib/libreadline.5.dylib /usr/local/grasslib/lib/libreadline.dylib /usr/local/grasslib/man/man3/readline.3 /usr/local/include/readline /usr/local/include/readline/readline.h /usr/local/lib/libreadline.a /usr/share/ri/1.8/system/IO/readline-i.yaml /usr/share/ri/1.8/system/IO/readlines-c.yaml /usr/share/ri/1.8/system/IO/readlines-i.yaml /usr/share/ri/1.8/system/Kernel/readline-i.yaml /usr/share/ri/1.8/system/Kernel/readlines-i.yaml /usr/share/ri/1.8/system/Pathname/readlines-i.yaml /usr/share/ri/1.8/system/Zlib/GzipReader/readline-i.yaml /usr/share/ri/1.8/system/Zlib/GzipReader/readlines-i.yaml /usr/share/vim/vim62/indent/readline.vim /usr/share/vim/vim62/syntax/readline.vim computer-di-epifanio:~ epifanio$ thanks to oll for any suggestion. Massimo
On Apr 1, 2007, at 15:37, Massimo Di Stefano wrote:
Il giorno 01/apr/07, alle ore 01:15, Ryan Schmidt ha scritto:
On Mar 31, 2007, at 11:27, Elias Pipping wrote:
On Mar 31, 2007, at 4:59 PM, Massimo Di Stefano wrote:
ld: Undefined symbols: _rl_completion_matches _rl_filename_completion_function _rl_username_completion_function /usr/bin/libtool: internal link edit command failed
Is it possible that you have readline installed in /usr/local ?
To complete Elias's thought: If you do have readline in /usr/ local, that's a problem for MacPorts. Get rid of that version of readline, if you're not using it for anything. If you are using it, then you'll need to temporarily move it out of the way, do your thing with MacPorts, then move your readline back in place. But note that you may very well need to do this each time you want to use any part of MacPorts, which will get tedious.
i never installed readline from source, in usr/local
i do not know if this can be an incompatibily with other unix-tools like fink or some frameworks that i've installed.
i've tried to "comment #" the fink path in my .bash_profile and than i restarted term.app and launch again the sefupdate command, but nothing changes.
have you a suggestion a bout on "how check the problem" ?
The error message really does point to a rogue readline somewhere in your path. To see everywhere that you have readline on your system, try this:
find / -name '*readline*' 2>/dev/null
this is the log :
Ok, so you can see that you have many copies of the readline libraries on your system. You have a static (.a) and dynamic (.dylib) pair in /scisoft/i386/lib:
/scisoft/i386/lib/libreadline.5.1.dylib /scisoft/i386/lib/libreadline.5.dylib /scisoft/i386/lib/libreadline.a /scisoft/i386/lib/libreadline.dylib
You have a couple dynamic versions and a static version from Fink:
/sw/lib/libreadline.4.2.dylib /sw/lib/libreadline.4.3.dylib /sw/lib/libreadline.4.dylib /sw/lib/libreadline.5.0.dylib /sw/lib/libreadline.5.dylib /sw/lib/libreadline.a /sw/lib/libreadline.dylib
You have a static version from Apple:
/usr/lib/libreadline.dylib
You have a dynamic version in /usr/local/grasslib/lib:
/usr/local/grasslib/lib/libreadline.5.2.dylib /usr/local/grasslib/lib/libreadline.5.dylib /usr/local/grasslib/lib/libreadline.dylib
And you do have a static version in /usr/local/lib, as was our suspicion initially:
/usr/local/lib/libreadline.a
My guess is that either the one in /usr/local/lib or one of the ones in /sw/lib are being picked up by MacPorts, and that these readlines are not behaving the way MacPorts expect them to. As I said before: Move those out of the way (for example you could rename /usr/local to /usr/local-disabled, or /sw to /sw-disabled), then try your thing with MacPorts. Once you've succeeded doing whatever you were doing with MacPorts, you can move the disabled readline back where it was (understanding, however, that it may continue to interfere with your use of MacPorts until you remove it completely).
participants (2)
-
Massimo Di Stefano
-
Ryan Schmidt