Ralf Hildebrandt:
> 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? 

No idea. When I do:

$ make
$ make tidy
$ make makefiles shared=yes
$ make

All commands complete without error (postfix-2.12-20140629 on FC Linux).
Ditto with SSL turned on (make makefiles CCARGS=-DUSE_TLS AUXLIBS='-lssl
-lcrypto').

Try without "-Wl,--as-needed".

        Wietse

Reply via email to