List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:October 9 2000 3:30pm
Subject:Re: FreeBSD Problems
View as plain text  
In the last episode (Oct 07), Robert Covell said:
> Trying to use the binary distribution and whenever I build against it I get:
> gcc -g -o pwcheck pwcheck.o pwcheck_mysql.o
> ../lib/libcyrus.a -lcrypt -lmysqlclient
> /usr/lib/libmysqlclient.a(password.o): In function `scramble':
> password.o(.text+0x268): undefined reference to `floor'
> password.o(.text+0x2bd): undefined reference to `floor'
> /usr/lib/libmysqlclient.a(password.o): In function `check_scramble':
> password.o(.text+0x37c): undefined reference to `floor'
> password.o(.text+0x3dc): undefined reference to `floor'
> *** Error code 1
> Stop in /usr/local/cyrus-imapd-1.5.24-BETA/pwcheck.
> *** Error code 1
> Stop in /usr/local/cyrus-imapd-1.5.24-BETA

Add -lm to link in the math library.

	Dan Nelson
FreeBSD ProblemsRobert Covell9 Oct
  • Re: FreeBSD ProblemsDan Nelson9 Oct