XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Documentation and Knowledge Base > Porting XMail to NETBSD ...


Posted by: elypsis Feb 1 2004, 11:13 PM
I've been trying to compile Xmail on NetBSD. No positive results. Has anyone here successfully built XMail on NetBSD? If so, please share exactly how you did it. I had to copy a couple files, and install the PTH package, it gets to a certain point, and then errors out:

In file included from SysDep.cpp:40:
SysDepBSD.cpp: In function `int SysSetThreadPriority(void *, int)':
SysDepBSD.cpp:1821: aggregate `struct sched_param SchParam' has incomplete type and cannot be initialized
SysDepBSD.cpp:1823: confused by earlier errors, bailing out
gmake: *** [SysDep.o] Error 1


does anyone know of any patches out there or have any tips?
I've seen someone start to write a patch, but, that seemed to have stopped halfway through last year.

NetBSD is my OS of choice, unfortunately, I'm running XMail on Linux now, just because I have to.

Posted by: hschneider Feb 1 2004, 11:37 PM
Please contact XMail's author at davidel@xmailserver.org

I'm sure, that he is interested in adapting it to NetBSD ...

Posted by: hschneider Feb 1 2004, 11:37 PM
BTW: What is your NetBSD version ?

Posted by: elypsis Feb 2 2004, 12:47 AM
ver 1.6.1

Posted by: elypsis Feb 13 2004, 01:45 PM
OK. i've been trying to somehow manage to get NetBSD and Xmail to play together for the past 2 weeks...still, no real progress.

After contacting Davide, he said all that is needed for Xmail to build and run are:

GNU GCC, GNU LIBC, and Pthreads...well...there is no Native Pthreads support in NetBSD until the 2.0 release which is coming "real real soon". There are several other pthread libraries available now, none of which worked in compiling, though the GNU Pth got the furthest in the compilation process with a little bit of code manipulation! rolleyes.gif

Glibc - A guy named Velco had made a tutorial on how to port GLibc to NetBSD back in 2002 using his patches. Followed the guide, most patches fail, can't even build the toolchain, mostly because of his malformed GNU Gcc patch...so if i can't build gnu gcc, i can't build gnu libc.

trying to run Xmail in Linux Emulation simply cannot be done unless i have that glibc library. sad.gif

anyone, anyone ever even try to get this to work?

Posted by: hschneider Feb 13 2004, 04:08 PM
The gcc binary package is on CD7 of NetBSD 1.6.1.
I'm currently downloading NetBSD to check things out. But this can take some time, since my schedule is very busy ...


Posted by: elypsis Apr 22 2004, 12:28 PM
WOW, reviving an old thread...i suppose nobody was really interested in this other than myself... blink.gif

After getting in contact with Pancake, he finally put together a patch to build Xmail using PKGSRC!!!

This will only work with NetBSD Current, and the upcoming 2.0 release, since 1.6.* does not have native Pthreads...which apparently was the problem all along.

Here is the link:

http://cvs.sourceforge.net/viewcvs.py/pkgsrc-wip/wip/xmail/

Not sure if the do-install in the Makefile works, since I prefer copying the files and MailRoot to my own directory, for convenience's sake.

The only odd thing is: the headers display that the messages come from a server running "FreeBSD/Ix86" instead of NetBSD. Anyone know why?

Doesn't really matter I suppose, I was EXTREMELY STOKED just to have it build on NetBSD. Now I'm just waiting for the NETBSD 2.0 release to convert my servers...oh man, this just made my year!

BTW, NetBSD 2.0 tentatively scheduled for late May release!!!!

Posted by: hschneider Apr 22 2004, 01:17 PM
>does not have native Pthreads
Indeed, that was the prob ...

Thanks for this valuable feedback!

Just change this line in SysTypesBSD.h :
#define SYS_OS_PORT "FreeBSD/" SYS_CPU_PORT

to
#define SYS_OS_PORT "NetBSD/" SYS_CPU_PORT

Thanks!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)