Opened 18 years ago

Closed 17 years ago

#11894 closed defect (duplicate)

Error selfupdating macports

Reported by: richard.matear@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: markd@…
Port:

Description

I get the following error when I try to update macports

sudo port -v selfupdate

after many lines of output the processes fails with:

cc -dynamiclib -L/usr/local/lib -L/usr/lib -lcurl -lssl -lcrypto -lz Pextlib.o strsed.o fgetln.o md5cmd.o setmode.o xinstall.o fs-traverse.o strcasecmp.o vercomp.o filemap.o sha1cmd.o compat.o curl.o rmd160cmd.o readline.o uid.o -o Pextlib.dylib -L/System/Library/Frameworks/Tcl.framework/Versions/8.4 -ltclstub8.4 -L/usr/local/lib -L/usr/lib -lcurl -lssl -lcrypto -lz -lreadline -lcrypto ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _rl_completion_matches _rl_filename_completion_function _rl_username_completion_function /usr/bin/libtool: internal link edit command failed make[2]: * [Pextlib.dylib] Error 1 make[1]: * [all] Error 1 make: * [all] Error 1

Any obvious reason why this occurs? The process of selfupdating failed on two different macs.

Change History (3)

comment:1 Changed 18 years ago by mrjozef@…

I had the same problem. The undefined symbols have to do something with the use of readline. I looked at src/pextlib1.0/readline.c but could not immediately think of a fix. The following workaround worked for me:

sudo port deactivate readline sudo port -v selfupdate sudo port activate readline

BTW, the problem occurred trying to install macports 1.440, with readline @5.2.001_0

comment:2 Changed 18 years ago by mrjozef@…

with linebreaks:

sudo port deactivate readline 
sudo port -v selfupdate 
sudo port activate readline

comment:3 Changed 17 years ago by markd@…

Cc: markd@… added
Resolution: duplicate
Status: newclosed

Noting this ticket in #10651 and closing this one to not have duplicates.

Note: See TracTickets for help on using tickets.