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)

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

Download all attachments as: .zip

Change History (29)

comment:1 by bonefish, 13 years ago

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

comment:2 by bbjimmy, 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 anevilyak, 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 anevilyak, 13 years ago

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

by bbjimmy, 13 years ago

Attachment: UserBuildConfig added

my userbuildconfig

by bbjimmy, 13 years ago

Attachment: UserBuildConfig.2 added

my userbuildconfig

by bbjimmy, 13 years ago

Attachment: failuer.txt added

the failing command muse be here somewhere.

comment:5 by bbjimmy, 13 years ago

added my UserBuildConfig and the error messages.

comment:6 by bonefish, 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".

comment:7 by bbjimmy, 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.

in reply to:  7 comment:8 by bonefish, 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 bbjimmy, 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 bbjimmy, 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 bbjimmy, 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

by bbjimmy, 13 years ago

Attachment: failuer-2.txt added

new failure text.

comment:12 by bbjimmy, 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 bonefish, 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 bbjimmy, 13 years ago

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 13 years ago by bbjimmy (previous) (diff)

by bbjimmy, 13 years ago

Attachment: BuildConfig added

by bbjimmy, 13 years ago

Attachment: configure.hybrid.sh added

my configure script.

comment:15 by bonefish, 13 years ago

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

comment:16 by bbjimmy, 13 years ago

generated.gcc2/build/Jamfile does not exist.

in reply to:  16 comment:17 by bonefish, 13 years ago

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

by bbjimmy, 13 years ago

Attachment: Jamfile added

generated.gcc2/jamfile

comment:18 by bbjimmy, 13 years ago

added generated.gcc2/jamfile

by bbjimmy, 13 years ago

Attachment: Jamfile.2 added

/DATA/haiku/jamfile

comment:19 by bonefish, 13 years ago

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

comment:20 by bbjimmy, 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 korli, 13 years ago

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