Davide Libenzi wrote:
>On Thu, 6 May 2004, Christian Gross wrote:
>  
>
>
>Ok, this is one. Are you trying on 1.19?
>
>http://www.xmailserver.org/xmail-1.19-pre03.tar.gz
>
>Replace the #include <sys/poll.h> with #include <poll.h>. Also, the 
>vm_param.h path. Then retry ...
>  
>
Thank-you and here are my build details.

I included the <mach/vm_param.h> and get the following error...

/usr/include/mach/vm_param.h:65:2: #error YOU HAVE MADE A MISTAKE BY 
INCLUDING THIS FILE;
/usr/include/mach/vm_param.h:66:2: #error
/usr/include/mach/vm_param.h:67:2: #error THIS FILE SHOULD NOT BE 
VISIBLE TO USER PROGRAMS.
/usr/include/mach/vm_param.h:68:2: #error
/usr/include/mach/vm_param.h:69:2: #error USE <mach/machine/vm_param.h> 
TO GET MACHINE-DEPENDENT ADDRESS
/usr/include/mach/vm_param.h:70:2: #error SPACE AND PAGE SIZE ITEMS.
/usr/include/mach/vm_param.h:71:2: #error
/usr/include/mach/vm_param.h:72:2: #error USE <mach/machine/vm_types.h> 
TO GET TYPE DECLARATIONS USED IN
/usr/include/mach/vm_param.h:73:2: #error THE MACH KERNEL INTERFACE.
/usr/include/mach/vm_param.h:74:2: #error
/usr/include/mach/vm_param.h:75:2: #error IN ALL PROBABILITY, YOU SHOULD 
GET ALL OF THE TYPES USED IN THE
/usr/include/mach/vm_param.h:76:2: #error INTERFACE FROM <mach/mach_types.h>

So I then changed the include to the following:

File SysIncludeBSD.H Line 39

#if defined(__FREEBSD__)
#include <vm/vm_param.h>
#elif defined(__DARWIN__)
#include <mach/machine/vm_param.h>
#else
#include <uvm/uvm_param.h>
#endif

File SysDepBSD.cpp Line 1462

#if defined(__FREEBSD__) || defined (__DARWIN__)
    int iMinPriority = sched_get_priority_min(iPolicy);
    int iMaxPriority = sched_get_priority_max(iPolicy);
#else                // #if defined(__FREEBSD__)
    int iMinPriority = SysGetPriorityMin(iPolicy);
    int iMaxPriority = SysGetPriorityMax(iPolicy);
#endif       

I also created a new makefile because the one for BSD used gmake, which 
is not available on OSX.  The makefile is attached to this email.

The compile ran successfully, but the link returned with the error:

g++: unrecognized option `-pthread'
ld: can't locate file for: -lc_r
make: *** [XMail] Error 1
Process make exited with code 2

I am in the process of investigating the link problems.  However, if 
anybody has any hints, please tell me.

Christian


-- Attached file included as plaintext by Ecartis --
-- File: Makefile.osx

#
#  XMail by Davide Libenzi ( Intranet and Internet mail server )
#  Copyright (C) 1999,..,2003  Davide Libenzi
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#  Davide Libenzi <[EMAIL PROTECTED]>
#
O = o
A = a
CPP = cpp
CC = g++
LD = g++

SYSTYPE = darwin
CFLAGS = -O2 -I. -D__UNIX__ -D__BSD__ -D__DARWIN__ -DXMAIL_PPC -D_REENTRANT=1 
-D_THREAD_SAFE=1
LDFLAGS = -lkvm -pthread -lc_r

MAILSVR = XMail
CRTLCLNT = CtrlClnt
XMCRYPT = XMCrypt
MKUSERS = MkUsers
SENDMAIL = sendmail

SVRSRCS = BuffSock.${CPP} CTRLSvr.${CPP} DynDNS.${CPP} DNS.${CPP} DNSCache.${CPP} 
Errors.${CPP} ExtAliases.${CPP} FINGSvr.${CPP} \
        MailConfig.${CPP} MailSvr.${CPP} Maildir.${CPP} MailDomains.${CPP} MD5.${CPP} 
MiscUtils.${CPP} LMAILSvr.${CPP} \
        AliasDomain.${CPP} POP3GwLink.${CPP} POP3Svr.${CPP} POP3Utils.${CPP} 
PSYNCSvr.${CPP} ResLocks.${CPP} SList.${CPP} SMAILSvr.${CPP} \
        TabIndex.${CPP} SMAILUtils.${CPP} SMTPSvr.${CPP} SMTPUtils.${CPP} 
ShBlocks.${CPP} StrUtils.${CPP} MessQueue.${CPP} \
        QueueUtils.${CPP} SvrUtils.${CPP} SysDep.${CPP} UsrMailList.${CPP} 
UsrAuth.${CPP} UsrUtils.${CPP} Main.${CPP} Base64Enc.${CPP} \
        Filter.${CPP}

SVROBJS = BuffSock.${O} CTRLSvr.${O} DynDNS.${O} DNS.${O} DNSCache.${O} Errors.${O} 
ExtAliases.${O} FINGSvr.${O} \
        MailConfig.${O} MailSvr.${O} Maildir.${O} MailDomains.${O} MD5.${O} 
MiscUtils.${O} LMAILSvr.${O} \
        AliasDomain.${O} POP3GwLink.${O} POP3Svr.${O} POP3Utils.${O} PSYNCSvr.${O} 
ResLocks.${O} SList.${O} SMAILSvr.${O} \
        TabIndex.${O} SMAILUtils.${O} SMTPSvr.${O} SMTPUtils.${O} ShBlocks.${O} 
StrUtils.${O} MessQueue.${O} \
        QueueUtils.${O} SvrUtils.${O} SysDep.${O} UsrMailList.${O} UsrAuth.${O} 
UsrUtils.${O} Main.${O} Base64Enc.${O} \
        Filter.${O}

CCLNSRCS = Base64Enc.${CPP} BuffSock.${CPP} SysDep.${CPP} StrUtils.${CPP} MD5.${CPP} 
MiscUtils.${CPP} CTRLClient.${CPP} Errors.${CPP}

CCLNOBJS = Base64Enc.${O} BuffSock.${O} SysDep.${O} StrUtils.${O} MD5.${O} 
MiscUtils.${O} CTRLClient.${O} Errors.${O}

XMCSRCS = XMCrypt.${CPP}

XMCOBJS = XMCrypt.${O}

MKUSRCS = MkUsers.${CPP}

MKUOBJS = MkUsers.${O}

SENDMAILSRC = SendMail.${CPP}

SENDMAILOBJS = SendMail.${O}

%.${O} : %.${CPP}
        ${CC} ${CPPFLAGS} ${CFLAGS} -c $*.${CPP}

all: ${MAILSVR} ${CRTLCLNT} ${XMCRYPT} ${MKUSERS} ${SENDMAIL}

${MAILSVR}: ${SVROBJS}
        ${LD} -o ${MAILSVR} ${SVROBJS} ${LDFLAGS}
        strip ${MAILSVR}

${CRTLCLNT}: ${CCLNOBJS}
        ${LD} -o ${CRTLCLNT} ${CCLNOBJS} ${LDFLAGS}
        strip ${CRTLCLNT}

${XMCRYPT}: ${XMCOBJS}
        ${LD} -o ${XMCRYPT} ${XMCOBJS} ${LDFLAGS}
        strip ${XMCRYPT}

${MKUSERS}: ${MKUOBJS}
        ${LD} -o ${MKUSERS} ${MKUOBJS} ${LDFLAGS}
        strip ${MKUSERS}

${SENDMAIL}: ${SENDMAILOBJS}
        ${LD} -o ${SENDMAIL} ${SENDMAILOBJS} ${LDFLAGS}
        strip ${SENDMAIL}

distclean: clean

clean:
        rm -f .depend a.out core ${MAILSVR} ${CRTLCLNT} ${XMCRYPT} ${MKUSERS} 
${SENDMAIL}
        rm -f *.${O} *~



-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to