Try puting something like this in front of your configure line for courier-imap: env "LIBS=-L/usr/lib/mysql -lmysqlclient -lz" \ ./configure ..... Ken Jones yamada wrote: > > Hello. I'm trying to install the Courier-IMAP and vpopmail. > But I occured an error when I did "make". > I investigated a lot of informations but I wasn't able to solve it myself. > > Please tell me what's the problem. > > - Environment > > Red Hat Linux release 7.0.1J (Guinness) > Kernel 2.2.16-22 on an i686 > > qmai l.03 > MySQL 3.22.32 > vpopmail 4.9.10 > courier-imap 1.3.8.1 > > - error details > > $ CPPFLAGS="-I/usr/local/mysql/include/mysql" > $ LDFLAGS="-L/usr/local/mysql/lib/mysql" > $ export CPPFLAGS > $ export LDFLAGS > $ ./configure --enable-workarounds-for-imap-client-bugs > > : > : > > $ make > Making all in numlib > make[1]: Entering directory `/usr/local/src/courier-imap-1.3.8.1/numlib' > make[1]: Leaving directory `/usr/local/src/courier-imap-1.3.8.1/numlib' > Making all in gdbmobj > make[1]: Entering directory `/usr/local/src/courier-imap-1.3.8.1/gdbmobj' > make[1]: Leaving directory `/usr/local/src/courier-imap-1.3.8.1/gdbmobj' > Making all in soxwrap > make[1]: Entering directory `/usr/local/src/courier-imap-1.3.8.1/soxwrap' > gcc -g -O2 -L/usr/local/mysql/lib/mysql -o testprog testprog.o > libsoxwrap.a -lnsl `cat soxlibs.dep` > make[1]: Leaving directory `/usr/local/src/courier-imap-1.3.8.1/soxwrap' > Making all in unicode > make[1]: Entering directory `/usr/local/src/courier-imap-1.3.8.1/unicode' > /usr/bin/perl ./unicodefilter.pl "no" \ > "no" <./charsetlist.txt | \ > /usr/bin/perl ./charsetlist.pl >charsetlist.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/mysql/include/mysql -g -O2 - > Wall -c charsetlist.c > > : > : > > /usr/local/src/vpopmail-4.9.10/vauth.c:620: undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vcreate_dir_control': > /usr/local/src/vpopmail-4.9.10/vauth.c:924: undefined reference to > `mysql_free_result' > collect2: ld returned 1 exit status > make[1]: *** [authvchkpw] error 1 > make[1]: Leaving directory `/usr/local/src/courier-imap-1.3.8.1/authlib' > make: *** [all-recursive] error 1 > > yamada
