Problem in Building Postfix rpm

Discussion in 'Installation/Configuration' started by aus76pk, May 23, 2012.

  1. aus76pk

    aus76pk New Member

    Hello

    I am facing the following problem when i tried to build postfix rpm




    rpmbuild -ba postfix.spec
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PrpEaF
    + umask 022
    + cd /root/rpmbuild/BUILD
    + LANG=C
    + export LANG
    + unset DISPLAY
    + cd /root/rpmbuild/BUILD
    + rm -rf postfix-2.8.2
    + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/postfix-2.8.2.tar.gz
    + /bin/tar -xf -
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd postfix-2.8.2
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + echo 'Patch #0 (postfix-vda-v10-2.8.2.patch):'
    Patch #0 (postfix-vda-v10-2.8.2.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-vda-v10-2.8.2.patch
    + /usr/bin/patch -s -p1 -b --suffix .vda-v10 --fuzz=0
    + echo 'Patch #1 (postfix-2.7.0-config.patch):'
    Patch #1 (postfix-2.7.0-config.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-2.7.0-config.patch
    + /usr/bin/patch -s -p1 -b --suffix .config --fuzz=0
    + echo 'Patch #2 (postfix-2.6.1-files.patch):'
    Patch #2 (postfix-2.6.1-files.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-2.6.1-files.patch
    + /usr/bin/patch -s -p1 -b --suffix .files --fuzz=0
    + echo 'Patch #3 (postfix-alternatives.patch):'
    Patch #3 (postfix-alternatives.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-alternatives.patch
    + /usr/bin/patch -s -p1 -b --suffix .alternatives --fuzz=0
    + echo 'Patch #8 (postfix-large-fs.patch):'
    Patch #8 (postfix-large-fs.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-large-fs.patch
    + /usr/bin/patch -s -p1 -b --suffix .large-fs --fuzz=0
    + gzip -dc /root/rpmbuild/SOURCES/pflogsumm-1.1.3.tar.gz
    + tar xf -
    + pushd pflogsumm-1.1.3
    ~/rpmbuild/BUILD/postfix-2.8.2/pflogsumm-1.1.3 ~/rpmbuild/BUILD/postfix-2.8.2
    + echo 'Patch #9 (pflogsumm-1.1.3-datecalc.patch):'
    Patch #9 (pflogsumm-1.1.3-datecalc.patch):
    + /bin/cat /root/rpmbuild/SOURCES/pflogsumm-1.1.3-datecalc.patch
    + /usr/bin/patch -s -p1 -b --suffix .datecalc --fuzz=0
    + popd
    ~/rpmbuild/BUILD/postfix-2.8.2
    + for f in 'README_FILES/TLS_{LEGACY_,}README' TLS_ACKNOWLEDGEMENTS
    + iconv -f iso8859-1 -t utf8 -o README_FILES/TLS_LEGACY_README_ README_FILES/TLS _LEGACY_README
    + touch -r README_FILES/TLS_LEGACY_README README_FILES/TLS_LEGACY_README_
    + mv -f README_FILES/TLS_LEGACY_README_ README_FILES/TLS_LEGACY_README
    + for f in 'README_FILES/TLS_{LEGACY_,}README' TLS_ACKNOWLEDGEMENTS
    + iconv -f iso8859-1 -t utf8 -o README_FILES/TLS_README_ README_FILES/TLS_README
    + touch -r README_FILES/TLS_README README_FILES/TLS_README_
    + mv -f README_FILES/TLS_README_ README_FILES/TLS_README
    + for f in 'README_FILES/TLS_{LEGACY_,}README' TLS_ACKNOWLEDGEMENTS
    + iconv -f iso8859-1 -t utf8 -o TLS_ACKNOWLEDGEMENTS_ TLS_ACKNOWLEDGEMENTS
    + touch -r TLS_ACKNOWLEDGEMENTS TLS_ACKNOWLEDGEMENTS_
    + mv -f TLS_ACKNOWLEDGEMENTS_ TLS_ACKNOWLEDGEMENTS
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rQEHKa
    + umask 022
    + cd /root/rpmbuild/BUILD
    + cd postfix-2.8.2
    + LANG=C
    + export LANG
    + unset DISPLAY
    + CCARGS=-fPIC
    + AUXLIBS=
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1'
    + AUXLIBS=' -lldap -llber'
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre'
    + AUXLIBS=' -lldap -llber -lpcre'
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -D HAS_MYSQL -I/usr/include/mysql'
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm'
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -D HAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/s asl'
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib/s asl2 -lsasl2'
    + pkg-config openssl
    ++ pkg-config --cflags openssl
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -D HAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/s asl -DUSE_TLS '
    ++ pkg-config --libs openssl
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib/s asl2 -lsasl2 -lssl -lcrypto '
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -D HAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/s asl -DUSE_TLS -DDEF_CONFIG_DIR=\"/etc/postfix\"'
    ++ getconf LFS_CFLAGS
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -D HAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/s asl -DUSE_TLS -DDEF_CONFIG_DIR=\"/etc/postfix\" -D_LARGEFILE_SOURCE -D_FILE_OF FSET_BITS=64'
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib/s asl2 -lsasl2 -lssl -lcrypto -pie -Wl,-z,relro'
    + make -f Makefile.init makefiles 'CCARGS=-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 - DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH - DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -DDEF_CONFIG_DIR=\"/etc/postfix\ " -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' 'AUXLIBS= -lldap -llber -lpcre -L/ usr/lib/mysql -lmysqlclient -lm -L/usr/lib/sasl2 -lsasl2 -lssl -lcrypto -pie - Wl,-z,relro' DEBUG= 'OPT=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasy nchronous-unwind-tables -Wno-comment'
    make -f Makefile.in MAKELEVEL= Makefiles
    (echo "# Do not edit -- this file documents how Postfix was built for your machi ne."; /bin/sh makedefs) >makedefs.tmp
    ATTENTION:
    ATTENTION: Unknown system type: Linux 3.1.0-7.fc16.i686.PAE
    ATTENTION:
    make: *** [Makefiles] Error 1
    make: *** [makefiles] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.rQEHKa (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.rQEHKa (%build)
    [root@nameserver SPECS]# rpmbuild -ba postfix.spec
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WPxDJY
    + umask 022
    + cd /root/rpmbuild/BUILD
    + LANG=C
    + export LANG
    + unset DISPLAY
    + cd /root/rpmbuild/BUILD
    + rm -rf postfix-2.8.2
    + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/postfix-2.8.2.tar.gz
    + /bin/tar -xf -
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd postfix-2.8.2
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + echo 'Patch #0 (postfix-vda-v10-2.8.2.patch):'
    Patch #0 (postfix-vda-v10-2.8.2.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-vda-v10-2.8.2.patch
    + /usr/bin/patch -s -p1 -b --suffix .vda-v10 --fuzz=0
    + echo 'Patch #1 (postfix-2.7.0-config.patch):'
    Patch #1 (postfix-2.7.0-config.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-2.7.0-config.patch
    + /usr/bin/patch -s -p1 -b --suffix .config --fuzz=0
    + echo 'Patch #2 (postfix-2.6.1-files.patch):'
    Patch #2 (postfix-2.6.1-files.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-2.6.1-files.patch
    + /usr/bin/patch -s -p1 -b --suffix .files --fuzz=0
    + echo 'Patch #3 (postfix-alternatives.patch):'
    Patch #3 (postfix-alternatives.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-alternatives.patch
    + /usr/bin/patch -s -p1 -b --suffix .alternatives --fuzz=0
    + echo 'Patch #8 (postfix-large-fs.patch):'
    Patch #8 (postfix-large-fs.patch):
    + /bin/cat /root/rpmbuild/SOURCES/postfix-large-fs.patch
    + /usr/bin/patch -s -p1 -b --suffix .large-fs --fuzz=0
    + gzip -dc /root/rpmbuild/SOURCES/pflogsumm-1.1.3.tar.gz
    + tar xf -
    + pushd pflogsumm-1.1.3
    ~/rpmbuild/BUILD/postfix-2.8.2/pflogsumm-1.1.3 ~/rpmbuild/BUILD/postfix-2.8.2
    + echo 'Patch #9 (pflogsumm-1.1.3-datecalc.patch):'
    Patch #9 (pflogsumm-1.1.3-datecalc.patch):
    + /bin/cat /root/rpmbuild/SOURCES/pflogsumm-1.1.3-datecalc.patch
    + /usr/bin/patch -s -p1 -b --suffix .datecalc --fuzz=0
    + popd
    ~/rpmbuild/BUILD/postfix-2.8.2
    + for f in 'README_FILES/TLS_{LEGACY_,}README' TLS_ACKNOWLEDGEMENTS
    + iconv -f iso8859-1 -t utf8 -o README_FILES/TLS_LEGACY_README_ README_FILES/TLS_LEGACY_README
    + touch -r README_FILES/TLS_LEGACY_README README_FILES/TLS_LEGACY_README_
    + mv -f README_FILES/TLS_LEGACY_README_ README_FILES/TLS_LEGACY_README
    + for f in 'README_FILES/TLS_{LEGACY_,}README' TLS_ACKNOWLEDGEMENTS
    + iconv -f iso8859-1 -t utf8 -o README_FILES/TLS_README_ README_FILES/TLS_README
    + touch -r README_FILES/TLS_README README_FILES/TLS_README_
    + mv -f README_FILES/TLS_README_ README_FILES/TLS_README
    + for f in 'README_FILES/TLS_{LEGACY_,}README' TLS_ACKNOWLEDGEMENTS
    + iconv -f iso8859-1 -t utf8 -o TLS_ACKNOWLEDGEMENTS_ TLS_ACKNOWLEDGEMENTS
    + touch -r TLS_ACKNOWLEDGEMENTS TLS_ACKNOWLEDGEMENTS_
    + mv -f TLS_ACKNOWLEDGEMENTS_ TLS_ACKNOWLEDGEMENTS
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.16ulWQ
    + umask 022
    + cd /root/rpmbuild/BUILD
    + cd postfix-2.8.2
    + LANG=C
    + export LANG
    + unset DISPLAY
    + CCARGS=-fPIC
    + AUXLIBS=
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1'
    + AUXLIBS=' -lldap -llber'
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre'
    + AUXLIBS=' -lldap -llber -lpcre'
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql'
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm'
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl'
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib/sasl2 -lsasl2'
    + pkg-config openssl
    ++ pkg-config --cflags openssl
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS '
    ++ pkg-config --libs openssl
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib/sasl2 -lsasl2 -lssl -lcrypto '
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -DDEF_CONFIG_DIR=\"/etc/postfix\"'
    ++ getconf LFS_CFLAGS
    + CCARGS='-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -DDEF_CONFIG_DIR=\"/etc/postfix\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    + AUXLIBS=' -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib/sasl2 -lsasl2 -lssl -lcrypto -pie -Wl,-z,relro'
    + make -f Makefile.init makefiles 'CCARGS=-fPIC -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre -DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -DDEF_CONFIG_DIR=\"/etc/postfix\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' 'AUXLIBS= -lldap -llber -lpcre -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib/sasl2 -lsasl2 -lssl -lcrypto -pie -Wl,-z,relro' DEBUG= 'OPT=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wno-comment'
    make -f Makefile.in MAKELEVEL= Makefiles
    (echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
    ATTENTION:
    ATTENTION: Unknown system type: Linux 3.1.0-7.fc16.i686.PAE
    ATTENTION:
    make: *** [Makefiles] Error 1
    make: *** [makefiles] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.16ulWQ (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.16ulWQ (%build)



    why is that ..


    Regards


    Ausaf
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Is this a Fedora 16 system? Did you download the correct Postfix src.rpm?
     

Share This Page