Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Gilles Chehade
On Tue, Jun 23, 2015 at 08:10:57PM +0200, Gilles Chehade wrote:
 
  Ran into this problem again on OpenBSD 5.7 with LibreSSL 2.2.0. Previously
  posted solution only works for one of the two libraries in /usr/local/lib
  
  $ ldd /usr/sbin/smtpd
  /usr/sbin/smtpd:
  StartEnd  Type Open Ref GrpRef Name
  0df21a20 0df21a6a9000 exe  10   0
  /usr/sbin/smtpd
  0df4fa561000 0df4fa96d000 rlib 01   0
  /usr/lib/libevent.so.4.1
  0df4fd17f000 0df4fd58b000 rlib 01   0
  /usr/lib/libutil.so.12.1
  0df453912000 0df453d71000 rlib 01   0
  /usr/lib/libssl.so.32.0
  0df4b38d6000 0df4b3ea6000 rlib 01   0
  /usr/local/lib/libcrypto.so.33.0
  0df4932e6000 0df49370e000 rlib 01   0
  /usr/lib/libm.so.9.0
  0df5086c3000 0df508ad8000 rlib 01   0
  /usr/lib/libz.so.5.0
  0df4e52e5000 0df4e57d1000 rlib 01   0
  /usr/lib/libc.so.78.1
  0df4d870 0df4d870 rtld 01   0
  /usr/libexec/ld.so
  
  Any troubleshooting suggestions?
  

Trying to figure out if this is blocking for release of OpenSMTPD 5.7.1:

You installed LibreSSL 2.2.0 on top of OpenBSD 5.7 ?
Previous versions worked ?

Can you show me the build error ?

Gilles


-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Seth
On Mon, 29 Jun 2015 12:46:08 -0700, Gilles Chehade gil...@poolp.org  
wrote:

The subject being:

Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4  
libraries


The original issue from March concerned LibresSL 2.1.4, which was solved  
with the CFLAGS LDFLAGS workaround. The recent posts concern LibreSSL  
2.2.0.


Maybe I should have created a new thread rather that reviving the older  
one, sorry for the confusion.


Current build environment:

OpenBSD 5.7 amd64 release with all latest patches applied via Mtier openup  
utility.

LibreSSL 2.2.0
OpenSMTPD 5.7.1-rc1

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Seth
On Mon, 29 Jun 2015 09:38:54 -0700, Gilles Chehade gil...@poolp.org  
wrote:

Can you show me the build error ?


Ran 'sudo CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib make' 'from  
opensmtpd-5.7.1-rc1/smtpd' dir and there were no errors.


Log of make output attached.


opensmtpd-make.log
Description: Binary data


Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Gilles Chehade
On Mon, Jun 29, 2015 at 12:41:02PM -0700, Seth wrote:
 On Mon, 29 Jun 2015 09:38:54 -0700, Gilles Chehade gil...@poolp.org wrote:
 You installed LibreSSL 2.2.0 on top of OpenBSD 5.7 ?
 Correct
 Previous versions worked ?
 If you mean OpenSMTPD would compile with updated LibreSSL libraries when
 using the CFLAGS and LDFLAGS were needed as described earlier, then 'yes'
 Can you show me the build error ?
 
 I don't recall any build errors, running another one and will update the
 thread with any found.
 

The subject being:

Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 
libraries

I thought you encountered build errors.

I need as many informations as possible to try and setup an identical
environment to fix the issue.


-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Gilles Chehade
On Mon, Jun 29, 2015 at 12:57:27PM -0700, Seth wrote:
 On Mon, 29 Jun 2015 12:55:21 -0700, Gilles Chehade gil...@poolp.org wrote:
 what is is that you experience in this setup ?
 it builds but fails at startup ?
 
 It build and runs fine, however the binaries is not linked to the latest
 libssl in /usr/local/lib. Only the libcrypto lib is correctly linked.
 

