%-> I downloaded the latest stable tar.gz and gave it the good old "rpm -ta
%-> courier-0.28.tar.gz". It runs along quite nicely for awhile,
%-> until I get to:
%->
%-> gcc -O2 -march=i386 -mcpu=i686 -Wall -I.. -I./.. -o authmysql
%-> modauthmysql.o libauthmod.a libauth.a ../libhmac/libhmac.a
%-> ./md5/libmd5.a -lcrypt -lmysqlclient -lm
%-> libauth.a(authmysqllib.o): In function `do_connect':
%-> authmysqllib.o(.text+0x373): undefined reference to `mysql_error'
%-> libauth.a(authmysqllib.o): In function `auth_mysql_getuserinfo':
%-> authmysqllib.o(.text+0x6ae): undefined reference to `mysql_num_rows'
%-> collect2: ld returned 1 exit status
%-> make[1]: *** [authmysql] Error 1
%-> make[1]: Leaving directory
%-> `/home/philion/rpm/BUILD/courier-0.28/authlib'
%-> make: *** [all-recursive] Error 1
%-> Bad exit status from /var/tmp/rpm-tmp.15650 (%build)
%->
%-> So it seems that there is a problem building the MySQL stuff. I double
%-> checked, and I have all the MySQL stuff loaded and running (version
%-> 3.23.24-1, according to RPM), including mysql-devel.
This could be the same issue that bit me. I tried a few different options,
but it seems that when compiling Courier with gcc 2.96, you can only use
the -O2 optflag. Edit your /usr/lib/rpm/rpmrc file and remove or comment out
any other optflags for the target your compiling for.
-- Juha