Opened 14 years ago

Closed 8 years ago

#25595 closed defect (worksforme)

openssl 1.0.0a: universal build fails on Tiger PowerPC

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: tiger powerpc Cc: neverpanic (Clemens Lang)
Port: openssl

Description

openssl 0.9.8o could build universal on Tiger, but 1.0.0a says:

:info:build if [ -n "libcrypto.1.0.0.dylib libssl.1.0.0.dylib" ]; then \
:info:build     /usr/bin/make -f ../../Makefile.shared -e \
:info:build             LIBNAME=gost \
:info:build             LIBEXTRAS='e_gost_err.o gost2001_keyx.o gost2001.o gost89.o gost94_keyx.o gost_ameth.o gost_asn1.o gost_crypt.o gost_ctl.o gost_eng.o gosthash.o gost_keywrap.o gost_md.o gost_pa
rams.o gost_pmeth.o gost_sign.o' \
:info:build             LIBDEPS='-L../.. -lcrypto' \
:info:build             link_o.darwin-shared; \
:info:build else \
:info:build     ar  r ../../libcrypto.a e_gost_err.o gost2001_keyx.o gost2001.o gost89.o gost94_keyx.o gost_ameth.o gost_asn1.o gost_crypt.o gost_ctl.o gost_eng.o gosthash.o gost_keywrap.o gost_md.o go
st_params.o gost_pmeth.o gost_sign.o; \
:info:build fi
:info:build ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/mp/lib/libz.1.dylib referenced from: ../../libcrypto.dylib (checking for undefined symbols may be affected) (No such 
file or directory, errno = 2)
:info:build ld: Undefined symbols:
:info:build _deflate referenced from libcrypto.1 expected to be defined in /mp/lib/libz.1.dylib
:info:build _deflateEnd referenced from libcrypto.1 expected to be defined in /mp/lib/libz.1.dylib
:info:build _deflateInit_ referenced from libcrypto.1 expected to be defined in /mp/lib/libz.1.dylib
:info:build _inflate referenced from libcrypto.1 expected to be defined in /mp/lib/libz.1.dylib
:info:build _inflateEnd referenced from libcrypto.1 expected to be defined in /mp/lib/libz.1.dylib
:info:build _inflateInit_ referenced from libcrypto.1 expected to be defined in /mp/lib/libz.1.dylib
:info:build _zError referenced from libcrypto.1 expected to be defined in /mp/lib/libz.1.dylib
:info:build /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
:info:build make[3]: *** [link_o.darwin] Error 1
:info:build make[2]: *** [lib] Error 2
:info:build make[1]: *** [subdirs] Error 1
:info:build make: *** [build_engines] Error 1

This should be a simple matter of adding "-lz" to the LDFLAGS.

Change History (5)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Actually it looks like the Configure script is meant to be adding "-lz" for us, if we request "zlib-dynamic". We're currently requesting "zlib", which is apparently something else but ends up using zlib.dylib anyway. Let me see if simply switching that works everywhere.

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; mww@… removed
Keywords: tiger powerpc added
Owner: changed from ryandesign@… to mww@…
Summary: openssl 1.0.0a: universal build fails on Tigeropenssl 1.0.0a: universal build fails on Tiger PowerPC

I got it backwards: the Configure script adds "-lz" unless we use "zlib-dynamic". So "-lz" is there, so this is not the problem. At this point I don't know how to solve this.

Also, the problem occurs only when using an SDK, which is only on Tiger PowerPC when building universal.

comment:3 Changed 14 years ago by ned-deily (Ned Deily)

Me too.

comment:4 Changed 9 years ago by jmroot (Joshua Root)

Cc: cal@… added; ryandesign@… removed
Owner: changed from mww@… to larryv@…

comment:5 Changed 8 years ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: newclosed

Is this still relevant? Is anybody still building universal OpenSSL on a Tiger PowerPC against a 10.4 SDK?

If so and you are able to debug this, please provide a patch. I cannot support this platform and am going to close this ticket as worksforme.

Note: See TracTickets for help on using tickets.