It happens on the FreeBSD too. The "floor" is in the libm. Edit the Makefile and change "-lz" to "-lz -lm" and it will compile fine. For vi, just do "1,$ s/-lz/-lz -lm/g". Save the Makefile and do a make.
-----Original Message----- From: Mikael [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 2:53 PM To: [EMAIL PROTECTED] Subject: [vchkpw] mysql-standard-4.0.18-unknown-openbsd3.4-i386 + vpopmail 5.4.0 hey, i'm trying to compile vpopmail-5.4.0 with mysql support, though `(g)make` fails with the following error: gcc -g -O2 -Wall -o vchkpw vchkpw.o md5.o hmac_md5.o libvpopmail.a -L/usr/local/mysql/lib -lmysqlclient -lz /usr/local/mysql/lib/libmysqlclient.a(password.o): In function `scramble': password.o(.text+0x1c8): undefined reference to `floor' password.o(.text+0x25d): undefined reference to `floor' /usr/local/mysql/lib/libmysqlclient.a(password.o): In function `check_scramble': password.o(.text+0x3fa): undefined reference to `floor' password.o(.text+0x488): undefined reference to `floor' collect2: ld returned 1 exit status gmake[2]: *** [vchkpw] Error 1 i ran the configure script with the following flags: --prefix=/var/vpopmail --enable-vpopuser=_vpopmail --enable-vpopgroup=_vpopmail --enable-domainquotas --enable-libdir=/usr/local/mysql/lib --enable-incdir=/usr/local/mysql/include --enable-valias --enable-mysql-logging --enable-auth-module=mysql have anyone successfully built vpopmail with the binaries that mysql provide? greetings. -- Mikael, [EMAIL PROTECTED] http://www.gentoo.se/docs/