ok, understood, i'm having a look at it right now, building 2.2.0



 $ ldd /usr/sbin/smtpd
 /usr/sbin/smtpd:
 StartEnd  Type Open Ref GrpRef Name
 1a26c5f0 1a26c63b3000 exe  10   0
 /usr/sbin/smtpd
 1a28e03a8000 1a28e07b4000 rlib 01   0
 /usr/lib/libevent.so.4.1
 1a28e1bc 1a28e1fcc000 rlib 01   0
 /usr/lib/libutil.so.12.1
 1a2933c95000 1a29340f4000 rlib 01   0
 /usr/lib/libssl.so.32.0
 1a28d80a2000 1a28d8672000 rlib 01   0
 /usr/local/lib/libcrypto.so.33.0
 1a298dd3c000 1a298e164000 rlib 01   0
 /usr/lib/libm.so.9.0
 1a28f83ce000 1a28f87e3000 rlib 01   0
 /usr/lib/libz.so.5.0
 1a28f57c9000 1a28f5cb5000 rlib 01   0
 /usr/lib/libc.so.78.1
 1a2925c0 1a2925c0 rtld 01   0
 /usr/libexec/ld.so
 
 -- 
 You received this mail because you are subscribed to misc@opensmtpd.org
 To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
 

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Gilles Chehade
On Mon, Jun 29, 2015 at 12:57:27PM -0700, Seth wrote:
 On Mon, 29 Jun 2015 12:55:21 -0700, Gilles Chehade gil...@poolp.org wrote:
 what is is that you experience in this setup ?
 it builds but fails at startup ?
 
 It build and runs fine, however the binaries is not linked to the latest
 libssl in /usr/local/lib. Only the libcrypto lib is correctly linked.
 

I was kinda puzzled then miod@ clarified for me, /usr/lib has priority
over /usr/local/lib, if a lib is available in both the one in /usr/lib
is the one used.

Small snippet from cc(1):

   The directories searched include several standard system
   directories *plus* any that you specify with -L.

It is an environment/host issue, I do not know if it can be fixed with
a build option at this point, it needs investigating, I honestly don't
have a clue if it can be worked-around.

I suggest you ask on m...@openbsd.org for suggestions on how to do it,
if it has worked in the past then the ld.so people may have changed it
because our Makefile certainly has not changed.

In the meantime, you can work around at runtime using LD_LIBRARY_PATH:

$ ldd smtpd/smtpd|grep -E lib(ssl|crypto)
1d2e3b43c000 1d2e3b89b000 rlib 01   0  
/usr/lib/libssl.so.32.0
1d2e52d38000 1d2e53308000 rlib 02   0  
/usr/lib/libcrypto.so.33.0
$ LD_LIBRARY_PATH=/usr/local/lib ldd smtpd/smtpd|grep -E lib(ssl|crypto)
141edd36f000 141edd7ce000 rlib 01   0  
/usr/local/lib/libssl.so.32.0
141fb51a 141fb577 rlib 02   0  
/usr/local/lib/libcrypto.so.33.0
$   

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Seth
On Mon, 29 Jun 2015 12:55:21 -0700, Gilles Chehade gil...@poolp.org  
wrote:

what is is that you experience in this setup ?
it builds but fails at startup ?


It build and runs fine, however the binaries is not linked to the latest  
libssl in /usr/local/lib. Only the libcrypto lib is correctly linked.


$ ldd /usr/sbin/smtpd
/usr/sbin/smtpd:
StartEnd  Type Open Ref GrpRef Name
1a26c5f0 1a26c63b3000 exe  10   0   
/usr/sbin/smtpd
1a28e03a8000 1a28e07b4000 rlib 01   0   
/usr/lib/libevent.so.4.1
1a28e1bc 1a28e1fcc000 rlib 01   0   
/usr/lib/libutil.so.12.1
1a2933c95000 1a29340f4000 rlib 01   0   
/usr/lib/libssl.so.32.0
1a28d80a2000 1a28d8672000 rlib 01   0   
/usr/local/lib/libcrypto.so.33.0
1a298dd3c000 1a298e164000 rlib 01   0   
/usr/lib/libm.so.9.0
1a28f83ce000 1a28f87e3000 rlib 01   0   
/usr/lib/libz.so.5.0
1a28f57c9000 1a28f5cb5000 rlib 01   0   
/usr/lib/libc.so.78.1
1a2925c0 1a2925c0 rtld 01   0   
/usr/libexec/ld.so


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Seth
On Mon, 29 Jun 2015 12:55:21 -0700, Gilles Chehade gil...@poolp.org  
wrote:

what is is that you experience in this setup ?


I should add that I would like OpenSMTPD to detect and build against the  
latest installed LibreSSL libraries automatically without requiring any  
manual CFLAGS/LDFLAGS workaround.


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-29 Thread Seth
On Mon, 29 Jun 2015 09:38:54 -0700, Gilles Chehade gil...@poolp.org  
wrote:

You installed LibreSSL 2.2.0 on top of OpenBSD 5.7 ?

Correct

