Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20954 closed defect (invalid)

OpenSSL Port fails on Snow Leopard

Reported by: thynctank@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: openssl Cc: benrasmusen@…
Port: openssl

Description

I get "warning: in /opt/local/lib/libz.dylib, file is not of required architecture" and numerous "undefined symbols".

This is a hold up to installing mysql and other ports.

I get similar problems with many other dylibs when trying to run "upgrade outdated"

Happy to provide further information, given instructions. Not a ports expert.

Change History (7)

comment:1 Changed 15 years ago by nerdling (Jeremy Lavergne)

Keywords: snow leopard removed
Owner: changed from macports-tickets@… to mww@…

Please do this and attach the output:

sudo port clean openssl zlib
sudo port uninstall zlib
sudo port -d install openssl

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

Incidentally, are these ports from when you had Leopard? If so, you should try using this command for rebuilding all your ports: sudo port upgrade --force installed

comment:3 Changed 15 years ago by thynctank@…

Haven't had a chance to try any of this, but it is indeed from an original Leopard install. I installed the latest .dmg for Snow Leopard but have had trouble updating a number of ports. Will try these when I get home today. Thanks for the quick response.

comment:4 Changed 15 years ago by tobypeterson

Resolution: invalid
Status: newclosed

No bug here. See Migration

comment:5 Changed 15 years ago by benrasmusen@…

I'm having a similar problem. I've tried all the steps above:

sudo port clean openssl zlib
sudo port uninstall zlib
sudo port -d install openssl

And

sudo port upgrade --force installed

And all the migration steps (https://trac.macports.org/wiki/Migration).

I'm still getting the following error:

$ sudo port install openssl
--->  Computing dependencies for openssl
--->  Fetching openssl
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/work/openssl-0.9.8j" && /usr/bin/make all " returned error 2
Command output: ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
Undefined symbols:
  "_inflateEnd", referenced from:
      _bio_zlib_free in libcrypto.a(c_zlib.o)
      _zlib_stateful_free_ex_data in libcrypto.a(c_zlib.o)
  "_deflate", referenced from:
      _bio_zlib_ctrl in libcrypto.a(c_zlib.o)
      _bio_zlib_write in libcrypto.a(c_zlib.o)
      _zlib_stateful_compress_block in libcrypto.a(c_zlib.o)
  "_deflateEnd", referenced from:
      _bio_zlib_free in libcrypto.a(c_zlib.o)
      _zlib_stateful_free_ex_data in libcrypto.a(c_zlib.o)
  "_inflateInit_", referenced from:
      _bio_zlib_read in libcrypto.a(c_zlib.o)
      _zlib_stateful_init in libcrypto.a(c_zlib.o)
  "_zError", referenced from:
      _bio_zlib_ctrl in libcrypto.a(c_zlib.o)
      _bio_zlib_read in libcrypto.a(c_zlib.o)
      _bio_zlib_write in libcrypto.a(c_zlib.o)
  "_deflateInit_", referenced from:
      _bio_zlib_write in libcrypto.a(c_zlib.o)
      _zlib_stateful_init in libcrypto.a(c_zlib.o)
  "_inflate", referenced from:
      _bio_zlib_read in libcrypto.a(c_zlib.o)
      _zlib_stateful_expand_block in libcrypto.a(c_zlib.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [link_a.darwin] Error 1
make[1]: *** [do_darwin-shared] Error 2
make: *** [libcrypto.0.9.8.dylib] Error 2

Error: Status 1 encountered during processing.

Version information: Mac OS 10.6.1 MacPorts 1.8.1

comment:6 Changed 15 years ago by benrasmusen@…

Cc: benrasmusen@… added

Cc Me!

comment:7 in reply to:  5 Changed 15 years ago by blb@…

Replying to benrasmusen@…:

Command output: ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture

That means you didn't fully follow the Migration page which says to do a full reinstall (it used to have a method for trying to do the upgrade in a more automated fashion, but as you see, doesn't work).

Note: See TracTickets for help on using tickets.