I am working on RHEL4 update 1.
I want to use postfix+mysql for virutal domains.
for this I have to install postfix from srpm and mysql option is not enable in postfix.rpm package
I did downlaod the postfix.src.rpm package from net.
Then I gave the command
#rpm -Uvh postfix.src.rpm
it created the spec file .
#now when i give the command
#rpmbuild --bb /usr/src/redhat/SPECS/postfix.spec
it tries
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64258
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf postfix-2.1.5
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/postfix-2.1.5.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd postfix-2.1.5
++ /usr/bin/id -u
+ '[' 509 = 0 ']'
++ /usr/bin/id -u
---------------
---------------
----------
-----------------
-----------
--------------
-------------
----------
gcc -Wmissing-prototypes -Wformat -fPIC -DHAS_LDAP -DHAS_PCRE -I/usr/include/pcre -DUSE_SASL_AUTH -I/usr/include/sasl -DHAS_SSL -I/usr/kerberos/include -DINET6 -D__ss_family=ss_family -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -I. -DLINUX2 -c alldig.c
c
c1: invalid option `tune=pentium4'
make: *** [alldig.o] Error 1
make: *** [update] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.6523 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.6523 (%build)
[ali@mysystem SPECS]$
But at end give the following error.
How can I solve this.
More over If I install postfix from source then whether it
will be mysql enable or I have to do changed to make it enable.
Thanks for reply