> On 2/29/2012 3:17 AM, YJZ wrote: > > So my question now is: Which option would squid go with, in order to > compile with --enable-ssl on Mac OS X? > Hello! > Looks like a trap, I would go with Openssl > Just download, ./configure --prefix someplace and when compiling squid > tell ./configure where to find ssl > Compiling against proprietary software is _always_ a pain and bad > business in the end. > > Regards > Sebastian > > I think the following quote describes the problem I'm facing: "Sadly even with OSX 10.7.3 Apple didn't update libssl and libcrypto." (http://wiki.mooege.org/Compiling) OS X 10.7.3 ships with openssl 0.9.8r, but to use --enable-ssl with squid 3.2.0.15 apparently requires openssl 1.0.0, as I came to find out. I had no problem building openssl 1.0.0e on OS X 10.4.11, but on 10.7.3, I ran into the following compiling openssl 1.0.0g, which I haven't found how to resolve. It seems to be a circular dependency problem, because as the quote above suggests, Apple didn't bother updating the libssl.0.9.8.dylib and libcrypto.0.9.8.dylib it shipped in 10.7.x with 64-bit-ness, but for me to build openssl 1.0.0 with 64-bit-ness, it needs at least the 64-bit libcrypto.dylib. ( :; LIBDEPS="${LIBDEPS:--Wl,-search_paths_first -L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -DMD32_REG_T=int -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o ${LIBDEPS} ) Undefined symbols for architecture x86_64: "_ENGINE_load_gost", referenced from: _ENGINE_load_builtin_engines in libcrypto.a(eng_all.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [link_app.] Error 1 make[1]: *** [openssl] Error 2 make: *** [build_apps] Error 1 -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de