9fans  

[9fans] plan9port upas

Benjamin Huntsman
Mon, 06 Feb 2006 12:20:02 -0800

I've been playing around with the plan9port version of upas, which seems to 
have some major holes in it.  Anyone gotten this to work?  For reference, I'm 
working on a MacOSX system.

Building smtpd required building libndb with csgetval.c, which is commented out 
in the mkfile, and required a minor edit, changing #include <ndbhf.h> to 
#include "ndbhf.h".  I had to link it by hand with /usr/lib/libresolv.9.dylib 
to resolve the symbols _res_9_dn_expand and _res_9_search.  Also, I changed 
main() to threadmain() in smtpd.c, so that it would link properly with 
libthread.a.

So, though smtpd will execute, it always dies with the message:
/usr/local/plan9/bin/upas/smtpd: can't get remote system's address

I tracked it down to the function getnetconninfo in lib9/getnetconn.c, but 
can't figure out why this should not be working.

Any ideas?

Also, most of the upas programs seem to be confused as to if they'd like to 
store things in /mail/* or $PLAN9/mail/*.

-Ben

<<winmail.dat>>