I used to build Postfix like this:

make tidy
CCARGS='-Wl,--as-needed -I/usr/include/sasl -DHAS_CDB -DUSE_TLS -DHAS_PCRE 
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL' \
AUXLIBS="-Wl,--as-needed -lpcre -lssl -lcrypto -lcdb -lsasl2 -lnsl -lresolv" 
make makefiles && \
time make -j
postfix stop; make -j upgrade && postfix start && sleep 2 && postfix flush

this still works OK with 0629!

Changing to:

make tidy
CCARGS='-Wl,--as-needed -I/usr/include/sasl -DHAS_CDB -DUSE_TLS -DHAS_PCRE 
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL' \
AUXLIBS="-Wl,--as-needed -lpcre -lssl -lcrypto -lcdb -lsasl2 -lnsl -lresolv" 
make makefiles shared=yes && \
time make -j
postfix stop; make -j upgrade && postfix start && sleep 2 && postfix flush

Results in:

...
make: Nothing to be done for update'.
[src/tlsmgr]
gcc -Wmissing-prototypes -Wformat -Wno-comment -I. -I../../include 
-Wl,--as-needed -I/usr/include/sasl -DHAS_CDB -DUSE_TLS -DHAS_PCRE
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DSNAPSHOT -DUSE_DYNAMIC_LIBS 
-UUSE_DYNAMIC_MAPS  -g -O -I. -I../../include -DLINUX2 
-Wl,-rpath,/usr/lib/postfix -o tlsmgr tlsmgr.o
../../lib/libpostfix-master.so ../../lib/libpostfix-tls.so
../../lib/libpostfix-dns.so ../../lib/libpostfix-global.so
../../lib/libpostfix-util.so -Wl,--as-needed -lpcre -lssl -lcrypto -lcdb 
-lsasl2 -lnsl -lresolv -ldb -ldl 
../../lib/libpostfix-dns.so: undefined reference to __res_search'
../../lib/libpostfix-dns.so: undefined reference to __dn_expand'
collect2: error: ld returned 1 exit status
make: *** [tlsmgr] Error 1
make: *** [update] Error 1

What am I doing wrong here? 

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Reply via email to