[vchkpw] vpopmail 5.4.0 make fails on OpenBSD 3.4, MySQL 4.0.16

2004-02-24 Thread ax
Hello.  I'm posting a fresh message because my previous one may have been absorbed 
into a previous thread -- my mistake.

I'm attempting to get vpopmail set up with all the MySQL additions on a fully 
DJB-ified but otherwise out-of-the box install of OpenBSD 3.4 (GENERIC) on an Intel 
Pentium 4 machine.  I'm using the OpenBSD distribution of MySQL 
(mysql-standard-4.0.16-unknown-openbsd3.4-i386), which seems to be the cause of the 
problem, as I can compile and install successfully without MySQL support.

vpopmail 5.4.0 and 5.4.2 produce very similar output.  Here's the end of the output 
from "make" with 5.4.0...

- - - - - -
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+0x40a): undefined reference to `floor'
password.o(.text+0x498): undefined reference to `floor'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /var/src/mail/vpopmail-5.4.0 (line 424 of Makefile).
*** Error code 1

Stop in /var/src/mail/vpopmail-5.4.0 (line 511 of Makefile).
*** Error code 1

Stop in /var/src/mail/vpopmail-5.4.0 (line 335 of Makefile).
- - - - - -

There was a suggestion that I might need to add -lm to the linker flags, but I'd hope 
that would be found without problem.  From "ldconfig -r"...
  
  7:-lm.1.0 => /usr/lib/libm.so.1.0

Any help much appreciated.
Alex



Re: [vchkpw] vpopmail 5.4.0 make fails on OpenBSD 3.4, MySQL 4.0.16

2004-02-24 Thread Jeremy Kitchen
On Tue, 2004-02-24 at 20:17, [EMAIL PROTECTED] wrote:
> Thanks for the response.  I'll reply directly to you this time -- I'm
> reluctant to send to the list until I've confirmed that I've fixed my
> problems.

please keep list posts on the list.  I read every post to the list, and
others may be able to help you better than I could.

> 
> > You posted a message that was a completely new question, and entirely
> > unrelated to the post you replied to.  Don't do that, that messes up the
> > archives and makes it difficult to find your post.  Most MUAs have a
> > 'new mail' function.  You should take advantage of that in the future.
> 
> I didn't reply to a post -- I created a new message with a new subject.  I only 
> elliptically referenced the previous message in my text.

but you hit reply to make the message.  your headers don't lie:
In-Reply-To:  <[EMAIL PROTECTED]>
which makes my MUA (as well as most others) and the list archives, take
that as another message in the thread.

> > > password.o(.text+0x498): undefined reference to `floor'
> > > collect2: ld returned 1 exit status
> > 
> > 
> > I believe that you are missing math libraries in your linker path. 

> Pardon my ignorance, but do you know what I can do about this?  So far, I'm dealing 
> with an out-of-the box install of OpenBSD 3.4 (GENERIC) on an Intel Pentium 4 
> machine.

I don't know anything about openbsd, but perhaps you are missing some
-devel packages that include the required libraries and header files. 
from what I could find on google, it needs to have -lm in the linker
flags, however, I am not a programmer, nor do I use openbsd, so I'm not
entirely sure if this is what you need.

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] vpopmail 5.4.0 make fails on OpenBSD 3.4, MySQL 4.0.16

2004-02-24 Thread Jeremy Kitchen
You posted a message that was a completely new question, and entirely
unrelated to the post you replied to.  Don't do that, that messes up the
archives and makes it difficult to find your post.  Most MUAs have a
'new mail' function.  You should take advantage of that in the future.

Also, please set your MUA to wrap at approximately 72-80 columns, that
makes your post much more readable and easier to reply to.

That being said:

On Tue, 2004-02-24 at 19:49, [EMAIL PROTECTED] wrote:
> 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'
> password.o(.text+0x40a): undefined reference to `floor'
> password.o(.text+0x498): undefined reference to `floor'
> collect2: ld returned 1 exit status


I believe that you are missing math libraries in your linker path. 

-Jeremy
-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



[vchkpw] vpopmail 5.4.0 make fails on OpenBSD 3.4, MySQL 4.0.16

2004-02-24 Thread ax
Hello.  Just joined the list after consulting the archives and finding a message 
detailing what looks like a very similar problem to the one I'm having, though on 
Solaris 9.  If I were more knowledgeable, I'm sure this would be enough, but I'm 
afraid I need a bit more hand-holding.

I'm attempting to get vpopmail set up with all the MySQL additions on a fully 
DJB-ified install of OpenBSD 3.4.  I'm using the OpenBSD distribution of MySQL 
(mysql-standard-4.0.16-unknown-openbsd3.4-i386), which seems to be the cause of the 
problem, as I compiled and installed successfully without MySQL support.  

vpopmail 5.4.0 and 5.4.2 produce very similar output.  Here's 5.4.0...

$ ./configure --enable-roaming-users \
>   --enable-logging=p \
>   --enable-auth-module=mysql \
>   --enable-mysql-logging \
>   --enable-tcpserver-file=/var/vpopmail/etc/tcp.smtp \
>   --enable-valias

- - - - SNIP - - - - -
cd . && /bin/sh ./config.status Makefile 
config.status: creating Makefile
rm -f libvpopmail.a
ar cru libvpopmail.a vpopmail.o md5.o bigdir.o  vauth.o file_lock.o vpalias.o  seek.o 
vlimits.o maildirquota.o cdb/*.o
ranlib libvpopmail.a
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+0x40a): undefined reference to `floor'
password.o(.text+0x498): undefined reference to `floor'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /var/src/mail/vpopmail-5.4.0 (line 424 of Makefile).
*** Error code 1

Stop in /var/src/mail/vpopmail-5.4.0 (line 511 of Makefile).
*** Error code 1

Stop in /var/src/mail/vpopmail-5.4.0 (line 335 of Makefile).

- - - - - - - - - -

Any and all help appreciated.
Thanks,
Alex