make looking for non-existent dyld file?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

make looking for non-existent dyld file?

rachalmers
Each time I build now, I get this from Postconf. Postfix 3.5.3 Mac OSX 10.15.5

It pops up as an OSX error message.

Dyld Error Message:
  Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/USER/*/postconf
  Reason: image not found


I’ve looked at src/postconf and it’s not being built even with the new libraries etc. ?

I don’t even have libssl.1.0.0.dylib on the system.

Is there something hidden here I’m missing?

make -f Makefile.init dynamicmaps=yes CCARGS='-I/usr/local/Cellar/berkeley-db@4/4.8.30/include -DHAS_MYSQL -I/usr/local/include/mysql -DUSE_TLS -I/usr/local/Cellar/openssl/1.0.2t -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/local/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include -DEF_COMMAND_DIR=\"/usr/local/sbin\" -DEF_CONGIG_DIR=\"/usr/local/etc/postfix\" -DEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DEF_DATA_DIR=\"/var/lib/postfix\" -DEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DEF_HTML_DIR=\"/usr/share/doc/postfix/html\" -DEF_MANPAGE_DIR=\"/usr/local/man\" -DEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DEF_QUEUE_DIR=\"/private/var/spool/postfix\" -DEF_README_DIR=\"/usr/share/doc/postfix\" -DEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\"' 'AUXLIBS=-L/usr/lib -lsasl2 -L/usr/local/Cellar/openssl/1.0.2t/lib -lssl -lcrypto -L/usr/local/Cellar/berkeley-db@4/4.8.30/lib -ldb' 'AUXLIBS_IUUC=-L/usr/local/Cellar/icu4c/62.1/lib -licuuc' 'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm' 'AUXLIBS_PCRE=-L/usr/local/lib -lpcre'

Thanks
Robert



Reply | Threaded
Open this post in threaded view
|

Re: make looking for non-existent dyld file?

Wietse Venema
As I told you before, use -I/blah/openssl/***include***
not -I/blah/openssl. Computers are too stupid to fix simple mistakes.

        Wietse

Robert Chalmers (Author):

> Each time I build now, I get this from Postconf. Postfix 3.5.3 Mac OSX 10.15.5
>
> It pops up as an OSX error message.
>
> Dyld Error Message:
>   Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
>   Referenced from: /Users/USER/*/postconf
>   Reason: image not found
>
>
> I?ve looked at src/postconf and it?s not being built even with the new libraries etc. ?
>
> I don?t even have libssl.1.0.0.dylib on the system.
>
> Is there something hidden here I?m missing?
>
> make -f Makefile.init dynamicmaps=yes CCARGS='-I/usr/local/Cellar/berkeley-db@4/4.8.30/include -DHAS_MYSQL -I/usr/local/include/mysql -DUSE_TLS -I/usr/local/Cellar/openssl/1.0.2t -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/local/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include -DEF_COMMAND_DIR=\"/usr/local/sbin\" -DEF_CONGIG_DIR=\"/usr/local/etc/postfix\" -DEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DEF_DATA_DIR=\"/var/lib/postfix\" -DEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DEF_HTML_DIR=\"/usr/share/doc/postfix/html\" -DEF_MANPAGE_DIR=\"/usr/local/man\" -DEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DEF_QUEUE_DIR=\"/private/var/spool/postfix\" -DEF_README_DIR=\"/usr/share/doc/postfix\" -DEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\"' 'AUXLIBS=-L/usr/lib -lsasl2 -L/usr/local/Cellar/openssl/1.0.2t/lib -lssl -lcrypto -L/usr/local/Cellar/berkeley-db@4/4.8.30/lib -ldb' 'AUXLIBS_IUUC=-L/usr/local/Cellar/icu4c/62.1/lib -licuuc' 'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm' 'AUXLIBS_PCRE=-L/usr/local/lib -lpcre'
>
> Thanks
> Robert
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: make looking for non-existent dyld file?

Viktor Dukhovni
In case it helps the OP:

   * Postfix is NOT responsible for building the OpenSSL "libssl" library,
     that has to be pre-installed, and you specify its existing location
     when building Postfix.

   * The filename in question is from an OpenSSL 1.0.x version, with
     OpenSSL 1.1.1 (which one would typically use in new builds, since
     all 1.0.x versions are no longer supported upstream) the shared
     object filename is libssl.1.1.dylib

   * It therefore seems likely the "postconf" executable in question is
     not newly built, but rather carried over from some older system
     which used to have OpenSSL 1.0.x to a system which does not.

   * But another possibility is that it is not Postfix itself that wants
     OpenSSL 1.0.x, but some dependency of Postfix, perhaps Postgres, MySQL
     OpenLDAP...

   * If you've upgraded OpenSSL in Homebrew (or MacPorts), but not all its
     dependencies, you have left some of dependent libraries broken.

> On Jun 27, 2020, at 2:41 PM, Wietse Venema <[hidden email]> wrote:
>
> As I told you before, use -I/blah/openssl/***include***
> not -I/blah/openssl. Computers are too stupid to fix simple mistakes.
>
> Wietse
>
> Robert Chalmers (Author):
>> Each time I build now, I get this from Postconf. Postfix 3.5.3 Mac OSX 10.15.5
>>
>> It pops up as an OSX error message.
>>
>> Dyld Error Message:
>>  Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
>>  Referenced from: /Users/USER/*/postconf
>>  Reason: image not found

--
        Viktor.