rohitjindal1184 / remail-iphone

Automatically exported from code.google.com/p/remail-iphone
0 stars 0 forks source link

ld: library not found for -lssl #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When debugging and release version. Active SDK that i use iPhone
Simulator 3.1

What version of the product are you using? On what operating system?
- XCode 3.2.1
- Mac OS X Version 10.6.1

Please provide any additional information below.

Ld build/Release-iphonesimulator/reMail.app/reMail normal i386
cd /Users/MacBook/Iphone/remail-iphone
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/us
r/local/git/bin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
-arch i386 -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.
2.sdk
-L/Users/MacBook/Iphone/remail-iphone/build/Release-iphonesimulator
-L/Users/MacBook/Iphone/remail-iphone/binaries/Developer/Platforms/iPhoneSimulat
or.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/Release/lib
-L/Users/MacBook/Iphone/remail-iphone
-L/Users/MacBook/Iphone/remail-iphone/../mailcore/libetpan/binaries/Developer/Pl
atforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/Release
/lib
-F/Users/MacBook/Iphone/remail-iphone/build/Release-iphonesimulator
-F/Users/MacBook/Iphone/remail-iphone -filelist
/Users/MacBook/Iphone/remail-iphone/build/ReMailIPhone.build/Release-iphonesimul
ator/ReMail.build/Objects-normal/i386/reMail.LinkFileList
-mmacosx-version-min=10.5 -all_load -ObjC
/Users/MacBook/Iphone/mailcore/build/Release-iphonesimulator/libmailcore.a
-framework Foundation -framework CoreGraphics -framework
SystemConfiguration -framework QuartzCore -framework MessageUI -framework
UIKit -liconv.2 -framework CoreLocation -framework AddressBook -framework
StoreKit -lssl -lcrypto -lsasl2
/Users/MacBook/Iphone/three20/src/build/Release-iphonesimulator/libThree20.a
-o
/Users/MacBook/Iphone/remail-iphone/build/Release-iphonesimulator/reMail.app/reM
ail

ld: library not found for -lssl
collect2: ld returned 1 exit status
Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1

Original issue reported on code.google.com by suryadha...@gmail.com on 9 Mar 2010 at 6:10

GoogleCodeExporter commented 9 years ago
You probably need to set your baseline SDK to 3.0 instead of 3.1 or similar. 
This worked for me.

Original comment by rootstyle on 9 Mar 2010 at 8:18

GoogleCodeExporter commented 9 years ago
Same problem here, already set sdk to 3.0 with no luck.

Ld build/Debug-iphonesimulator/reMail.app/reMail normal i386
cd /remail/remail-iphone
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch 
i386
-isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.
sdk
-L/remail/remail-iphone/build/Debug-iphonesimulator
-L/remail/remail-iphone/binaries/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator3.0.sdk/Debug/lib
-L/remail/remail-iphone
-L/remail/remail-iphone/../mailcore/libetpan/binaries/Developer/Platforms/iPhone
Simulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/Debug/lib
-F/remail/remail-iphone/build/Debug-iphonesimulator -F/remail/remail-iphone 
-filelist
/remail/remail-iphone/build/ReMailIPhone.build/Debug-iphonesimulator/ReMail.buil
d/Objects-normal/i386/reMail.LinkFileList
-mmacosx-version-min=10.5 -ObjC
/remail/mailcore/build/Debug-iphonesimulator/libmailcore.a -framework Foundation
-framework CoreGraphics -framework SystemConfiguration -framework QuartzCore
-framework MessageUI -framework UIKit -liconv.2 -framework CoreLocation 
-framework
AddressBook -framework StoreKit -lssl -lcrypto -lsasl2
/remail/three20/src/build/Debug-iphonesimulator/libThree20.a -o
/remail/remail-iphone/build/Debug-iphonesimulator/reMail.app/reMail

ld: library not found for -lssl
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1

Original comment by smariott...@gmail.com on 9 Mar 2010 at 10:30

GoogleCodeExporter commented 9 years ago
I believe this is indirectly caused by issue 3
(https://code.google.com/p/remail-iphone/issues/detail?id=3).  Basically your
../mailcore/libetpan/binaries/Developer/Platforms/iPhoneSimulator.platform/**
directories don't exist.

Fix that this problem goes away also.

Nathanael

Original comment by beta...@gmail.com on 10 Mar 2010 at 1:01

GoogleCodeExporter commented 9 years ago
Got "ld: library not found for -lssl" issue fixed in my env by reading the 
steps in 
previous posts. 

Here are my steps, compiled from various posts:

/* From Terminal, need some links as workarounds. */
  $cd /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ 
iPhoneSimulator3.0.sdk/usr/lib
  $sudo ln -s crt1.10.5.o crt1.10.6.o  
  $cd /usr/libexec/gcc
  $sudo ln -s i686-apple-darwin10 i686-apple-darwin9 
  $cd /Users/<myuser>/<mywork> 
  $hg clone https://remail-iphone.googlecode.com/hg/ remail-iphone 
  $cd remail-iphone/ 
  $sh pull_dependencies.sh 

/* From xcode */
  open ReMailIPhone xcode project and build it.

/***** f you encounter "ld: library not found for -lssl" build error in xcode, 
it may be 
because this directory is missing */

  1. Check whether this directory exists in your env.

     $ls 
<mywork>/mailcore/libetpan/binaries/Developer/Platforms/iPhoneSimulator.platfor
m

  2. If it does not, manually copy iPhoneSimulator.platform files in the build to 
mailcore

     $cd /Users/<myuser>/<mywork>/remail-iphone/build-crypto-deps
     $cp -R binaries/Developer/Platforms/iPhoneSimulator.platform 
../../mailcore/libetpan/binaries/Developer/Platforms

  3. Rebuild remailiphone project from xcode using iPhoneSimulator3.0 SDK

Hope this will also fix your 'ld: library not found for -lssl' issue.

 -Dennis

Original comment by dennis.s...@gmail.com on 14 Mar 2010 at 3:56

GoogleCodeExporter commented 9 years ago
Worked for me. Thx!

Original comment by patrick....@gmail.com on 15 Mar 2010 at 10:26

GoogleCodeExporter commented 9 years ago
Sounds like this problem is now solved?

Gabor

Original comment by gaborcse...@gmail.com on 20 Mar 2010 at 3:45