jignesh88 / remail-iphone

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

Compile error: openssl/ssl.h: No such file or directory #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I followed all the instructions on checking out and building remail

What is the expected output? What do you see instead?
2. The expected output is I should be able to compile and build remail but my 
compilation failed

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

Please provide any additional information below.

Original issue reported on code.google.com by markyan...@gmail.com on 6 Mar 2010 at 1:56

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi I'm new to Xcode development. I got same errors. Here are my steps:

- Fresh download and install iPhone SDK 3.1.3 with Xcode 3.1.4
- Follow steps in "How to build" for Mac OS X in 
http://code.google.com/p/remail-
iphone/. 
- Failed at "Click "Build and Debug" step in Xcode, with errors as shown in 
markyangzw's attachment.

Mac OS X 10.6.2
Xcode 3.2.1.

Original comment by dennis.s...@gmail.com on 6 Mar 2010 at 5:46

GoogleCodeExporter commented 9 years ago
Same problem here. I noticed that the shell script produced some errors at 
around the 
end. It went like this:

checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 
accepts -g... no
checking for /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 
option 
to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2... none
checking how to run the C preprocessor... 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp-4.2
configure: error: C preprocessor 
"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp-4.2" fails sanity 
check
See `config.log' for more details.
cp: 
binaries/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/De
bug/ma
n/man3/HMAC.3: Too many levels of symbolic links
cp: 
binaries/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/De
bug/ma
n/man3/HMAC_cleanup.3: Too many levels of symbolic links
cp: 
binaries/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/De
bug/ma
n/man3/HMAC_Final.3: Too many levels of symbolic links
cp: 
binaries/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/De
bug/ma
n/man3/HMAC_Init.3
... and so on for some more files ...

Original comment by pip...@gmail.com on 6 Mar 2010 at 1:08

GoogleCodeExporter commented 9 years ago
This seems to be a case sensitivity issue. I copied those dirs over with the 
finder,
but still have problems with finding openssl.

Original comment by chris.la...@gmail.com on 6 Mar 2010 at 5:34

GoogleCodeExporter commented 9 years ago
Chris - is your file system case-sensitive or case-insensitive?

piprog - does config.log contain any good info about why cpp-4.2 fails the 
sanity 
check?

Thanks, Gabor

Original comment by ga...@google.com on 6 Mar 2010 at 6:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue 2 has been merged into this issue.

Original comment by ga...@google.com on 6 Mar 2010 at 6:14

GoogleCodeExporter commented 9 years ago
piprog - I checked and I encountered the same issue on a Mac that I had 
upgraded 
from Leopard to Snow Leopard. Here's my hacky fix.

cd /usr/libexec/gcc/
sudo ln -s i686-apple-darwin10 i686-apple-darwin9

(Then run pull_dependencies.sh again)

I know this is bad but I don't know enough about gcc to figure out what the 
right 
thing is. Let me know if this fixes your issue though.

Gabor

Original comment by ga...@google.com on 6 Mar 2010 at 6:17

GoogleCodeExporter commented 9 years ago
Gabor,

I just did the symlink of the dirs and no change on the pull dependencies error 
I'm seeing:

digestmd5.c: In function ‘digestmd5_client_mech_step’:
digestmd5.c:4000: warning: pointer targets in assignment differ in signedness
make: *** [digestmd5.o] Error 1
Done - you can now open the ReMailIPhone Xcode project

I'm running Snow Leopard 10.6.2 and XCode 3.2.2 beta2.

Original comment by jasonl...@gmail.com on 6 Mar 2010 at 6:45

GoogleCodeExporter commented 9 years ago
I still get the Compile error: openssl/ssl.h: No such file or directory Error 
after doing sudo ln -s i686-apple-
darwin10 i686-apple-darwin9

I have attached my terminal output

Original comment by markyan...@gmail.com on 6 Mar 2010 at 7:33

Attachments:

GoogleCodeExporter commented 9 years ago
I experimented with this quite a bit and the solution is to compile against 
iPhone OS
3.0, *not* 3.1 or 3.1.2 or 3.1.3.

If you're still experiencing problems, let me know!

Original comment by gaborcse...@gmail.com on 6 Mar 2010 at 7:57

GoogleCodeExporter commented 9 years ago
I try all iPhone OS, from 3.0 to 3.1.3 but the problem is the same.
I use last XCode and SDK version (3.1.3).

Original comment by darthpelo on 6 Mar 2010 at 8:06

GoogleCodeExporter commented 9 years ago
Nope didnt solve it I still get the same error

Original comment by markyan...@gmail.com on 6 Mar 2010 at 9:30

GoogleCodeExporter commented 9 years ago
I have the same issue: openssl/ssl.h no such file or directory. 

I checked in finder and ssl.h in these folders:

/opt/local/include/openssl/ssl.h
REPODIR/build-crypto-deps/openssl/iPhoneSimulator_iPhoneSimulator3.0.sdk_Debug/o
penssl-
0.9.8k/ssl/ssl.h
REPODIR/build-crypto-deps/openssl/iPhoneOS_iPhoneOS3.0.sdk_Debug/openssl-0.9.8k/
ssl/ssl.h
REPODIR/build-crypto-deps/openssl/iPhoneSimulator_iPhoneSimulator3.0.sdk_Release
/openssl-
0.9.8k/ssl/ssl.h
REPODIR/build-crypto-deps/openssl/iPhoneOS_iPhoneOS3.0.sdk_Release/openssl-0.9.8
k/ssl/ssl,h

So, I am wondering if the source should reference ssl/ss.h or if the 
/opt/local/include folder is not setup in 
the project file. 

What do you recommend?

Original comment by rgraeb...@gmail.com on 6 Mar 2010 at 11:56

GoogleCodeExporter commented 9 years ago
Changing back to "new"

Can anyone figure out this issue? I'd be very grateful if you do.

Original comment by ga...@google.com on 7 Mar 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Issue 5 has been merged into this issue.

Original comment by ga...@google.com on 7 Mar 2010 at 12:51

GoogleCodeExporter commented 9 years ago
ditto for me:

Mac OS X 10.6.2
XCode 3.2.1

MBP upgraded to Snow Leopard too.

Original comment by glong...@gmail.com on 7 Mar 2010 at 3:19

GoogleCodeExporter commented 9 years ago
The error: openssl/ssl.h: No such file or directory

is caused by the missing directory:
mailcore/libetpan/binaries/Developer/Platforms/iPhoneSimulator.platform

I only got:
mailcore/libetpan/binaries/Developer/Platforms/iPhoneOS.platform

Original comment by soe...@gmail.com on 7 Mar 2010 at 4:05

GoogleCodeExporter commented 9 years ago
could you upload that folder somewhere?

Original comment by markyan...@gmail.com on 7 Mar 2010 at 4:08

GoogleCodeExporter commented 9 years ago
Gabor: thanks for the tips so far. The symlink helped somewhat (cpp-4.2 errors 
are gone) but still no joy, still 
having the Too many levels of symbolic links" error and thus the missing 
openssl/ssl.h issue to start with.

Original comment by pip...@gmail.com on 7 Mar 2010 at 7:54

GoogleCodeExporter commented 9 years ago
My file system is case insensitive and there are a few symlinks that look like 
this
SSL.3->ssl.3. Since the original gets clobbered by it's own symlink, the file 
does
not exists so moving it over with the finder does no good.

For people that want to openssl dir, you can find it in
build-crypto-deps/binaries/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
iPhoneOS3.0.sdk/Release/include/openssl/

No matter where this is moved to, it will not help. I tried to compile on a 
RHEL box,
but ran into Xcode issues, specifically armvr6, i believe.

I'm very interested in figuring this out, but don't have the time... So I hope 
this
tidbit of info helps.

Original comment by chris.la...@gmail.com on 7 Mar 2010 at 8:16

GoogleCodeExporter commented 9 years ago
Piprog, are you selecting iphone 3.0/distribition in xcode? Dont compile using 
iphone
simulator or default sdk. 

Original comment by itmind@gmail.com on 7 Mar 2010 at 9:55

GoogleCodeExporter commented 9 years ago
Now I've tried 3.0 Device | Distribution. It gives 90 errors, but they are 
different from the 88 I had before :-)

The first one is:

/Users/piprog/Development/mailcore/libetpan/build-mac/../src/low-level/imap/mail
imap.c:51:0 
/Users/piprog/Development/mailcore/libetpan/build-mac/../src/low-level/imap/mail
imap.c:51:23: error: 
sasl/sasl.h: No such file or directory

Original comment by pip...@gmail.com on 7 Mar 2010 at 11:42

GoogleCodeExporter commented 9 years ago
then I gues you moved from this problem to the other. Issue 3/4.

Did you created the dirty symlink in the libexec/gcc?

If ur like me, just want to use the app, I compiled, I can send ya, otherwise 
you'll
have to continue to debug this. 

Original comment by itmind@gmail.com on 8 Mar 2010 at 12:21

GoogleCodeExporter commented 9 years ago
All,

the openssl issue i was seeing - which actually started about a day ago - was
actually caused because at least for me, openssl.org is offline. Ergo, it 
couldn't
pull the source. i updated the  build-crypto-deps/openssl/openssl.sh to use a 
mirror,
and now pull_dependencies.sh is working again.

Original comment by techy...@gmail.com on 8 Mar 2010 at 3:02

GoogleCodeExporter commented 9 years ago
itmind: yes, I created the symlink as below:

$ cd /usr/libexec/gcc/
$ sudo ln -s i686-apple-darwin10 i686-apple-darwin9

and compiling 3.0 Device | Distribution.

I actually would like to be able to compile the app myself, but I'd be grateful 
if the compiled libs could be 
downloaded from somewhere...

Original comment by pip...@gmail.com on 8 Mar 2010 at 3:59

GoogleCodeExporter commented 9 years ago
im on the run so i dont have the url, but goto hackintosh forum and then: 
iphone > free toolchain software 
> release reMail

there you'll find the sendspace url I send to.

Original comment by itmind@gmail.com on 8 Mar 2010 at 6:49

GoogleCodeExporter commented 9 years ago
@techyogi: openssl.org is back up (at least as I see it from the Googleplex) so 
we
should be good.

Original comment by gaborcse...@gmail.com on 8 Mar 2010 at 7:02

GoogleCodeExporter commented 9 years ago
Revision 76b2f5cc97 fixes this issue. It turns out that I needed to copy some 
headers
into the right directories for this to work.

You can either:
1. delete everything and start from scratch
2. if you've already run pull_dependencies, just do
$ cd {YOUR REMAIL DIRECTORY}/build-crypto-deps
$ cp -r -v
binaries/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/De
bug/include/*
../../mailcore/libetpan/build-mac/include/.

The second approach will save you a lot of time because you won't need to 
recompile
all the dependencies.

Original comment by gaborcse...@gmail.com on 8 Mar 2010 at 7:04

GoogleCodeExporter commented 9 years ago
Issue 7 has been merged into this issue.

Original comment by gaborcse...@gmail.com on 8 Mar 2010 at 7:14

GoogleCodeExporter commented 9 years ago
gabor: the cp did the trick - excellent & thx!

Original comment by pip...@gmail.com on 9 Mar 2010 at 7:36

GoogleCodeExporter commented 9 years ago
I was able to compile distribution to device (3.1.3), only errors were the 
signing
certificate. Not sure if the "cp -r -v" helped as I rebuilt dependencies from 
scratch
with zero errors.

Original comment by chris.la...@gmail.com on 9 Mar 2010 at 10:33

GoogleCodeExporter commented 9 years ago
Hmm.  I just did a clean clone & pull_dependencies, but I was failing the 
Device build - mailimap.c could not 
find sasl/sasl.h

To resolve the sasl/sasl.h not found issue, I had to add a symbolic link:

ln -s 
$REMAIL_DIR/build-crypto-deps/cyrus-sasl/iPhoneOS_iPhoneOS3.0.sdk_Debug/cyrus-sa
sl-
2.1.23/include $REMAIL_DIR/../mailcore/libetpan/build-mac/include

I also had to update the code signing to my own user (Project|EditActiveTarget, 
not just Project Settings), then 
I was able to successfully build and install on my phone.

Working on publishing a minimally rebranded version in the App Store:  
http://www.handyapp.com/fwdMail  
Then we'll move forward from there.

Thanks!

kb

Original comment by kevinjbu...@gmail.com on 16 Mar 2010 at 5:37

GoogleCodeExporter commented 9 years ago
Had the same error as in #33, but I had to do this to get mine to work:

cd $REMAIL_DIR/../mailcore/libetpan/build-mac/include

mkdir sasl

cp 
$REMAIL_DIR/build-crypto-deps/cyrus-sasl/iPhoneOS_iPhoneOS3.0.sdk_Debug/cyrus-sa
sl-
2.1.23/include/* sasl

Pretty hacky... hopefully I'll come up with a better way of doing this.

Original comment by beta...@gmail.com on 2 Apr 2010 at 9:12