Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems building postfix with EAI support in OSX 10.10.11

14 views
Skip to first unread message

Robert Chalmers

unread,
Oct 7, 2015, 10:58:57 AM10/7/15
to
I’m not getting EAI support built in, even though the libraries appear to be on the system.

This builds it fine, but not with EAI

make -f Makefile.init dynamicmaps=yes CCARGS='-DHAS_MYSQL -I/usr/local/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/local/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include' 'AUXLIBS=-L/opt/local/lib -lsasl2 -lssl -lcrypto -licuuc' 'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm' 'AUXLIBS_PCRE=-L/opt/local/lib -lpcre’ makefiles

eg;
warning: smtputf8_enable is true, but EAI support is not compiled in

Any ideas, other than setting smtputf8 = no in main.cf, or reverting back to backward-compatible

thanks

Robert Chalmers

unread,
Oct 7, 2015, 10:58:57 AM10/7/15
to
I have the icuuc libraries here.

/opt/local/lib/libicuuc.55.1.dylib
/opt/local/lib/libicuuc.55.dylib
/opt/local/lib/libicuuc.a
/opt/local/lib/libicuuc.dylib

and they are pretty recent. 
lrwxr-xr-x  1 root  admin  19 20 Apr 01:19 /opt/local/lib/libicuuc.dylib -> libicuuc.55.1.dylib

but I have no idea what icu-config is, and why I need it. I can probably install it on the mac, but why do I need it?

thanks


On 7 Oct 2015, at 15:33, Wietse Venema <wie...@porcupine.org> wrote:

Robert Chalmers:
I?m not getting EAI support built in, even though the libraries appear to be on the system.


This builds it fine, but not with EAI

make -f Makefile.init dynamicmaps=yes CCARGS='-DHAS_MYSQL -I/usr/local/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/local/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include' 'AUXLIBS=-L/opt/local/lib -lsasl2 -lssl -lcrypto -licuuc' 'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm' 'AUXLIBS_PCRE=-L/opt/local/lib -lpcre? makefiles


eg;
warning: smtputf8_enable is true, but EAI support is not compiled in

Any ideas, other than setting smtputf8 = no in main.cf, or reverting back to backward-compatible

I suppose that the makedefs script did not find the icu-config command,
or that the libraries were too old.  Postfix requires the "UTS46" API.

Wietse

Wietse Venema

unread,
Oct 7, 2015, 10:59:11 AM10/7/15
to

Viktor Dukhovni

unread,
Oct 7, 2015, 11:43:25 AM10/7/15
to
On Wed, Oct 07, 2015 at 03:40:02PM +0100, Robert Chalmers wrote:

> I have the icuuc libraries here.
>
> /opt/local/lib/libicuuc.55.1.dylib
> /opt/local/lib/libicuuc.55.dylib
> /opt/local/lib/libicuuc.a
> /opt/local/lib/libicuuc.dylib
>
> and they are pretty recent.
> lrwxr-xr-x 1 root admin 19 20 Apr 01:19 /opt/local/lib/libicuuc.dylib -> libicuuc.55.1.dylib
>
> but I have no idea what icu-config is, and why I need it. I can probably
> install it on the mac, but why do I need it?

The varios "foo-config" programs bundled with some open-source
libraries provide programmatic interfaces to determine the compiler
flags and linker options needed to use those libraries. Hence:

icu-config
krb5-config
pcre-config
...

And also the generic pkg-config front-end to software that installs
compatible "foo.pc" files.

--
Viktor.

Wietse Venema

unread,
Oct 7, 2015, 12:28:58 PM10/7/15
to
Robert Chalmers:
> but I have no idea what icu-config is, and why I need it. I can
> probably install it on the mac, but why do I need it?

It is a utility that spits out compiler and linker options that
Postfix needs to build with the ICU library. Most systems have one.

Wietse

Wietse Venema

unread,
Oct 7, 2015, 5:09:10 PM10/7/15
to
Wietse Venema:
In the worst case, you would write a shell script that does what
Postfix expects icu-config to do.

I should probably provide a way that allows people like you to
specify ICU library information on the command line.

Wietse

Bill Cole

unread,
Oct 8, 2015, 3:21:08 PM10/8/15
to
On 7 Oct 2015, at 10:40, Robert Chalmers wrote:

> I have the icuuc libraries here.
>
> /opt/local/lib/libicuuc.55.1.dylib
> /opt/local/lib/libicuuc.55.dylib
> /opt/local/lib/libicuuc.a
> /opt/local/lib/libicuuc.dylib
>
> and they are pretty recent.
> lrwxr-xr-x 1 root admin 19 20 Apr 01:19
> /opt/local/lib/libicuuc.dylib -> libicuuc.55.1.dylib

That LOOKS like a MacPorts installation. If it is, you should have
icu-config in /opt/local/bin/. If it is a MacPorts installation and you
don't have icu-config, the installation is broken and needs to be
redone.

Of course that also raises the question of why you don't just use the
MacPorts port of Postfix.

Also: since 10.10.11 does not (and likely never will) exist, do you mean
10.10.5 (latest Yosemite) or 10.11.0 (fresh new ElCapitan)? That is
particularly relevant because if you are building without using MacPorts
but using MacPorts-installed libraries, it is possible that you are
having trouble because you haven't updated MacPorts and re-installed all
of its ports for ElCapitan.

0 new messages