Today I wanted to give postfix-2.9-20111230-nonprod a spin, but got
this:

...
gcc -Wmissing-prototypes -Wformat -Wl,--as-needed  -DUSE_TLS -DHAS_PCRE 
-DHAS_CDB -DHAS_LDAP -DSNAPSHOT -DNONPROD -g -O -I. -DLINUX3 -c dict.c
dict.c:377:9: warning: no previous prototype for 'dict_error' 
[-Wmissing-prototypes]
gcc -Wmissing-prototypes -Wformat -Wl,--as-needed  -DUSE_TLS -DHAS_PCRE 
-DHAS_CDB -DHAS_LDAP -DSNAPSHOT -DNONPROD -g -O -I. -DLINUX3 -c dict_alloc.c
gcc -Wmissing-prototypes -Wformat -Wl,--as-needed  -DUSE_TLS -DHAS_PCRE 
-DHAS_CDB -DHAS_LDAP -DSNAPSHOT -DNONPROD -g -O -I. -DLINUX3 -c dict_cdb.c
dict_cdb.c: In function 'dict_cdbq_lookup':
dict_cdb.c:106:5: error: 'dict_errno' undeclared (first use in this function)
dict_cdb.c:106:5: note: each undeclared identifier is reported only once for 
each function it appears in
make: *** [dict_cdb.o] Error 1
make: *** [update] Error 1
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter 
src/master src/postfix src/fsstone src/smtpstone
src/sendmail src/error src/pickup src/cleanup src/smtpd src/local 
src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe
src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick 
src/postlock src/postlog src/postmap src/postqueue
src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap 
src/anvil src/scache src/discard src/tlsmgr src/postmulti
src/postscreen src/dnsblog src/tlsproxy; do \
 (set -e; echo "[$i]"; cd $i; make 'CC=gcc -Wmissing-prototypes -Wformat 
-Wl,--as-needed  -DUSE_TLS -DHAS_PCRE -DHAS_CDB -DHAS_LDAP -DSNAPSHOT 
-DNONPROD' update MAKELEVEL=) || exit 1; \
done
[src/util]
gcc -Wmissing-prototypes -Wformat -Wl,--as-needed  -DUSE_TLS
-DHAS_PCRE -DHAS_CDB -DHAS_LDAP -DSNAPSHOT -DNONPROD -g -O -I.
-DLINUX3 -c dict_cdb.c
dict_cdb.c: In function 'dict_cdbq_lookup':
dict_cdb.c:106:5: error: 'dict_errno' undeclared (first use in this function)
dict_cdb.c:106:5: note: each undeclared identifier is reported only once for 
each function it appears in
make: *** [dict_cdb.o] Error 1
make: *** [update] Error 1


I'm using this to build (postfix-2.9-20111222 builds ok and so did 
postfix-2.9-20111230):

make tidy
 CCARGS="-Wl,--as-needed -DUSE_TLS -DHAS_PCRE -DHAS_CDB -DHAS_LDAP" \
AUXLIBS="-Wl,--as-needed -lssl -lcrypto -lpcre -lcdb -lldap -llber" \
make makefiles && make

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to