Heya, For the archives, the reason for this is that vpopmail was not built with the --enable-incdir and --enable-libdir options. Vpopmail itself was able to find the necessary MySQL files, however this information was not available to Courier via vpopmail.a - for this reason, courier could not find the mysql header files.
Andre -----Original Message----- From: Jesse Guardiani [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 12:57 PM To: Andre Fortin; vpopmail Subject: Re: [vchkpw] Vpopmail w/ MySQL, courier-imap issue That's strange. Did you: gmake install-strip on vpopmail before compiling courier-imap? I wonder why it's referencing your vpopmail src directory? Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net We are actively looking for companies that do a lot of long distance faxing and want to cut their long distance bill by up to 50%. Contact [EMAIL PROTECTED] for more info. ----- Original Message ----- From: "Andre Fortin" <[EMAIL PROTECTED]> To: "vpopmail" <[EMAIL PROTECTED]> Sent: Saturday, December 14, 2002 2:37 AM Subject: [vchkpw] Vpopmail w/ MySQL, courier-imap issue > Heya.. > > Having some issues with courier-imap. I am using vpopmail w/ MySQL auth, and > all works well.. However, when trying to compile Courier (running 'make' as > normal user, and ~vpopmail/lib is readable), I get the error at the end of > this email (it is long so I wont put it in the middle of my message). > > OS: FreeBSD 4.7 > Vpopmail configure line: > /configure --enable-default-domain=personainternet.com --enable-clear-passw > d=y --enable-ip-alias-domains=y --enable-hard-quota --enable-defaultquota=50 > 000000 --enable-mysql=y --enable-mysql-replication=y > > Courier configure line: > ./configure --prefix=/usr/local/courier-imap --disable-root-check --without- > authpam --without-authldap --without-authpwd --without-authmysql --without-a > uthpgsql --without-authshadow --without-authuserdb --without-authcustom --wi > thout-authcram --without-authdaemon --with-authvchkpw > > Any help is appreciated, thanks in advance. > > > Andre > > > > > > ----------------- > > Error: > > > Compiling modauthvchkpw.c > gcc -I/var/vpopmail/include -g -O2 -Wall -I.. -I./.. -o authvchkpw > modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a ../md5/libmd5.a > ../sha1/libsha1.a -L/var/vpopmail/lib -lvpopmail -lm -lcrypt > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open_update': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x30): undefined reference to > `mysql_init' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x54): undefined reference to > `mysql_real_connect' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x6f): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xa3): undefined reference to > `mysql_real_connect' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xba): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x10b): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x122): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x141): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x14f): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x164): undefined reference to > `mysql_select_db' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open_read': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b6): undefined reference to > `mysql_init' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1da): undefined reference to > `mysql_real_connect' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x205): undefined reference to > `mysql_real_connect' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function > `vauth_open_read_getall': > /usr/src/vpopmail-5.2.1/vauth.c:234: undefined reference to `mysql_init' > /usr/src/vpopmail-5.2.1/vauth.c:239: undefined reference to > `mysql_real_connect' > /usr/src/vpopmail-5.2.1/vauth.c:243: undefined reference to > `mysql_real_connect' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_adddomain': > /usr/src/vpopmail-5.2.1/vauth.c:239: undefined reference to `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c:240: undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c:242: undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_adduser': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x4f5): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x509): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x517): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x52c): undefined reference to > `mysql_error' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_getpw': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x605): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x61e): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x635): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x661): undefined reference to > `mysql_num_rows' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x706): undefined reference to > `mysql_fetch_row' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x82e): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x842): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_deldomain': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x8a2): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x8b6): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x8c4): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x8ee): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x902): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x910): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_deluser': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x97a): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x993): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x9a1): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x9d2): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x9eb): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x9f9): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_setquota': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xadd): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xaf1): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xaff): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xb14): undefined reference to > `mysql_error' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_getall': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xbb4): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xbd3): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xbea): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xc09): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xcc9): undefined reference to > `mysql_fetch_row' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xe08): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_end_getall': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xe34): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_setpw': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xf7b): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xf8f): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xf9d): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0xfb4): undefined reference to > `mysql_error' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vclose': > /usr/src/vpopmail-5.2.1/vauth.c:800: undefined reference to `mysql_close' > /usr/src/vpopmail-5.2.1/vauth.c:804: undefined reference to `mysql_close' > /usr/src/vpopmail-5.2.1/vauth.c:808: undefined reference to `mysql_close' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function > `vcreate_ip_map_table': > /usr/src/vpopmail-5.2.1/vauth.c:820: undefined reference to `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c:821: undefined reference to `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c:824: undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c:826: undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vget_ip_map': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x113f): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1153): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1199): undefined reference to > `mysql_fetch_row' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x11b3): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x11c0): undefined reference to > `mysql_store_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vadd_ip_map': > /usr/src/vpopmail-5.2.1/vauth.c:887: undefined reference to `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c:888: undefined reference to `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c:885: undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c:885: undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vdel_ip_map': > /usr/src/vpopmail-5.2.1/vauth.c:887: undefined reference to `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c:888: undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c:885: undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vshow_ip_map': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x13aa): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x13c9): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x13e7): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x13fb): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x142f): undefined reference to > `mysql_fetch_row' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1453): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vread_dir_control': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x14e8): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x152a): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1549): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1571): undefined reference to > `mysql_fetch_row' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x16db): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vwrite_dir_control': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x17c2): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x17e4): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x17fb): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x181d): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x182b): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vcreate_dir_control': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1872): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1889): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x18a9): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x18b7): undefined reference to > `mysql_free_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x18ee): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1905): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1921): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x192f): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vdel_dir_control': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1972): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1994): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x19ab): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x19cd): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x19db): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vset_lastauth': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1a37): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1a55): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1a6c): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1a87): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1a95): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vget_lastauth': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1ae4): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b02): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b19): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b35): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b5d): undefined reference to > `mysql_fetch_row' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b77): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vget_lastauthip': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1bcc): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1bea): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1c01): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1c1d): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1c46): undefined reference to > `mysql_fetch_row' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1c60): undefined reference to > `mysql_free_result' > /var/vpopmail/lib/libvpopmail.a(vauth.o): In function > `vcreate_lastauth_table': > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1ca2): undefined reference to > `mysql_query' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1cb9): undefined reference to > `mysql_error' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1cd5): undefined reference to > `mysql_store_result' > /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1ce3): undefined reference to > `mysql_free_result' > *** Error code 1 > > Stop in /usr/home/apfortin/courier-imap-1.6.1.20021211/authlib. > *** Error code 1 > > Stop in /usr/home/apfortin/courier-imap-1.6.1.20021211/authlib. > *** Error code 1 > > Stop in /usr/home/apfortin/courier-imap-1.6.1.20021211. > > >