#1  
Old 23rd May 2012, 09:47
aus76pk aus76pk is offline
Junior Member
 
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in Building Postfix rpm

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
Reply With Quote
Sponsored Links
  #2  
Old 24th May 2012, 13:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

Is this a Fedora 16 system? Did you download the correct Postfix src.rpm?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Catchall and Forwarding not working simmo General 6 22nd March 2014 00:54
Email from server driving me crazy chaloum General 29 13th April 2012 13:45
table lookup problem aurelius Installation/Configuration 5 2nd November 2011 19:12
Sending email issue lezelf Installation/Configuration 15 9th August 2011 11:20
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39


All times are GMT +2. The time now is 08:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.