Discussion:
compiling postfix and mysql from source rpm fails
Duncan noorman
2008-10-07 21:40:36 UTC
Permalink
We are in the proces of setting up an email server using postfix
compiled with “DOVECOT“, “TLS“, “BDB“, “MySQL“, and “VDA”. SLES 10
provides postfix 2.2.9 and we need a versio > 2.3.0.

We are attemting to create a secure (smtps, pop3s, imaps) virtual user
email service on our power5 with SLES10.2 with encrypted passwords.

In an attemt to build from postifxi srpm
rpmbuild --rebuild --target=ppc64 postfix-2.3.2-12.6.src.rpm
we see:
/usr/bin/ld:warning: powerpc:common64 architecture of input file XXX
is incompatible with powerpc:common output

and /usr/src/packages/BUILD/postfix-2.3.2/src/global/dict_mysql.c:444:
undefined reference to `msg_info'

in an attempt to rectiffy the mysql problems we tried building mysql
from the srpm.. but this fails with the message
libstdc++.so: could not read symbols: File in wrong format

How can we build potfix > 2.3.0 with the needed support?
Olaf Hering
2008-10-08 06:10:05 UTC
Permalink
Post by Duncan noorman
In an attemt to build from postifxi srpm
rpmbuild --rebuild --target=ppc64 postfix-2.3.2-12.6.src.rpm
/usr/bin/ld:warning: powerpc:common64 architecture of input file XXX is
incompatible with powerpc:common output
rpm has no support for telling gcc about the desired architecture.
SLES10 gcc defaults to 32bit powerpc-linux, but many configure scripts
look at the 'uname -m' output and think that 64bit powerpc64-linux code
will be created by gcc.
Please use 'powerpc32 rpmbuild --rebuild postfix-2.3.2-12.6.src.rpm' to
set the 'uname -m' output for subprocesses to 'ppc'.
Post by Duncan noorman
undefined reference to `msg_info'
in an attempt to rectiffy the mysql problems we tried building mysql from
the srpm.. but this fails with the message
libstdc++.so: could not read symbols: File in wrong format
Running all commands via 'powerpc32 commandd ...' will fix this.

To simplify that, run 'powerpc32 bash' to get a "32bit shell".

Olaf

Loading...