Re: [fossil-users] OpenSSL in the source tree
On 11/02/2016 06:33 AM, Martin Gagnon wrote: > If you want to use openssl from your distro, you need to install the > development package of openssl. > > I think it's "openssl-devel" on CentOS. > > I'm not very familiar with CentOS but if you do: > > $ yum install openssl-devel > > the configure script *should* find what it needs. The platform's openssl packages are installed but the configure script does not find them. $ yum list installed | grep -i openssl | awk '{print $1}' apr-util-openssl.x86_64 openssl.x86_64 openssl-devel.x86_64 openssl-libs.x86_64 pyOpenSSL.x86_64 xmlsec1-openssl.x86_64 xmlsec1-openssl-devel.x86_64 There is also a problem in building a static fossil on this platform (CentOS-7). $ ../configure --prefix=$HOME/.local --with-openssl=tree --with-zlib=tree --with-th1-docs --with-th1-hooks --with-tcl=$HOME/.local/lib --disable-fusefs --json --static $ make ... /usr/bin/ld: cannot find -ltcl8.6 /usr/bin/ld: cannot find -ldl /usr/bin/ld: cannot find -lz /usr/bin/ld: cannot find -lpthread /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status I've tried (without success): $ ../configure --prefix=$HOME/.local --with-openssl=tree --with-zlib=tree --with-th1-docs --with-th1-hooks --with-tcl=$HOME/.local/lib --disable-fusefs --json --static LDFLAGS="-L/usr/lib64 -L${HOME}/.local/lib" CPPFLAGS="-I/usr/include -I${HOME}/.local/include" ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] OpenSSL in the source tree
On 11/02/2016 05:45 AM, Jan Nijtmans wrote: > 2016-11-02 7:29 GMT+01:00 Joe Mistachkin: >> I think using OpenSSL 1.1 will only work on the "openssl-1.1.0" branch. > > For Windows, that's true. For other platforms, openssl-1.1 works fine > in Fossil 1.36 or later. The reason is that dll names were changed in > openssl-1.1.0, this needs some build changes. But on other platforms, > openssl is 'almost' upwards compatible, at least sufficiently for > fossil to work unmodified. > >> Here are the commands I generally use to get things all working in the >> source tree: >> >> cd compat/zlib && ./configure && make >> cd .. >> wget -4 https://www.openssl.org/source/openssl-1.0.2j.tar.gz >> tar -zxvf openssl-1.0.2j.tar.gz >> mv openssl-1.0.2j openssl >> cd openssl >> ./config --with-zlib-include=../compat/zlib --with-zlib-lib=../compat/zlib >> make depend >> make >> cd ../.. >> ./configure --with-zlib=tree --with-openssl=tree >> make > > So, just use openssl-1.1 in the above, and everything should work fine. openssl-1.1.0b did not work today. It (openssl) compiles fine but configure (fossil) does not acknowledge its existence. Using the same procedure, openssl-1.0.2j is recognized during configure (fossil) and builds without errors. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] OpenSSL in the source tree
On 11/02/2016 02:29 AM, Joe Mistachkin wrote: > I think using OpenSSL 1.1 will only work on the "openssl-1.1.0" branch. > > Here are the commands I generally use to get things all working in the > source tree: > > cd compat/zlib && ./configure && make > cd .. > wget -4 https://www.openssl.org/source/openssl-1.0.2j.tar.gz > tar -zxvf openssl-1.0.2j.tar.gz > mv openssl-1.0.2j openssl > cd openssl > ./config --with-zlib-include=../compat/zlib --with-zlib-lib=../compat/zlib > make depend > make > cd ../.. > ./configure --with-zlib=tree --with-openssl=tree > make Thanks, Joe! For posterity, I configure with additional options (and this works): cd ../../build ../configure --prefix=$HOME/.local --with-openssl=tree --with-zlib=tree --with-th1-docs --with-th1-hooks --with-tcl=$HOME/.local/lib --disable-fusefs --json ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] OpenSSL in the source tree
On Wed, Nov 02, 2016 at 02:18:50AM -0400, Adam Jensen wrote: > When compiling on CentOS-7, 'configure --with-openssl=auto' doesn't find > what is needed. How can OpenSSL or LibreSSL source be placed in the > 'fossil/compat' directory such that 'configure --with-openssl=tree' will > work? I've tried both: > > tar xzf openssl-1.1.0b.tar.gz -C ~/build/fossil/compat/ > cd ~/build/fossil/compat/ > mv openssl-1.1.0b openssl > Hi Adam, If you want to use openssl from your distro, you need to install the development package of openssl. I think it's "openssl-devel" on CentOS. I'm not very familiar with CentOS but if you do: $ yum install openssl-devel the configure script *should* find what it needs. Regards, -- Martin G. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] OpenSSL in the source tree
2016-11-02 7:29 GMT+01:00 Joe Mistachkin: > I think using OpenSSL 1.1 will only work on the "openssl-1.1.0" branch. For Windows, that's true. For other platforms, openssl-1.1 works fine in Fossil 1.36 or later. The reason is that dll names were changed in openssl-1.1.0, this needs some build changes. But on other platforms, openssl is 'almost' upwards compatible, at least sufficiently for fossil to work unmodified. > Here are the commands I generally use to get things all working in the > source tree: > > cd compat/zlib && ./configure && make > cd .. > wget -4 https://www.openssl.org/source/openssl-1.0.2j.tar.gz > tar -zxvf openssl-1.0.2j.tar.gz > mv openssl-1.0.2j openssl > cd openssl > ./config --with-zlib-include=../compat/zlib --with-zlib-lib=../compat/zlib > make depend > make > cd ../.. > ./configure --with-zlib=tree --with-openssl=tree > make So, just use openssl-1.1 in the above, and everything should work fine. Regards, Jan Nijtmans ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] OpenSSL in the source tree
Adam Jensen wrote: > > But that results in: > --- > Checking for ssl in source tree...no > Error: OpenSSL not found. Consider --with-openssl=none to disable HTTPS > support > --- > I think using OpenSSL 1.1 will only work on the "openssl-1.1.0" branch. Here are the commands I generally use to get things all working in the source tree: cd compat/zlib && ./configure && make cd .. wget -4 https://www.openssl.org/source/openssl-1.0.2j.tar.gz tar -zxvf openssl-1.0.2j.tar.gz mv openssl-1.0.2j openssl cd openssl ./config --with-zlib-include=../compat/zlib --with-zlib-lib=../compat/zlib make depend make cd ../.. ./configure --with-zlib=tree --with-openssl=tree make -- Joe Mistachkin @ https://urn.to/r/mistachkin ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] OpenSSL in the source tree
When compiling on CentOS-7, 'configure --with-openssl=auto' doesn't find what is needed. How can OpenSSL or LibreSSL source be placed in the 'fossil/compat' directory such that 'configure --with-openssl=tree' will work? I've tried both: tar xzf openssl-1.1.0b.tar.gz -C ~/build/fossil/compat/ cd ~/build/fossil/compat/ mv openssl-1.1.0b openssl But that results in: --- Checking for ssl in source tree...no Error: OpenSSL not found. Consider --with-openssl=none to disable HTTPS support --- Any ideas? ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users