From: Simon J Mudd (no email)
Date: Sun Oct 08 2006 - 14:44:19 EDT
Sorry for the delay in responding to your message.
("Bruce Cheng") writes:
> 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)
I haven't tried to disable IPv6 for some time. If you tell me with
which parameters you were trying to build the rpm and on which version
of RH I'll try and replicate the problem you are experiencing.
> 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
> [root at twlinux02 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
If the rpm build failed then the rpm would not have been produced. I
assume that you were upgrading this rpm over the top of some other
rpm. It would be interesting to see which version. This is shown in
/var/log/maillog.
I have just tried to build the rpm on RHEL4 with the vda, SASL v2
patches and with IPv6 support disabled. This builds fine on my server.
The only difference I see is that you are using the x86_64
architecture which I don't have access to (at home). However I have built
my rpms on this architecture before and have not previously received reports
of breakages similar to those you are reporting.
> And I found there is no /etc/postfix directory, but the configuration
> files are in /usr/etc/postfix.
In that case something is seriously broken. My rpms do not store configuration
files in /usr/etc/postfix.
This is controlled in various places where the directory used is specified as:
%{_sysconfdir}/postfix. Changed the rpm _system_ macros such as %_sysconfdir
is not supported and I don't think you should have a reason to do so.
> 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 .
I'd suggest you remove the installed postfix instance(s)
completely. Or you check exactly which version(s) you have
installed. (rpm -qa postfix, and maybe LANG=C rpm -qi postfix) Have
you manually installed TLS/SASL and other libraries on your system?
This might also break the rpm build procedure which would not
recognise this situation.
Without clearer information I don't know what to suggest.
Regards,
Simon
p.s. If you want to take this off list I'll try and help you
there. The problem doesn't sound like a general postfix problem.
|
|
|