I've been having strange problems since my installation of RedHat 7 (a
foolish move, I've since discovered). I decided it was time to upgrade to
the latest courier (0.28, I was/am running 0.26).
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: *** [authmysql] Error 1
make: 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.
What the problem?
- Paul Philion