LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-14-2009, 01:06 PM   #1
dellxmax
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
problem wirh qmail server


dears,
i am using ubuntu 9.10 server
and try to install qmail
i am using this link http://www.linux-bd.com/qmail/qmail-install.html
that explain step to install


into this step
STEP: 10- Build and Install qmail-1.03
when i try to run this command
# make WITH_QMAILQUEUE_PATCH=yes setup check

i face this error
Code:
alloc.c:3: warning: conflicting types for built-in function âmallocâ
auto-str.c:8: warning: conflicting types for built-in function âputsâ
auto-int8.c:10: warning: conflicting types for built-in function âputsâ
auto-int.c:10: warning: conflicting types for built-in function âputsâ
In file included from control.h:6,
                 from qmail-remote.c:13:
readwrite.h:4: error: conflicting types for âreadâ
/usr/include/bits/unistd.h:35: note: previous definition of âreadâ was here
readwrite.h:5: error: conflicting types for âwriteâ
/usr/include/unistd.h:335: note: previous declaration of âwriteâ was here
make: *** [qmail-remote.o] Error 1
 
Old 11-14-2009, 04:22 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

If there is no particular reason to use that tutorial, I would suggest you to use either "Life with qmail", or the "qmailrocks" way to install qmail.
Anyway, regarding the error you get, after a little search I found that
Quote:
READ/WRITE TROUBLESHOOTING:
If you're having a problem similar to:
./compile qmail-smtpd.c
In file included from qmail-smtpd.c:57:
/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-smtpd.c: In function `main':
qmail-smtpd.c:1377: warning: return type of 'main' is not `int'
*** Error code 1

I've found that if you comment out the "read" and "write" definitions
of /usr/include/unistd.h (line 356 and line 370) and then make again,
it'll compile fine. don't forget to uncomment when finished.
the above is taken from here

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
applying c.k. davis qmail buffer patch to live qmail server baronsam Linux - Server 4 04-22-2007 02:02 PM
qmail server problem sadunsanjaya Linux - Software 0 03-14-2007 06:16 AM
Backup problem of Qmail Server. crackerB Linux - Server 2 10-25-2006 12:18 AM
Problem wirh baghira aerlinn Linux - Software 2 05-13-2005 11:27 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration