hi all- a while back i started having application throw errors complaining about libz. things like: cfp:/opt/local/lib > gem --version cfp:/opt/local/lib > gem --version 2>&1|less dyld: NSLinkModule() error dyld: Symbol not found: <snip binary> Referenced from: /opt/local/lib/libz.1.dylib Expected in: /opt/local/lib/libz.1.dylib i haven't done any manual compiling in there at all - just port installs of various packages. anyhow, i moved /opt/local/lib/libz.1.dylib to /opt/local/lib/libz. 1.dylib.org to see if the linker would pick on something compatible and, for the most part it has. however, now i can't compile anything that links against things like libcrypto, etc, that originally linked against libz.1.dylib: the compilation will abort with symbols not found. so basically what i have is a libz which seems to have gotten clobbered - some stuff needs the old one and some the newest (1.2.3) one. back in linux land i know how to address these issues but, here on the mac, i'm not sure where to begin. can anyone give me advice on figuring out what happened and how to fix? kind regards. a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama
On Oct 3, 2007, at 21:20, ara.t.howard wrote:
a while back i started having application throw errors complaining about libz. things like:
cfp:/opt/local/lib > gem --version
cfp:/opt/local/lib > gem --version 2>&1|less dyld: NSLinkModule() error dyld: Symbol not found: <snip binary> Referenced from: /opt/local/lib/libz.1.dylib Expected in: /opt/local/lib/libz.1.dylib
i haven't done any manual compiling in there at all - just port installs of various packages.
anyhow, i moved /opt/local/lib/libz.1.dylib to /opt/local/lib/libz. 1.dylib.org to see if the linker would pick on something compatible and, for the most part it has. however, now i can't compile anything that links against things like libcrypto, etc, that originally linked against libz.1.dylib: the compilation will abort with symbols not found.
so basically what i have is a libz which seems to have gotten clobbered - some stuff needs the old one and some the newest (1.2.3) one.
back in linux land i know how to address these issues but, here on the mac, i'm not sure where to begin.
can anyone give me advice on figuring out what happened and how to fix?
no clue what happened. just selfupdate and rebuild zlib: $ sudo port selfupdate $ sudo port -nfu upgrade zlib then rebuild all software that linked against zlib, for good measure.
On Oct 3, 2007, at 8:48 PM, Ryan Schmidt wrote:
no clue what happened. just selfupdate and rebuild zlib:
$ sudo port selfupdate $ sudo port -nfu upgrade zlib
rock on.
then rebuild all software that linked against zlib, for good measure.
any way to determine that via ports? cheers. a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama
On Oct 3, 2007, at 23:42, ara.t.howard wrote:
On Oct 3, 2007, at 8:48 PM, Ryan Schmidt wrote:
no clue what happened. just selfupdate and rebuild zlib:
$ sudo port selfupdate $ sudo port -nfu upgrade zlib
rock on.
then rebuild all software that linked against zlib, for good measure.
any way to determine that via ports?
you can use the script shown in the problem hotlist: http://trac.macosforge.org/projects/macports/wiki/ ProblemHotlist#a2.Aportfailedtobuildupgradeorrunwithamessagereferringtol ibintl.3.dylib
On Oct 3, 2007, at 8:48 PM, Ryan Schmidt wrote:
no clue what happened. just selfupdate and rebuild zlib:
$ sudo port selfupdate
this yields: cfp:~ > sudo port selfupdate DarwinPorts base version 1.442 installed Downloaded MacPorts base version 1.520 Configuring, Building and Installing new MacPorts base Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate1/base && ./configure --prefix=/ opt/local --with-install-user=root --with-install-group=admin --with- tclpackage=/Library/Tcl && make && make install" returned error 2 Command output: ld: /usr/local/lib/libz.dylib isym field of reference table entry 134 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 135 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 136 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 137 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 138 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 139 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 140 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 141 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 142 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 143 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 144 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 145 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 146 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 147 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 148 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 149 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 150 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 151 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 152 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 153 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 154 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 155 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 156 past the end of the symbol table ld: /usr/local/lib/libz.dylib isym field of reference table entry 157 past the end of the symbol table ld: warning prebinding disabled because dependent library: /opt/local/ lib/libcurl.4.dylib is not prebound ld: warning can't open dynamic library: /opt/local/lib/libz.1.dylib referenced from: /usr/local/lib/libcurl.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/libtool: internal link edit command failed make[2]: *** [Pextlib.dylib] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 thoughts? a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama
On Oct 3, 2007, at 23:51, ara.t.howard wrote:
On Oct 3, 2007, at 8:48 PM, Ryan Schmidt wrote:
no clue what happened. just selfupdate and rebuild zlib:
$ sudo port selfupdate
this yields:
cfp:~ > sudo port selfupdate DarwinPorts base version 1.442 installed Downloaded MacPorts base version 1.520 Configuring, Building and Installing new MacPorts base Error: /opt/local/bin/port: selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate1/base && ./configure --prefix=/ opt/local --with-install-user=root --with-install-group=admin -- with-tclpackage=/Library/Tcl && make && make install" returned error 2 Command output: ld: /usr/local/lib/libz.dylib isym field of reference table entry 134 past the end of the symbol table
[snip]
thoughts?
You have stuff in /usr/local, specifically you have a zlib in /usr/ local/lib. It is problematic to have things in /usr/local. Please get rid of it, move it out of the way, whatever. Reinstall all software you need using MacPorts.
On Oct 3, 2007, at 8:48 PM, Ryan Schmidt wrote:
no clue what happened. just selfupdate and rebuild zlib:
$ sudo port selfupdate $ sudo port -nfu upgrade zlib
then rebuild all software that linked against zlib, for good measure.
thought i'd make a note for posterity that, although i could not do a selfupdate with my corrupt zlib, i *could* do a $ sudo port -nfu upgrade zlib and all seems well know. thanks ryan. a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama
On Oct 4, 2007, at 15:44, ara.t.howard wrote:
On Oct 3, 2007, at 8:48 PM, Ryan Schmidt wrote:
no clue what happened. just selfupdate and rebuild zlib:
$ sudo port selfupdate $ sudo port -nfu upgrade zlib
then rebuild all software that linked against zlib, for good measure.
thought i'd make a note for posterity that, although i could not do a selfupdate with my corrupt zlib, i *could* do a
$ sudo port -nfu upgrade zlib
and all seems well know.
so now you can selfupdate as well?
On Oct 4, 2007, at 3:54 PM, Ryan Schmidt wrote:
so now you can selfupdate as well?
yes that worked afterwards too. just did it. cheers. a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama
participants (2)
-
ara.t.howard
-
Ryan Schmidt