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

Disabling debug (DEBUG=)

Expand Messages
  • Gamet A.
    ... installDir=/usr/local/postfix-2.10 make CCARGS= -DNO_DB tidy make makefiles CCARGS= -DNO_DB -I/usr/local/ldap/include -DHAS_LDAP
    Message 1 of 5 , Feb 24, 2012
    • 0 Attachment
      Here are my compilation command list:
      -----------------------------------------------------------------------------------------------------------
      installDir=/usr/local/postfix-2.10
      make CCARGS='-DNO_DB' tidy
      make makefiles CCARGS="-DNO_DB -I/usr/local/ldap/include -DHAS_LDAP -DDEF_CONFIG_DIR='$installDir/etc' -DDEF_COMMAND_DIR='$installDir/sbin' -DDEF_DAEMON_DIR='$installDir/libexec' -DDEF_MAILQ_DIR='$installDir/bin' -DDEF_DATA_DIR='$installDir/data' -DDEF_QUEUE_DIR='/var/log/postfix/spool' -DDEF_MANPAGE_DIR='$installDir/man' DEBUG=''" \
          UXLIBS="-L/usr/local/ldap/lib -lldap -L/usr/local/ldap/lib -llber"
      make
      -----------------------------------------------------------------------------------------------------------
      Output: 
      -----------------------------------------------------------------------------------------------------------
      # make
      rm -f libexec/post-install && ln -f conf/post-install libexec/post-install
      rm -f libexec/postfix-files && ln -f conf/postfix-files libexec/postfix-files
      rm -f libexec/postfix-script && ln -f conf/postfix-script libexec/postfix-script
      rm -f libexec/postfix-wrapper && ln -f conf/postfix-wrapper libexec/postfix-wrapper
      rm -f libexec/main.cf && ln -f conf/main.cf libexec/main.cf
      rm -f libexec/master.cf && ln -f conf/master.cf libexec/master.cf
      rm -f libexec/postmulti-script && ln -f conf/postmulti-script libexec/postmulti-script
      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 -DNO_DB -I/usr/local/ldap/include -DHAS_LDAP -DDEF_CONFIG_DIR='/usr/local/postfix-2.10/etc' -DDEF_COMMAND_DIR='/usr/local/postfix-2.10/sbin' -DDEF_DAEMON_DIR='/usr/local/postfix-2.10/libexec' -DDEF_MAILQ_DIR='/usr/local/postfix-2.10/bin' -DDEF_DATA_DIR='/usr/local/postfix-2.10/data' -DDEF_QUEUE_DIR='/var/log/postfix/spool' -DDEF_MANPAGE_DIR='/usr/local/postfix-2.10/man' DEBUG='' -DSNAPSHOT' update MAKELEVEL=) || exit 1; \
      done
      [src/util]
      gcc -Wmissing-prototypes -Wformat -DNO_DB -I/usr/local/ldap/include -DHAS_LDAP -DDEF_CONFIG_DIR=/usr/local/postfix-2.10/etc -DDEF_COMMAND_DIR=/usr/local/postfix-2.10/sbin -DDEF_DAEMON_DIR=/usr/local/postfix-2.10/libexec -DDEF_MAILQ_DIR=/usr/local/postfix-2.10/bin -DDEF_DATA_DIR=/usr/local/postfix-2.10/data -DDEF_QUEUE_DIR=/var/log/postfix/spool -DDEF_MANPAGE_DIR=/usr/local/postfix-2.10/man DEBUG= -DSNAPSHOT -g -O -I. -DLINUX2 -c alldig.c
      gcc: DEBUG=: No such file or directory
      make: *** [alldig.o] Error 1
      make: *** [update] Error 1
      -----------------------------------------------------------------------------------------------------------

      I tried with both DEBUG= and DEBUG='', but with the same above outcome. Are there any other parameters to pass to disable debug?

      Thanks
    • Gamet A.
      I removed the DEBUG= to continue with the compilation and the compilation stopped at the following in both 2.9 and 2.10 versions: gcc -Wmissing-prototypes
      Message 2 of 5 , Feb 24, 2012
      • 0 Attachment
        I removed the DEBUG= to continue with the compilation and the compilation stopped at the following in both 2.9 and 2.10 versions:
        gcc -Wmissing-prototypes -Wformat -DNO_DB -I/usr/local/ldap/include -DHAS_LDAP -DDEF_CONFIG_DIR=/usr/local/postfix-2.10/etc -DDEF_COMMAND_DIR=/usr/local/postfix-2.10/sbin -DDEF_DAEMON_DIR=/usr/local/postfix-2.10/libexec -DDEF_MAILQ_DIR=/usr/local/postfix-2.10/bin -DDEF_DATA_DIR=/usr/local/postfix-2.10/data -DDEF_QUEUE_DIR=/var/log/postfix/spool -DDEF_MANPAGE_DIR=/usr/local/postfix-2.10/man -DSNAPSHOT -g -O -I. -I../../include -DLINUX2 -c mail_conf.c
        mail_conf.c: In function ‘mail_conf_checkdir’:
        mail_conf.c:127: error: expected expression before ‘/’ token
        mail_conf.c: In function ‘mail_conf_suck’:
        mail_conf.c:177: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        mail_conf.c:185: error: expected expression before ‘/’ token
        make: *** [mail_conf.o] Error 1
        make: *** [update] Error 1

        Here is my system info:
        # uname -a
        Linux localhost 2.6.32-042stab049.6 #1 SMP Mon Feb 6 19:17:43 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
        # gcc -v
        Using built-in specs.
        Target: x86_64-redhat-linux
        Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
        Thread model: posix
        gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 

        Thanks


        On Fri, Feb 24, 2012 at 9:33 PM, Gamet A. <gametbt@...> wrote:
        Here are my compilation command list:
        -----------------------------------------------------------------------------------------------------------
        installDir=/usr/local/postfix-2.10
        make CCARGS='-DNO_DB' tidy
        make makefiles CCARGS="-DNO_DB -I/usr/local/ldap/include -DHAS_LDAP -DDEF_CONFIG_DIR='$installDir/etc' -DDEF_COMMAND_DIR='$installDir/sbin' -DDEF_DAEMON_DIR='$installDir/libexec' -DDEF_MAILQ_DIR='$installDir/bin' -DDEF_DATA_DIR='$installDir/data' -DDEF_QUEUE_DIR='/var/log/postfix/spool' -DDEF_MANPAGE_DIR='$installDir/man' DEBUG=''" \
            UXLIBS="-L/usr/local/ldap/lib -lldap -L/usr/local/ldap/lib -llber"
        make
        -----------------------------------------------------------------------------------------------------------
        Output: 
        -----------------------------------------------------------------------------------------------------------
        # make
        rm -f libexec/post-install && ln -f conf/post-install libexec/post-install
        rm -f libexec/postfix-files && ln -f conf/postfix-files libexec/postfix-files
        rm -f libexec/postfix-script && ln -f conf/postfix-script libexec/postfix-script
        rm -f libexec/postfix-wrapper && ln -f conf/postfix-wrapper libexec/postfix-wrapper
        rm -f libexec/main.cf && ln -f conf/main.cf libexec/main.cf
        rm -f libexec/master.cf && ln -f conf/master.cf libexec/master.cf
        rm -f libexec/postmulti-script && ln -f conf/postmulti-script libexec/postmulti-script
        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 -DNO_DB -I/usr/local/ldap/include -DHAS_LDAP -DDEF_CONFIG_DIR='/usr/local/postfix-2.10/etc' -DDEF_COMMAND_DIR='/usr/local/postfix-2.10/sbin' -DDEF_DAEMON_DIR='/usr/local/postfix-2.10/libexec' -DDEF_MAILQ_DIR='/usr/local/postfix-2.10/bin' -DDEF_DATA_DIR='/usr/local/postfix-2.10/data' -DDEF_QUEUE_DIR='/var/log/postfix/spool' -DDEF_MANPAGE_DIR='/usr/local/postfix-2.10/man' DEBUG='' -DSNAPSHOT' update MAKELEVEL=) || exit 1; \
        done
        [src/util]
        gcc -Wmissing-prototypes -Wformat -DNO_DB -I/usr/local/ldap/include -DHAS_LDAP -DDEF_CONFIG_DIR=/usr/local/postfix-2.10/etc -DDEF_COMMAND_DIR=/usr/local/postfix-2.10/sbin -DDEF_DAEMON_DIR=/usr/local/postfix-2.10/libexec -DDEF_MAILQ_DIR=/usr/local/postfix-2.10/bin -DDEF_DATA_DIR=/usr/local/postfix-2.10/data -DDEF_QUEUE_DIR=/var/log/postfix/spool -DDEF_MANPAGE_DIR=/usr/local/postfix-2.10/man DEBUG= -DSNAPSHOT -g -O -I. -DLINUX2 -c alldig.c
        gcc: DEBUG=: No such file or directory
        make: *** [alldig.o] Error 1
        make: *** [update] Error 1
        -----------------------------------------------------------------------------------------------------------

        I tried with both DEBUG= and DEBUG='', but with the same above outcome. Are there any other parameters to pass to disable debug?

        Thanks

      • Sahil Tandon
        ... AUXLIBS, not UXLIBS. See INSTALL, which explains how to turn off debugging, and the phrase: IMPORTANT: Be sure to get the quotes right. These details
        Message 3 of 5 , Feb 24, 2012
        • 0 Attachment
          On Fri, 2012-02-24 at 21:33:30 -0500, Gamet A. wrote:

          > Here are my compilation command list:
          > -----------------------------------------------------------------------------------------------------------
          > installDir=/usr/local/postfix-2.10
          > make CCARGS='-DNO_DB' tidy
          > make makefiles CCARGS="-DNO_DB -I/usr/local/ldap/include -DHAS_LDAP
          > -DDEF_CONFIG_DIR='$installDir/etc' -DDEF_COMMAND_DIR='$installDir/sbin'
          > -DDEF_DAEMON_DIR='$installDir/libexec' -DDEF_MAILQ_DIR='$installDir/bin'
          > -DDEF_DATA_DIR='$installDir/data' -DDEF_QUEUE_DIR='/var/log/postfix/spool'
          > -DDEF_MANPAGE_DIR='$installDir/man' DEBUG=''" \
          > UXLIBS="-L/usr/local/ldap/lib -lldap -L/usr/local/ldap/lib -llber"

          AUXLIBS, not UXLIBS. See INSTALL, which explains how to turn off
          debugging, and the phrase:

          IMPORTANT: Be sure to get the quotes right. These details matter a lot.

          > ...
          > I tried with both DEBUG= and DEBUG='', but with the same above
          > outcome. Are there any other parameters to pass to disable debug?
          > ...

          DEBUG=

          --
          Sahil Tandon
        • Gamet A.
          ... That was a typo. ... Quotes were not the issue. I got the error messages, kind of, half the way through compilation. A lot of files got compiled before the
          Message 4 of 5 , Feb 24, 2012
          • 0 Attachment
            > Here are my compilation command list:
            > -----------------------------------------------------------------------------------------------------------
            > installDir=/usr/local/postfix-2.10
            > make CCARGS='-DNO_DB' tidy
            > make makefiles CCARGS="-DNO_DB -I/usr/local/ldap/include -DHAS_LDAP
            > -DDEF_CONFIG_DIR='$installDir/etc' -DDEF_COMMAND_DIR='$installDir/sbin'
            > -DDEF_DAEMON_DIR='$installDir/libexec' -DDEF_MAILQ_DIR='$installDir/bin'
            > -DDEF_DATA_DIR='$installDir/data' -DDEF_QUEUE_DIR='/var/log/postfix/spool'
            > -DDEF_MANPAGE_DIR='$installDir/man' DEBUG=''" \
            >     UXLIBS="-L/usr/local/ldap/lib -lldap -L/usr/local/ldap/lib -llber"

            AUXLIBS, not UXLIBS.  See INSTALL, which explains how to turn off
            debugging, and the phrase:

            That was a typo.
             
            IMPORTANT: Be sure to get the quotes right. These details matter a lot.

            Quotes were not the issue. I got the error messages, kind of, half the way through compilation. A lot of files got compiled before the noted errors.
             
            > ...
            > I tried with both DEBUG= and DEBUG='', but with the same above
            > outcome. Are there any other parameters to pass to disable debug?
            > ...

            DEBUG=

            --
            Sahil Tandon

            As I noted in the mail, that doesn't work.

            Thanks

             
          • Gamet A.
            ... % make makefiles CCARGS= -DDEF_CONFIG_DIR= /some/where % make IMPORTANT: Be sure to get the quotes right. These details matter a lot. ... Changed the
            Message 5 of 5 , Feb 24, 2012
            • 0 Attachment
              >> > Here are my compilation command list:
              >> > -----------------------------------------------------------------------------------------------------------
              >> > installDir=/usr/local/postfix-2.10
              >> > make CCARGS='-DNO_DB' tidy
              >> > make makefiles CCARGS="-DNO_DB -I/usr/local/ldap/include -DHAS_LDAP
              >> > -DDEF_CONFIG_DIR='$installDir/etc' -DDEF_COMMAND_DIR='$installDir/sbin'
              >> > -DDEF_DAEMON_DIR='$installDir/libexec' -DDEF_MAILQ_DIR='$installDir/bin'
              >> > -DDEF_DATA_DIR='$installDir/data' -DDEF_QUEUE_DIR='/var/log/postfix/spool'
              >> > -DDEF_MANPAGE_DIR='$installDir/man' DEBUG=''" \
              >> >     UXLIBS="-L/usr/local/ldap/lib -lldap -L/usr/local/ldap/lib -llber"
              >>
              >> AUXLIBS, not UXLIBS.  See INSTALL, which explains how to turn off
              >> debugging, and the phrase:
              >
              >
              > That was a typo.
              >
              >>
              >> IMPORTANT: Be sure to get the quotes right. These details matter a lot.
              >
              >
              > Quotes were not the issue. I got the error messages, kind of, half the way through compilation. A lot of files got compiled before the noted errors.
              >
              >>
              >> > ...
              >> > I tried with both DEBUG= and DEBUG='', but with the same above
              >> > outcome. Are there any other parameters to pass to disable debug?
              >> > ...
              >>
              >> DEBUG=
              >>
              >> --
              >> Sahil Tandon
              >
              >
              > As I noted in the mail, that doesn't work.
              >
              > Thanks

              My bad! Sahil is right. From the install document:
              -----------
              % make makefiles CCARGS='-DDEF_CONFIG_DIR=\"/some/where\"'
              % make
              IMPORTANT: Be sure to get the quotes right. These details matter a lot.
              -----------
              Changed the quotes around and compilation completed successful. On to
              next step, configuring.
            Your message has been successfully submitted and would be delivered to recipients shortly.