James Thornton logo
James Thornton
Google
Web jamesthornton.com
Internet Business Consultant
Home Blog Bio Projects Contact
JamesThornton.com -\> Writing -\> VMailMgr, gcc 3, and Redhat

Compiling VMailMgr with gcc 3.x on Redhat Enterprise 3: HOWTO

Summary: Instructions for compiling VMailMgr with gcc 3.x on Redhat Enterprise Linux 3.

VMailMgr 0.96.9 doesn't compile cleanly with gcc 3.x on Redhat Enterprise Linux 3 systems, but I was able to compile it using the following procedure. This procedure may work with other operating systems too, but I have only used it on Redhat Enterprise Linux 3 with gcc 3.2.3.

Build Procedure Commands

  1. wget http://www.vmailmgr.org/current/vmailmgr-0.96.9.tar.gz
  2. wget http://jamesthornton.com/writing/gcc3.patch
  3. tar -xvzf vmailmgr-0.96.9.tar.gz -C /usr/local/src/
  4. cp gcc3.patch /usr/local/src/vmailmgr-0.96.9/
  5. cd /usr/local/src/vmailmgr-0.96.9/
  6. patch -p1 <gcc3.patch
  7. cp /usr/local/share/automake-1.9/depcomp /usr/local/src/vmailmgr-0.96.9/
    (Note: Your automake location and version may vary.)
  8. aclocal
  9. ./configure
  10. make
  11. make install

Compile Time Errors (Google Fodder So You Can Find This Page)

The following error is fixed by the gcc3.patch:

exec.cc:31: `strcpy' undeclared (first use this function)
make[3]: *** [exec.o] Error 1
make[3]: Leaving directory `/usr/local/src/tmp/vmailmgr-0.96.9/lib/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/tmp/vmailmgr-0.96.9/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/tmp/vmailmgr-0.96.9'
make: *** [all-recursive-am] Error 2

The following errors are fixed by copying the depcomp file from the automake directory and running aclocal:

Making all in authenticate
make[2]: Entering directory `/usr/local/src/tmp/vmailmgr-0.96.9/authenticate'
cd .. && automake --gnu --include-deps authenticate/Makefile
configure.in:2: your implementation of AM_INIT_AUTOMAKE comes from an
configure.in:2: old Automake version.  You should recreate aclocal.m4
configure.in:2: with aclocal and run automake again.
authenticate/Makefile.am: required file `./depcomp' not found
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
make[2]: *** [Makefile.in] Error 63
make[2]: Leaving directory `/usr/local/src/tmp/vmailmgr-0.96.9/authenticate'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/tmp/vmailmgr-0.96.9'
make: *** [all-recursive-am] Error 2


Follow espeed on Twitter