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:
         Start            End              Type Open Ref GrpRef Name
00001eb9f3d00000 00001eb9f41a9000 exe 1 0 0 /usr/sbin/smtpd 00001ebc57315000 00001ebc57721000 rlib 0 1 0 /usr/lib/libevent.so.4.1 00001ebc36f81000 00001ebc3738d000 rlib 0 1 0 /usr/lib/libutil.so.12.1 00001ebc635bf000 00001ebc63a1d000 rlib 0 1 0 /usr/local/lib/libssl.so.32.0 00001ebc30b6b000 00001ebc3113b000 rlib 0 2 0 /usr/local/lib/libcrypto.so.32.0 00001ebc55e4c000 00001ebc56274000 rlib 0 1 0 /usr/lib/libm.so.9.0 00001ebca923e000 00001ebca9653000 rlib 0 1 0 /usr/lib/libz.so.5.0 00001ebc2a309000 00001ebc2a7f2000 rlib 0 1 0 /usr/lib/libc.so.77.0 00001ebbfad00000 00001ebbfad00000 rtld 0 1 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:
        Start            End              Type Open Ref GrpRef Name
00000df21a200000 00000df21a6a9000 exe 1 0 0 /usr/sbin/smtpd 00000df4fa561000 00000df4fa96d000 rlib 0 1 0 /usr/lib/libevent.so.4.1 00000df4fd17f000 00000df4fd58b000 rlib 0 1 0 /usr/lib/libutil.so.12.1 00000df453912000 00000df453d71000 rlib 0 1 0 /usr/lib/libssl.so.32.0 00000df4b38d6000 00000df4b3ea6000 rlib 0 1 0 /usr/local/lib/libcrypto.so.33.0 00000df4932e6000 00000df49370e000 rlib 0 1 0 /usr/lib/libm.so.9.0 00000df5086c3000 00000df508ad8000 rlib 0 1 0 /usr/lib/libz.so.5.0 00000df4e52e5000 00000df4e57d1000 rlib 0 1 0 /usr/lib/libc.so.78.1 00000df4d8700000 00000df4d8700000 rtld 0 1 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

Reply via email to