I’ve completed a qmail installation few days ago on a fresh installed Debian Squeeze 64 bit server. All is configured and works fine, except qmailadmin and vqadmin.
As the mail server was missing any kind of web mail administration panel, I needed to make at least one of the two above to make with qmail.
I decided to concentrate on qmailadmin and took the time to make it work. I used the following command lines and got the compile failure during make compilation:
debian:/usr/local/src/qmailadmin-1.2.15# ./configure --enable-cgibindir=/usr/lib/cgi-bin --enable-htmldir=/var/www/qmailadmin/ --enable-modify-quota
The source make failed with the following error:
In file included from template.c:45:
qmailadmin.h:37:1: warning: "MAX_FILE_NAME" redefined
In file included from template.c:28:
/home/vpopmail/include/vpopmail.h:146:1: warning: this is the location of the previous definition
template.c: In function "send_template_now":
template.c:505: error: "VERSION" undeclared (first use in this function)
template.c:505: error: (Each undeclared identifier is reported only once
template.c:505: error: for each function it appears in.)
make: *** [template.o] Error 1
make: Leaving directory `/usr/local/src/qmailadmin-1.2.15'
make: *** [all] Error 2
To workaround these compile issues, I’ve had to modify the C source file belonging to qmailadmin ( template.c ), e.g.:
debian:/usr/local/src/qmailadmin-1.2.15# vim template.c
In the file I had to add besides the line:
#define VERSION ""
Aterwards qmailadmin’s compile and install via make && make install-strip succeeded and now works perfectly fine 😉
More helpful Articles
Tags: Administration, administration panel, amp, bit, c source, code, compilation, configure, configured, failure, few days, file, function, identifier, installation, lib, Linux, location, mail administration, mail server, make, name, oncetemplate, panel, qmail installation, qmailadmin, quot, Quota, source file, squeeze, template, template c, time, undeclared identifier, util, version, vim, vqadmin