Hallo,

i want to build postfix 2.9.1 on Snow Leopard using self-build zlib.

zlib was configured, build and installed as follows:
./configure –archs=”-arch i386 -arch x86_64″
make
sudo make install

which results in:
/usr/local/lib/libz.1.2.6.dylib
/usr/local/lib/libz.1.dylib -> libz.1.2.6.dylib
/usr/local/lib/libz.a
/usr/local/lib/libz.dylib -> libz.1.2.6.dylib

in addition there is the zlib version that shipped with Snow Leopard:
/usr/lib/libz.1.1.3.dylib -> libz.1.2.3.dylib
/usr/lib/libz.1.2.3.dylib
/usr/lib/libz.1.dylib -> libz.1.2.3.dylib
/usr/lib/libz.dylib -> libz.1.2.3.dylib

when i configure and build postfix as follows (originally proposed by 
diymacserver.com)

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/postfix\” \
-DDEF_DAEMON_DIR=\”/usr/local/libexec/postfix\” \
-DHAS_PCRE -I/usr/local/include \
-DHAS_SSL -I/usr/local/ssl/include \
-DHAS_MYSQL -I/usr/local/mysql/include’ \
AUXLIBS=’ \
-L/usr/local/lib -lpcre -lz \
-L/usr/local/ssl/lib -lssl \
-L/usr/local/mysql/lib -lmysqlclient \
-L/usr/lib -llber -lresolv -lm’
make

it throws the warning:

ld: warning: duplicate dylib /usr/local/lib/libz.1.dylib

does this probably has something to do with the "-flat_namespace" option that 
is passed to the linker?

please give me some hint how to configure postfix so that it only sees the 
self-build zlib library, but not the system one.

thank you!
Mono

-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                          
        
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

Reply via email to