Bug 15745 - needs custom options for openssl libs and includes path for himmelblau
Summary: needs custom options for openssl libs and includes path for himmelblau
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: x64 Linux
: P5 critical (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-23 20:52 UTC by Aditya
Modified: 2024-10-24 09:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya 2024-10-23 20:52:10 UTC
I am building for OpenWrt targeting x86_64, because of crosscompiling in openwrt, the 'host' is using libressl and for target is using openssl, with the recent himmelblau changes needs options to specified which openssl libs and headers being used.

Currently even tough I am specified the cflags path with "-I" and ldflags with "-L", the samba buildsystem still doesn't picked up the openssl libs and includes path.

Currently failing with error : 
--with-himmelblau cannot be specified with LibreSSL 3.7.3
Comment 1 Aditya 2024-10-23 23:12:41 UTC
Another issue about utf8proc library and header on cargo by temporarily disabled the openssl check, i have seem not able to pass the utf8proc lib and include path location into the samba cargo build system by using CFLAGS and LDFLAGS env variable.
Comment 2 Aditya 2024-10-24 03:10:25 UTC
Going further but stopped at :
  = note: /usr/bin/ld: cannot find -lsamba-hostconfig-private-samba: No such file or directory
Comment 3 Aditya 2024-10-24 09:52:45 UTC
(In reply to Aditya from comment #2)
This fixed by adding "samba-hostconfig" into samba --private-libraries configure line.

Now samba is compiles even with libressl.

The real solution is only by having those custom path samba configure options for openssl lib and header files.