DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

Dovecot 2.2.25 fails to build with an error

| 11:49:21 04.07.2016

If Dovecot update/build with custombuild fails with an error:

sha1.h:80: error: static or type qualifiers in abstract declarator

here is a guide on how to fix it (for advanced users or sysadmins).

To get it fixed and upgrade/install dovecot with custombuild run the following command

./build dovecot

until you get the message to retry the build (because it failed).

*** The make has failed, would you like to try to make again? (y,n):

Don't enter either y or n but press ctrl+z to push the build to the background and run this code:

perl -pi -e 's/define STATIC_ARRAY static/define STATIC_ARRAY/' dovecot-2.2.25/config.h
Then get the build process back to the foreground with:
fg

The process is still waiting for you to enter 'y' or 'n', although you don't see that. Type 'y' and press enter. The build will 'make' dovecot again without extracting the tar.gz and will succeed.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.




All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition