Opened 13 years ago
Closed 13 years ago
#7798 closed bug (fixed)
Error compiling haiku with ssl optional package included
Reported by: | bbjimmy | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/alpha3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Attempt to build haiku with ssl optional package included. jam -q
error:
C++ /DATA/haiku/generated.gcc2/objects/haiku/x86/release/kits/mail/ssl/ServerConnection.o /DATA/haiku/src/kits/mail/ServerConnection.cpp:8: openssl/ssl.h: No such file or directory /DATA/haiku/src/kits/mail/ServerConnection.cpp:9: openssl/rand.h: No such file or directory
Attachments (8)
Change History (29)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
If my userbuildconfig file includes openssl:
AddOptionalHaikuImagePackages openssl
the buils fails.
my command line:
jam -q
Either from the haiku directory .. /DATA/haiku where the svn repository lies or
from the gcc 2 folder. /DATA/haiku/generated.gcc2
for a gcc2 hybrid build.
or from the gcc4 folder: /DATA/haiku/generated.gcc4
for a gcc4 hybrid build.
comment:3 by , 13 years ago
The optional package should actually be irrelevant to the build of those...does your UserBuildConfig also contain HAIKU_BUILD_FEATURE_SSL = 1 ; ?
Also, the failing command line he meant was the one that jam outputs after it fails to compile, not the one you typed to start the build.
comment:4 by , 13 years ago
Also note, the name of the optional package is case sensitive, it should be: AddOptionalHaikuImagePackages OpenSSL ;
comment:6 by , 13 years ago
@anevilyak: When the OpenSSL package is added, the variable is set automatically, so there's no need to do that, too.
@bbjimmy: Everything looks good and I just verified that the mechanism works properly on trunk hrev42399 (gcc2). Maybe something went wrong downloading or extracting the OpenSSL zip file on your machine. Please have a look whether the directory "/DATA/haiku/generated.gcc2/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17/common/include" exists and contains " openssl/ssl.h" and "openssl/rand.h". If something looks fishy, remove the complete "generated.gcc2/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17" directory and, to be on the safe side, the corresponding zip file in "generated.gcc2/download".
follow-up: 8 comment:7 by , 13 years ago
I removed the generated-gcc2/download folder and the issue persisted. I then removed generaged-gcc2/objects this may take a while to test.
comment:8 by , 13 years ago
Replying to bbjimmy:
I removed the generated-gcc2/download folder and the issue persisted.
Removing the OpenSSL zip file in it would have been sufficient. More importantly, however, the "generated.gcc2/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17" is the one that is probably broken and might need to be removed. Have you looked into it at all?
I then removed generaged-gcc2/objects this may take a while to test.
That was utterly unnecessary.
BTW, you can just do a jam -q libmail.so
to check whether the issue persists. If you have multiple cores or hyperthreading, also add the option -j2
, -j4
, -j8
, or whatever matches your (logical) processor count.
comment:9 by , 13 years ago
Same issue after removing the objects folder. Hasiku does not compile on hybrid images, gcc2-only seems to compile ok.
comment:10 by , 13 years ago
removed /DATA/haiku/generated/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17 with the same result.
comment:11 by , 13 years ago
interesting. the jam downloaded openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17 but there is no /DATA/haiku/generated.gcc2/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17
comment:12 by , 13 years ago
after copying: /DATA/haiku/generated/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17 to
/DATA/haiku/generated-gcc2/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17
the jam proceeded . It seems that the hybrid build is broken with the openssl package not being unzipped or being unzipped to the wrong location.
comment:13 by , 13 years ago
You didn't by any chance copy or move any of your "generated" directories without fully reconfiguring it afterwards?
Please attach your "generated-gcc2/build/BuildConfig" file.
comment:14 by , 13 years ago
No, I didn't move the generated directories. I haven't built the tree since before t1a3 and am now using r1a3 to build. here is the file you requested.
by , 13 years ago
Attachment: | BuildConfig added |
---|
comment:15 by , 13 years ago
The BuildConfig file looks OK as well. Please attach "generated-gcc2/build/Jamfile", too.
comment:20 by , 13 years ago
I removed /DATA/haiku/generated.gcc2/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17 and /DATA/haiku/generated.gcc2/download/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17.zip then ran svn -up from /DATA/haiku and then jam-q from /DATA/haiku/generated.gcc2 and the error is now gone.
Thanks for the hard work.
Please close the ticket.
comment:21 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
How did you enable the SSL support? In which directory did you run
jam -q
? Please also give the failing command line.