Previous versions worked ?
If you mean OpenSMTPD would compile with updated LibreSSL libraries when  
using the CFLAGS and LDFLAGS were needed as described earlier, then 'yes'

Can you show me the build error ?


I don't recall any build errors, running another one and will update the  
thread with any found.


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-06-22 Thread Seth

On Mon, 09 Mar 2015 16:05:28 -0700, Seth l...@sysfu.com wrote:

Solved. This can be accomplished by setting environment variables with  
the make command, no configure script needed.


Hat tip to Nick Mathewson from the Tor-relays mailing list for cluing me  
in to this method.


$ sudo CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib make
$ sudo make install
$ ldd /usr/sbin/smtpd
/usr/sbin/smtpd:
 StartEnd  Type Open Ref GrpRef Name
 1eb9f3d0 1eb9f41a9000 exe  10   0   
/usr/sbin/smtpd
 1ebc57315000 1ebc57721000 rlib 01   0   
/usr/lib/libevent.so.4.1
 1ebc36f81000 1ebc3738d000 rlib 01   0   
/usr/lib/libutil.so.12.1
 1ebc635bf000 1ebc63a1d000 rlib 01   0   
/usr/local/lib/libssl.so.32.0
 1ebc30b6b000 1ebc3113b000 rlib 02   0   
/usr/local/lib/libcrypto.so.32.0
 1ebc55e4c000 1ebc56274000 rlib 01   0   
/usr/lib/libm.so.9.0
 1ebca923e000 1ebca9653000 rlib 01   0   
/usr/lib/libz.so.5.0
 1ebc2a309000 1ebc2a7f2000 rlib 01   0   
/usr/lib/libc.so.77.0
 1ebbfad0 1ebbfad0 rtld 01   0   
/usr/libexec/ld.so


Ran into this problem again on OpenBSD 5.7 with LibreSSL 2.2.0. Previously  
posted solution only works for one of the two libraries in /usr/local/lib


$ ldd /usr/sbin/smtpd
/usr/sbin/smtpd:
StartEnd  Type Open Ref GrpRef Name
0df21a20 0df21a6a9000 exe  10   0   
/usr/sbin/smtpd
0df4fa561000 0df4fa96d000 rlib 01   0   
/usr/lib/libevent.so.4.1
0df4fd17f000 0df4fd58b000 rlib 01   0   
/usr/lib/libutil.so.12.1
0df453912000 0df453d71000 rlib 01   0   
/usr/lib/libssl.so.32.0
0df4b38d6000 0df4b3ea6000 rlib 01   0   
/usr/local/lib/libcrypto.so.33.0
0df4932e6000 0df49370e000 rlib 01   0   
/usr/lib/libm.so.9.0
0df5086c3000 0df508ad8000 rlib 01   0   
/usr/lib/libz.so.5.0
0df4e52e5000 0df4e57d1000 rlib 01   0   
/usr/lib/libc.so.78.1
0df4d870 0df4d870 rtld 01   0   
/usr/libexec/ld.so


Any troubleshooting suggestions?

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: OpenSMTPD build process does not recognize newer LibreSSL 2.1.4 libraries

2015-03-09 Thread Seth
Solved. This can be accomplished by setting environment variables with the  
make command, no configure script needed.


Hat tip to Nick Mathewson from the Tor-relays mailing list for cluing me  
in to this method.


$ sudo CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib make
$ sudo make install
$ ldd /usr/sbin/smtpd
/usr/sbin/smtpd:
StartEnd  Type Open Ref GrpRef Name
1eb9f3d0 1eb9f41a9000 exe  10   0   
/usr/sbin/smtpd
1ebc57315000 1ebc57721000 rlib 01   0   
/usr/lib/libevent.so.4.1
1ebc36f81000 1ebc3738d000 rlib 01   0   
/usr/lib/libutil.so.12.1
1ebc635bf000 1ebc63a1d000 rlib 01   0   
/usr/local/lib/libssl.so.32.0
1ebc30b6b000 1ebc3113b000 rlib 02   0   
/usr/local/lib/libcrypto.so.32.0
1ebc55e4c000 1ebc56274000 rlib 01   0   
/usr/lib/libm.so.9.0
1ebca923e000 1ebca9653000 rlib 01   0   
/usr/lib/libz.so.5.0
1ebc2a309000 1ebc2a7f2000 rlib 01   0   
/usr/lib/libc.so.77.0
1ebbfad0 1ebbfad0 rtld 01   0   
/usr/libexec/ld.so


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org