Closed TopicStart new topicStart Poll

> Porting XMail to NETBSD ...
elypsis
Posted: Feb 1 2004, 11:13 PM
Quote Post


Newbie
*

Group: Members
Posts: 22
Member No.: 676
Joined: 31-July 03



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.
PMEmail PosterUsers Website
Top
hschneider
Posted: Feb 1 2004, 11:37 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Please contact XMail's author at davidel@xmailserver.org

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


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
hschneider
Posted: Feb 1 2004, 11:37 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



BTW: What is your NetBSD version ?


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
elypsis
Posted: Feb 2 2004, 12:47 AM
Quote Post


Newbie
*

Group: Members
Posts: 22
Member No.: 676
Joined: 31-July 03



ver 1.6.1
PMEmail PosterUsers Website
Top
elypsis
  Posted: Feb 13 2004, 01:45 PM
Quote Post


Newbie
*

Group: Members
Posts: 22
Member No.: 676
Joined: 31-July 03



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?
PMEmail PosterUsers Website
Top
hschneider
Posted: Feb 13 2004, 04:08 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



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 ...



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
elypsis
  Posted: Apr 22 2004, 12:28 PM
Quote Post


Newbie
*

Group: Members
Posts: 22
Member No.: 676
Joined: 31-July 03



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!!!!
PMEmail PosterUsers Website
Top
hschneider
Posted: Apr 22 2004, 01:17 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



>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!


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Documentation and Knowledge Base | Next Newest »

Closed TopicStart new topicStart Poll