How to compile latest qmailadmin (qmailadmin 1.2.15) on Debian Squeeze Linux

Thursday, 11th August 2011

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
...
debian:/usr/local/src/qmailadmin-1.2.15# make
...

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[1]: *** [template.o] Error 1
make[1]: 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:

#include "util.h"

The code:

#define VERSION ""

Aterwards qmailadmin’s compile and install via make && make install-strip succeeded and now works perfectly fine 😉

Share this on:

Download PDFDownload PDF

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

13 Responses to “How to compile latest qmailadmin (qmailadmin 1.2.15) on Debian Squeeze Linux”

  1. Thibs says:
    Firefox 5.0 Firefox 5.0 Windows XP Windows XP
    Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

    It’s NOT the latest.

    The latest is 1.2.16. You can find a compilation sample on

    View CommentView Comment
    • admin says:
      Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
      Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

      1.2.15 is the latest stable, I would rather not go with the development release 1.2.16 on a productive server.

      View CommentView Comment
  2. Thibs says:
    Firefox 5.0 Firefox 5.0 Windows XP Windows XP
    Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

    The sources archives

    http://www.inter7.com/vqadmin/vqadmin-2.3.7.tar.gz
    downloads.sourceforge.net/qmailadmin/qmailadmin-1.2.16.tar.gz

    And my way to install it :

    VQADMIN
    qmailrocks.thibs.com/vqadmin.php

    QMAILADMIN
    http://qmailrocks.thibs.com/qmailadmin.php

    View CommentView Comment
    • admin says:
      Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
      Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

      Your qmailadmin and vqadmin tutorial is not working on Debian Squeeze, you can test it. Try to compile it on Debian Squeeze and you will see it’s not good. With the little adjustment from my article it’s just fine.

      cya

      View CommentView Comment
      • Thibs says:
        Firefox 5.0 Firefox 5.0 Windows XP Windows XP
        Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

        Hello,

        I’ve compiled like this it two days ago on Debian Squeeze without any problem.

        It works perhaps on my side because I’ve installed some packages you haven’t (my list of installed packages : qmailrocks.thibs.com/package-install.php).

        Nevertheless, I’ll like your tip on my page if some users experience the same problem as you

        Thanks you for all your useful tips !

        View CommentView Comment
        • admin says:
          Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
          Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

          Hi Thibs,

          Probably because you have installed on 32 bit architecture? It’s not because of the packages installed, I had them all installed on my Debian amd x86_64 Squeeze Debian

          View CommentView Comment
        • Thibs says:
          Firefox 5.0 Firefox 5.0 Windows XP Windows XP
          Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

          No I’ve compiled everything on a 64 bits version.

          It’s a Vmware virtual machine : I can send you the vmdk file if you don’t trust me 😉

          I’m sure it works ! I’ve released the new version of my guide 2 days ago and I’ve deeply tested it.

          For Vqadmin, the useful tip is to copy the file “vpopmail-5.4.33/config.sub” into the vqadmin directory.

          For qmailadmin, it’s perhaps because I use qmailadmin-1.2.16 and you use qmailadmin-1.2.15 … or because I ‘ve installed all those packages :

          cpp g++ gcc make automake wget telnet libtool patch patchutils logrotate dh-make-perl libltdl7 equivs expect openssl libssl-dev libgmp3-dev libgdbm-dev libpcre++-dev libpcre-ocaml libpcre-ocaml-dev

          I’ve you’ve time, try to install a from a Squeeze base install following my guide from the beginning … I’m sure it works (tested on 32 AND 64 bits)

          View CommentView Comment
          • admin says:
            Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
            Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

            Probably it’s a qmailadmin version related problem as you suggested 😉
            I’m pretty sure I’m not missing packages, see below:

            root@debian:/home/hipo# apt-get install cpp g++ gcc make automake wget telnet libtool patch patchutils logrotate dh-make-perl libltdl7 equivs expect openssl libssl-dev libgmp3-dev libgdbm-dev libpcre++-dev libpcre-ocaml libpcre-ocaml-dev
            Reading package lists… Done
            Building dependency tree
            Reading state information… Done
            automake is already the newest version.
            dh-make-perl is already the newest version.
            equivs is already the newest version.
            expect is already the newest version.
            cpp is already the newest version.
            g++ is already the newest version.
            gcc is already the newest version.
            libgdbm-dev is already the newest version.
            libgmp3-dev is already the newest version.
            logrotate is already the newest version.
            libpcre++-dev is already the newest version.
            libltdl7 is already the newest version.
            libtool is already the newest version.
            make is already the newest version.
            telnet is already the newest version.
            libssl-dev is already the newest version.
            openssl is already the newest version.
            patch is already the newest version.
            patchutils is already the newest version.
            libpcre-ocaml-dev is already the newest version.
            libpcre-ocaml is already the newest version.
            wget is already the newest version.

            I also have some problems with vqadmin, I’ll have to take the time and see why it fails to build.
            By the way I’ve used partially used your tutorial, it’s good. I think your tutorial has some issues with courier imap installation (e.g. setting up pop3 and imap). I compiled them from source to bring up the services up to work in conjunction with vpopmail.

            Maybe the problems I got are related to vpopmail source files. I’m running vpopmail 5.4.32. I’m also not using vpopmail with mysql as I don’t need it and I don’t like it. So maybe compile issues has something to do with these.
            I’ve noticed your toturial is missing explanations on how to skip using mysql to store mail and user credentials, it will be great if you add this chapter 😉

            Anyways you’ve done a great job with these tutorial Congrats from Bulgaria 😉

            View CommentView Comment
  3. Thibs says:
    Firefox 5.0 Firefox 5.0 Windows XP Windows XP
    Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

    😉 Thanks you !

    Your tips are always useful ! Congrats from Belgium !

    View CommentView Comment
  4. hip0 says:
    Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
    Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

    Great, i can help be useful 😉
    Beligium, so nice. I’ve been in Bruxelles for 3 days. You have nice country. Way better than Holland IMHO 😉
    Will be seeing you around

    View CommentView Comment
  5. Thibs says:
    Firefox 5.0 Firefox 5.0 Windows XP Windows XP
    Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

    I ‘v been on Bulgarian coast (Varna) for holidays and really liked too !

    View CommentView Comment
    • admin says:
      Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
      Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

      Glad you like it here. Varna is just 50 km away from my city 😉 It’s a nice city, though I think it’s not the best place for a beach. There are so many wonderful places nearby Varna. You should come again, if you decide to come near you can be my guest 😉
      If I travel to Holland or Belgium, I’ll reach for you for a coffee 😛

      will be seeing you around

      Best!
      Georgi

      View CommentView Comment
  6. Wilburn Chapelle says:
    Opera 9.64 Opera 9.64 Windows XP Windows XP
    Opera/9.64(Windows NT 5.1; U; en) Presto/2.1.1

    I realy enjoyed visiting your site, i also own a proxy related site where in it you can find proxy post. if you want we can share links, anyway i realy like your article, keep on the fine work.

    View CommentView Comment

Leave a Reply

CommentLuv badge