Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gusain

macrumors newbie
Original poster
I'm trying to build openssl (0.9.8k) (which is to be used with remail). I get error at the end when it try to build executable.

I get this error :
--------------------------------------------------------------------------------------
shlib_target=; if [ -n "" ]; then \
shlib_target="darwin-shared"; \
elif [ -n "" ]; then \
FIPSLD_CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2; CC=../fips/fipsld; export CC FIPSLD_CC; \
fi; \
LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
[ "x" = "xlibfips" ] && LIBRARIES="$LIBRARIES -lfips"; \
make -f ../Makefile.shared -e \
CC=${CC} APPNAME=openssl OBJECTS="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 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 spkac.o smime.o rand.o engine.o ocsp.o prime.o cms.o" \
LIBDEPS="-Wl,-search_paths_first $LIBRARIES " \
link_app.${shlib_target}
( :; LIBDEPS="${LIBDEPS:--Wl,-search_paths_first -L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -g3 -DL_ENDIAN -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | 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 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 spkac.o smime.o rand.o engine.o ocsp.o prime.o cms.o ${LIBDEPS} )
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
make[3]: *** [link_app.] Error 1
make[2]: *** [openssl] Error 2
make[1]: *** [build_apps] Error 1
make: *** [top] Error 2
--------------------------------------------------------------------------------------

uname -a

Darwin rajpal-gusains-MacBook-Pro.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

--------------------------------------------------------------------------------------
Variables used for building openssl.

CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
CXX=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2
CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/cpp-4.2
SYSROOT=-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk
MMACOSX_VERSION_MIN=-mmacosx-version-min=10.6
ARCH=i386
PREFIX=/Users/gusain/Documents/IPhone/reMail/remail-iphone/build-crypto-deps/binaries//Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk/Debug
PLATFORM=iPhoneSimulator
SDK=iPhoneSimulator3.1.3.sdk
CONFIG=Debug
DEBUG=1
--------------------------------------------------------------------------------------
 
Installation issue.

In case any one else facing the similar issue, check if the sysroot directory that you specified contains the crt1.10.6.o file (in sysroot_dir/usr/lib). In case it's not there, link it to existing crt1.10.5.o file.

sudo ln -s crt1.10.5.o crt1.10.6.o
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.