Hi, I haven't changed anything, I compile it on x86 and arm. That is, when compiling on the domestic Shenwei architecture, this error will occur, which aspect should I go to check? I have checked the official website community questions and answers, and some people have also met this problem, but I have tried many ways to solve the problem, I hope you can provide me with an idea, thank you. Best wishes Bowen Wang
---- 回复的原邮件 ---- | 发件人 | Marcmarc@f1-outsourcing.eu | | 发送日期 | 2024年09月26日 21:32 | | 收件人 | wbw78281234 wbw78281234@163.com, dovecot@dovecot.orgdovecot@dovecot.org | | 主题 | RE: (无主题) | How is it possible that you have problems compiling a srpm? You must have changed something. What is even this el6? ;) If you want run dovecot on older el6 maybe try via docker?
I encountered the following issue while compiling Dovecot on a Linux system with the Shenwei architecture in China using RPM: During the build phase, it shows: Copy Code checking whether fd passing works... no configure: error: fd passing is required for Dovecot to work The version of Dovecot I am compiling is 2.3.16, and the version of the GCC tool is 8.5.0. My spec file's build section is as follows: Copy Code %build # required for fdpass.c line 125,190: dereferencing type-punned pointer will break strict-aliasing rules %global _hardened_build 1 export CFLAGS="%{__global_cflags} -fno-strict-aliasing -fstack- reuse=none" export LDFLAGS="-Wl,-z,now -Wl,-z,relro %{?__global_ldflags}" # el6 autoconf too old to regen; use packaged files (#1082384) mkdir -p m4 autoreconf -I . -fiv # required for aarch64 support %configure
INSTALL_DATA="install -c -p -m644"
--with-rundir=%{_rundir}/%{name}
--with-systemd
--docdir=%{_docdir}/%{name}
--disable-static
--disable-rpath
--with-nss
--with-shadow
--with-pam
--with-gssapi=plugin
--with-ldap=plugin
--with-sql=plugin
--with-pgsql
--with-mysql
--with-sqlite
--with-zlib
--with-libcap
--with-lucene
--with-ssl=openssl
--with-ssldir=%{ssldir}
--with-solr
--with-systemdsystemunitdir=%{_unitdir}
--with-docs
sed -i 's|/etc/ssl|/etc/pki/dovecot|' doc/mkcert.sh doc/example- config/conf.d/10-ssl.conf make %{?_smp_mflags} # pigeonhole pushd dovecot-2*3-pigeonhole-%{pigeonholever} # required for snapshot [ -f configure ] || autoreconf -fiv [ -f ChangeLog ] || echo "Pigeonhole ChangeLog is not available, yet" >ChangeLog %configure
INSTALL_DATA="install -c -p -m644" \ --disable-static \ --with- dovecot=../ \ --without-unfinished-features make %{?_smp_mflags} popd