OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
about building Postfix 2.3.3 RPMS from Simon J. Mudd's SRPM

From: Bruce Cheng (etbrucegmail.com)
Date: Sun Oct 01 2006 - 07:53:58 CDT


Hello,
In early version before version 2.3.3, I used the Simon J. Mudd's SRPM
to build RPMS for my server very well.
But recently I tried to use Postfix 2.3.3, I get the following error
message and don't know how to do it. I tried to search but nothing
found.

PS: I disabed IPv6 support in spec file.

# rpmbuild -ba postfix.spec
¡K
gcc -Wmissing-prototypes -Wformat -DHAS_LDAP -DHAS_PCRE
-I/usr/include/pcre -I/usr/include/sasl -DUSE_SASL_AUTH
-DUSE_CYRUS_SASL -I/usr/kerberos/include -DUSE_TLS
-I/usr/include/openssl -DNO_IPV6 -O2 -g -I. -DLINUX2 -c cidr_match.c
In file included from cidr_match.c:53:
/usr/include/arpa/inet.h:67: error: conflicting types for 'inet_ntop'
./sys_defs.h:1138: error: previous declaration of 'inet_ntop' was here
/usr/include/arpa/inet.h:67: error: conflicting types for 'inet_ntop'
./sys_defs.h:1138: error: previous declaration of 'inet_ntop' was here
make: *** [cidr_match.o] Error 1
make: *** [update] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.69586 (%build)

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

But if I enable the IPV6 Supported, it works. I don't know if anyone
met the same problems as me ? Would you please advise me what happened
?

By the way, after I installed RPM via the following command
[roottwlinux02 SPECS]# rpm -Uvh
/usr/src/redhat/RPMS/x86_64/postfix-2.3.3-1.pcre.sasl2.vda.rhel4.x86_64.rpm
Preparing... ########################################### [100%]
   1:postfix ########################################### [100%]
chown: cannot access `/usr/man/man1/mailq.postfix.1.gz': No such file
or directory
postalias: fatal: open /etc/postfix/main.cf: No such file or directory
postfix: fatal: open /etc/postfix/main.cf: No such file or directory

And I found there is no /etc/postfix directory, but the configuration
files are in /usr/etc/postfix.

I know I could link it to /etc/postfix but I would like to know what's wrong.
I follow the instuction in http://postfix.wl0.org/en/building-rpms/
and it shows "config files in /etc/postfix/", but mine is in
/usr/etc/postfix .
Would you please advise me how to fix it ?

Thank you in advance.
--
Best Regards,
Bruce Cheng