Opened 8 years ago

Closed 8 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:
Has a Patch: no 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)

UserBuildConfig (1.6 KB) - added by bbjimmy 8 years ago.
my userbuildconfig
UserBuildConfig.2 (1.6 KB) - added by bbjimmy 8 years ago.
my userbuildconfig
failuer.txt (2.6 KB) - added by bbjimmy 8 years ago.
the failing command muse be here somewhere.
failuer-2.txt (3.3 KB) - added by bbjimmy 8 years ago.
new failure text.
BuildConfig (2.0 KB) - added by bbjimmy 8 years ago.
configure.hybrid.sh (389 bytes) - added by bbjimmy 8 years ago.
my configure script.
Jamfile (157 bytes) - added by bbjimmy 8 years ago.
generated.gcc2/jamfile
Jamfile.2 (4.2 KB) - added by bbjimmy 8 years ago.
/DATA/haiku/jamfile

Download all attachments as: .zip

Change History (29)

comment:1 Changed 8 years ago by bonefish

How did you enable the SSL support? In which directory did you run jam -q? Please also give the failing command line.

comment:2 Changed 8 years ago by bbjimmy

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 Changed 8 years ago by anevilyak

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 Changed 8 years ago by anevilyak

Also note, the name of the optional package is case sensitive, it should be: AddOptionalHaikuImagePackages OpenSSL ;

Changed 8 years ago by bbjimmy

Attachment: UserBuildConfig added

my userbuildconfig

Changed 8 years ago by bbjimmy

Attachment: UserBuildConfig.2 added

my userbuildconfig

Changed 8 years ago by bbjimmy

Attachment: failuer.txt added

the failing command muse be here somewhere.

comment:5 Changed 8 years ago by bbjimmy

added my UserBuildConfig and the error messages.

comment:6 Changed 8 years ago by bonefish

@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".

comment:7 Changed 8 years ago by bbjimmy

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 in reply to:  7 Changed 8 years ago by bonefish

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 Changed 8 years ago by bbjimmy

Same issue after removing the objects folder. Hasiku does not compile on hybrid images, gcc2-only seems to compile ok.

comment:10 Changed 8 years ago by bbjimmy

removed /DATA/haiku/generated/build_packages/openssl-1.0.0d-r1a3-x86-gcc2-2011-05-17 with the same result.

comment:11 Changed 8 years ago by bbjimmy

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

Changed 8 years ago by bbjimmy

Attachment: failuer-2.txt added

new failure text.

comment:12 Changed 8 years ago by bbjimmy

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 Changed 8 years ago by bonefish

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 Changed 8 years ago by bbjimmy

No, I didn't move the generated directories. I haven't built the tree since before r1a3 and am now using r1a3 to build. here is the file you requested.

Last edited 8 years ago by bbjimmy (previous) (diff)

Changed 8 years ago by bbjimmy

Attachment: BuildConfig added

Changed 8 years ago by bbjimmy

Attachment: configure.hybrid.sh added

my configure script.

comment:15 Changed 8 years ago by bonefish

The BuildConfig file looks OK as well. Please attach "generated-gcc2/build/Jamfile", too.

comment:16 Changed 8 years ago by bbjimmy

generated.gcc2/build/Jamfile does not exist.

comment:17 in reply to:  16 Changed 8 years ago by bonefish

Sorry, I meant "generated.gcc2/Jamfile".

Changed 8 years ago by bbjimmy

Attachment: Jamfile added

generated.gcc2/jamfile

comment:18 Changed 8 years ago by bbjimmy

added generated.gcc2/jamfile

Changed 8 years ago by bbjimmy

Attachment: Jamfile.2 added

/DATA/haiku/jamfile

comment:19 Changed 8 years ago by bonefish

Should be fixed in hrev42402. Please reopen, if the problem persists.

comment:20 Changed 8 years ago by bbjimmy

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 Changed 8 years ago by korli

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.