Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-14 Thread Viktor Dukhovni
On Wed, Oct 15, 2014 at 09:49:21AM +1100, James Brown wrote: > Thanks Viktor - that worked! > > I added -lresolv to AUXLIBS: > > make -f Makefile.init makefiles \ > CCARGS='-arch x86_64 -DUSE_TLS -DUSE_SASL_AUTH > -DDEF_SERVER_SASL_TYPE=\"dovecot\" > -DDEF_COMMAND_DIR=\"/usr/local/

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-14 Thread James Brown
> On 15 Oct 2014, at 4:19 am, Viktor Dukhovni > wrote: > > On Tue, Oct 14, 2014 at 09:13:41PM +1100, James Brown wrote: > >>> What version of MacOSX are you running? (Post the output of "uname >>> -sr".) The Postfix makedefs script has: >>> >>> # Darwin 12.x (MacOS X 10.8.x), maybe earl

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-14 Thread Viktor Dukhovni
On Tue, Oct 14, 2014 at 09:13:41PM +1100, James Brown wrote: > > What version of MacOSX are you running? (Post the output of "uname > > -sr".) The Postfix makedefs script has: > > > > # Darwin 12.x (MacOS X 10.8.x), maybe earlier, needs libresolv. > > case $RELEASE in > > ?.*|1[0-1]

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-14 Thread James Brown
> On 14 Oct 2014, at 5:26 pm, Viktor Dukhovni > wrote: > > On Tue, Oct 14, 2014 at 05:19:34PM +1100, James Brown wrote: > >> Thanks for your help Victor. >> >> make -f Makefile.init makefiles \ >> CCARGS='-arch x86_64 -DUSE_TLS -DUSE_SASL_AUTH \ >> -DDEF_SERVER_SASL_TYPE=\"dovecot\" \ >> -DDE

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-13 Thread Viktor Dukhovni
On Tue, Oct 14, 2014 at 05:19:34PM +1100, James Brown wrote: > Thanks for your help Victor. > > make -f Makefile.init makefiles \ > CCARGS='-arch x86_64 -DUSE_TLS -DUSE_SASL_AUTH \ > -DDEF_SERVER_SASL_TYPE=\"dovecot\" \ > -DDEF_COMMAND_DIR=\"/usr/local/sbin\" \ > -DDEF_CONFIG_DIR=\"/usr/local/etc

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-13 Thread James Brown
> On 14 Oct 2014, at 4:13 pm, Viktor Dukhovni > wrote: > > On Tue, Oct 14, 2014 at 03:16:17PM +1100, James Brown wrote: > >>> Victor, changing the order so that it is: >>> >>> make -f Makefile.init makefiles \ >>> CCARGS='-arch x86_64 -DUSE_TLS -DUSE_SASL_AUTH \ >>> -DDEF_SERVER_SASL_TYPE=\"d

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-13 Thread Viktor Dukhovni
On Tue, Oct 14, 2014 at 03:16:17PM +1100, James Brown wrote: > > Victor, changing the order so that it is: > > > > make -f Makefile.init makefiles \ > > CCARGS='-arch x86_64 -DUSE_TLS -DUSE_SASL_AUTH \ > > -DDEF_SERVER_SASL_TYPE=\"dovecot\" \ > > -DDEF_COMMAND_DIR=\"/usr/local/sbin\" \ > > -DDEF_

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-10-13 Thread James Brown
> On 17 Jul 2014, at 11:41 am, James Brown wrote: > > >> On 16 Jul 2014, at 5:10 pm, Viktor Dukhovni >> wrote: >> >> On Wed, Jul 16, 2014 at 04:49:49PM +1000, James Brown wrote: >> >>> So change to: >>> >>> AUXLIBS=?-L/usr/local/lib -llber -lresolv -L/usr/lib ? ? >> >> Something like that

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-07-16 Thread James Brown
> On 16 Jul 2014, at 5:10 pm, Viktor Dukhovni > wrote: > > On Wed, Jul 16, 2014 at 04:49:49PM +1000, James Brown wrote: > >> So change to: >> >> AUXLIBS=?-L/usr/local/lib -llber -lresolv -L/usr/lib ? ? > > Something like that. Since you're using headers from /usr/local/include, > you need t

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-07-16 Thread Larry Stone
On Jul 16, 2014, at 2:10 AM, Viktor Dukhovni wrote: > On Wed, Jul 16, 2014 at 04:49:49PM +1000, James Brown wrote: > >> So change to: >> >> AUXLIBS=?-L/usr/local/lib -llber -lresolv -L/usr/lib ? ? > > Something like that. Since you're using headers from /usr/local/include, > you need the lib

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-07-16 Thread Viktor Dukhovni
On Wed, Jul 16, 2014 at 04:49:49PM +1000, James Brown wrote: > So change to: > > AUXLIBS=?-L/usr/local/lib -llber -lresolv -L/usr/lib ? ? Something like that. Since you're using headers from /usr/local/include, you need the libpcre from /usr/local/lib. > > Is there a libpcre in /usr/lib? > >

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-07-15 Thread James Brown
Thanks Viktor. > On 16 Jul 2014, at 4:23 pm, Viktor Dukhovni > wrote: > > On Wed, Jul 16, 2014 at 04:04:27PM +1000, James Brown wrote: > >> I've tried to upgrade my installation of Postfix from 2.10 to >> 2.11 (and to 2.11.1), but get this error: >> >> Undefined symbols for architecture x86_6

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-07-15 Thread Viktor Dukhovni
On Wed, Jul 16, 2014 at 04:04:27PM +1000, James Brown wrote: > I?ve tried to upgrade my installation of Postfix from 2.10 to 2.11 (and to > 2.11.1), but get this error: > By the way, I installed pcre via homebrew, and it works just fine. I don't mention in either CCARGS or AUXLIBS, and it is a

Re: Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-07-15 Thread Viktor Dukhovni
On Wed, Jul 16, 2014 at 04:04:27PM +1000, James Brown wrote: > I've tried to upgrade my installation of Postfix from 2.10 to > 2.11 (and to 2.11.1), but get this error: > > Undefined symbols for architecture x86_64: > "_pcre_free_study", referenced from: > _dict_pcre_open in libutil.a(dict_

Compile errors on Mac "Undefined symbols for architecture x86_64: "_pcre_free_study""

2014-07-15 Thread James Brown
I’ve tried to upgrade my installation of Postfix from 2.10 to 2.11 (and to 2.11.1), but get this error: Undefined symbols for architecture x86_64: "_pcre_free_study", referenced from: _dict_pcre_open in libutil.a(dict_pcre.o) _dict_pcre_close in libutil.a(dict_pcre.o) ld: symbol(s) not