Loading ...
Sorry, an error occurred while loading the content.

postfix-2.9-20111230-nonprod build problem

Expand Messages
  • Ralf Hildebrandt
    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
    Message 1 of 3 , Jan 2, 2012
    • 0 Attachment
      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.hildebrandt@... | http://www.charite.de
    • Wietse Venema
      ... s/dict_errno/dict- error/ Wietse
      Message 2 of 3 , Jan 2, 2012
      • 0 Attachment
        Ralf Hildebrandt:
        > 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

        s/dict_errno/dict->error/

        Wietse
      • Ralf Hildebrandt
        ... That worked. dict_cdb.c and dict_db.c were affected. -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin
        Message 3 of 3 , Jan 2, 2012
        • 0 Attachment
          * Wietse Venema <wietse@...>:
          > Ralf Hildebrandt:
          > > 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
          >
          > s/dict_errno/dict->error/

          That worked. dict_cdb.c and dict_db.c were affected.

          --
          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.hildebrandt@... | http://www.charite.de
        Your message has been successfully submitted and would be delivered to recipients shortly.