Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2006 09:57:25 +0200
From:      "Petr Murmak" <petr@cdr.cz>
To:        <questions@freebsd.org>
Subject:   Problem compiling helios-qmail
Message-ID:  <20060428075852.4C224134306@smtp.klfree.net>

next in thread | raw e-mail | index | archive | help
Hi!

I'm trying install helios-qmail (http://helios-qmail.sourceforge.net/) which
is based on qmail-sql (http://qmail-sql.digibel.be/) and I know for sure,
that on FreeBSD 4.x it was possible to install it, but on FreeBSD 6.0 I
receive during installation only this:

./compile qmail-getpw.c `cat sql.headers`
In file included from sql.h:6,
                 from qmail-getpw.c:17:
/usr/include/unistd.h:356: error: conflicting types for 'read'
readwrite.h:4: error: previous declaration of 'read' was here
/usr/include/unistd.h:356: error: conflicting types for 'read'
readwrite.h:4: error: previous declaration of 'read' was here
/usr/include/unistd.h:370: error: conflicting types for 'write'
readwrite.h:5: error: previous declaration of 'write' was here
/usr/include/unistd.h:370: error: conflicting types for 'write'
readwrite.h:5: error: previous declaration of 'write' was here
qmail-getpw.c: In function `main':
qmail-getpw.c:84: warning: return type of 'main' is not `int'
*** Error code 1

and 'compile' is script containing this:

#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
exec cc -O2 -c ${1+"$@"}

'sql.headers' only contains:

-I/usr/local/include/mysql



Any suggestions what to change for compiling this application?

Thanks

Petr

PS: Helios-qmail is very promising and if I will be able to compile it on
FreeBSD 6.0 I will try to make regular port...




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060428075852.4C224134306>