On Sun, 3 Mar 2024, Andi Vajda wrote:


On Sun, 3 Mar 2024, Omar Polo wrote:

ouch!  Don't know much of how pkgsrc works, but this seems strange.  Can
you make sure the users were created?  `grep smtp /etc/passwd' should be
enough.

Yes, both users exist. I created them with id 1012 and 1013 and they work fine with 7.3.0p2 built from a source download (ie, not from pkgsrc).
Here is the part of my /etc/passwd file with these two users:
 _smtpd:*:1012:1003:SMTP Daemon:/var/empty:/sbin/nologin
 _smtpq:*:1013:1004:SMTPD Queue:/var/empty:/sbin/nologin

Can you try passing explicitly CFLAGS and LDFLAGS instead of --with-libssl?

./configure CFLAGS='-I/home/vajda/libressl-3.8.2/local/ -I/usr/pkg' \
LDFLAGS='-L/home/vajda/libressl-3.8.2/local/lib -Wl,-rpath,/home/vajda/libressl-3.8.2/local/lib -L/usr/pkg/lib' \
   --prefix=`pwd`/local \
   --with-path-queue=/var/spool/smtpd \
   --with-path-empty=/var/empty \
   --with-path-mbox=`pwd`/local/var/mbox \
   --with-path-socket=/var/run \
   --with-path-pidfile=/var/run

I tried that now and configure still fails with the same error:
 checking whether LibreSSL's headers match the library... no
 configure: error: Your LibreSSL headers do not match your library.

Here is another clue: I tried the above configure with 7.3.0p2 and it _also_ fails with the same error.
But the command below, as reported yesterday works fine with 7.3.0p2:

./configure --prefix=`pwd`/local \
--with-libssl=/home/vajda/libressl-3.8.2/local --with-libevent=/usr/pkg \
--with-path-CAfile=/usr/pkg/share/mozilla-rootcerts/cacert.pem \
--with-path-queue=/var/spool/smtpd --with-path-empty=/var/empty \
--with-path-mbox=`pwd`/local/var/mbox --with-path-socket=/var/run

  checking whether LibreSSL's headers match the library... yes
  checking if programs using LibreSSL functions will link... yes
  checking whether LIBRESSL_VERSION_NUMBER is declared... yes

Andi..

Reply via email to