Compile on CentOS 4 errors
"Graham Miller" <[email protected]> Wed, 22 Jun 2005 16:08:54 +1000
| Newsgroups | gmane.mail.vmailmgr |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I have been tearing my hair out trying to get vmailmgr to make on CentOS = 4. I have now achieved a successful make but want to check with you guys = to make sure I have not done anything incorrectly. Please comment if you = see anything I have done wrong in this process. 1/ Had the usual issues with string.h and stdlib.h and found (what I = think is) a pretty concise solution to that, rather than just taking a = patch at face value like I have in the past. The patches found via = google and this list's archives differed in how they handled this, so I = studied it somewhat and ended up doing the following:- - add the #include <string.h> line to ./lib/mystring/mystring.h - add the #include <stdlib.h> line to ./authenticate/authvlib.h Only two changes! Other patches I found were adding <string.h> to ./lib/misc/exec.cc, = ./lib/misc/keystrlist.cc, lib/mystring/append.cc, and = ./lib/misc/strlist.cc. Seeing as they all loaded ./lib/mystring/mystring.h via strlist.h, it = seemed logical to just include it in mystring.h. 2/ Then had the gcc 3 issue to contend with. Found 3 patches that = differed slightly. They had some changes to 4 x Makefile.* (either = Makefile.in or Makefile.am), plus some text changes to 4 x = commands/v*.cc. I made a patch that modifies the Makefile.am files in the following = directories: - ./authenticate/ ./cgi/ ./commands/ and ./daemon/ The changes are to only one line and that is: -CXXLINK =3D $(CC) $(CXXFLAGS) $(LDFLAGS) -o $@ +CXXLINK =3D $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ The text changes I made were those submitted on this list by Alejandro = Mery in his post subject "[PATCH] vmailmgr 0.96.9 and gcc3[34]" (thanks = Alejandro). They apply to the following files in the ./commands/ = directory: - vcheckquota.cc, vchforwards.cc, vpasswd2cdb.cc, and vpasswd2db.cc 3/ This still did not make. It had an error stating it aclocal.m4 was = created by an old version of automake. Running aclocal did not work. It = complained about line 2, 13, and 22 of acinclude.m4, saying the items = there were underquoted. I edited the acinclude.m4 file and wrapped the following strings in []: - TRY_CXX_FLAG, CXX_NO_RTTI, CXX_NO_EXCEPTIONS These are on lines with AC_DEFUN definitions. Although I am not sure what I am doing with automake, this allowed = aclocal to run. 4/ This still did not finish its make. It then complained about a = missing file ./depcomp so after finding James Thornton's web site, I = copied the depcomp file from /usr/share/automake-1.9/ to the source = root. 5/ It compiled without errors and make check showed no errors either. Does this mean I have compiled OK with no holes or bugs left in the code = to catch me out? I can post the combined (the way I have described above) string.h, = stdlib.h, and gcc3 patch to the source code if anyone wants it. I have a = patch for acinclude.m4 but patch complains about a reversed patch when I = try to apply to original source file. Not sure what happened there, but = you are welcome to it if you want. Hope this helps others trying to get this thing to go on CentOS4 or = RedHat Enterprise Linux 4. kind regards Graham =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Graham Miller Network Systems Engineer, Web Hosting, and Digital Photography. http://www.gmcs.com.au =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D "Spam emails are the mosquitoes of the Internet -- numerous, annoying = and often carrying nasty viruses." - Senator Richard Alston. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]