Hi All
I had some problems doing an install of Qmail Toaster on the latest Amazon
EC2 official AMI
I was able to get around the problems and I documented how I did it so that
others can know and the src.rpms can be updated to support the AMI
in libdomainkeys-toaster the make of dns.lib doesn't complete correctly and
stores "-- -lresolv" which breaks the compile
this is how I fixed it
cd SOURCES
tar zxvf libdomainkeys-0.68.tar.gz
cd libdomainkeys-0.68
cat Makefile | sed "s/\`cat dns\.lib\`/-lresolv/" > Makefile.test
mv Makefile Makefile.bak
mv Makefile.test Makefile
cd ..
tar zcvf libdomainkeys-0.68.tar.gz libdomainkeys-0.68
cd ../SPECS
rpmbuild -ba libdomainkeys.spec
cd ../RPMS
rpm iihv libdomainkeys*.rpm
in vqadmin it doesn't like the target/host/build of x86_64-unknown-linux or
x86_64-amazon-linux and won't compile
cd SPECS
edit the vqadmin.spec file
add
"--target=i686-linux-gnu --build=i686-linux-gnu --host=i686-linux-gnu"
to this block below
%configure \
--enable-qmaildir=/var/qmail \
--enable-vpopuser=vpopmail \
--enable-vpopgroup=vchkpw \
--enable-cgibindir=%{basedir}/cgi-bin/ \
--enable-htmldir=%{vqadmdir}/html \
in clamav the clamdtop doesn't compile because tinfo is implicitly
referenced and needs to be explicitly added to the linker
CCLD clamdtop
/usr/bin/ld: clamdtop.o: undefined reference to symbol 'halfdelay'
/usr/bin/ld: note: 'halfdelay' is defined in DSO /lib64/libtinfo.so.5 so
try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
cd SOURCES/clamav-0.97.6/clamdtop
vi Makefile.in
add
-ltinfo
to end of this line
LDFLAGS = @LDFLAGS@
like below
LDFLAGS = @LDFLAGS@ -ltinfo
I was able to get qmail-toaster to install after these fixes - but wanted
to make other aware of it
Jason Westbrook | T: 313-799-3770 | [email protected]