-
Mac OS X is derived from BSD (grin)
In any case, I realize I can just modify the files myself, or add a -D to gcc....my main purpose for adding the info here was so that others who run into the same problem will be able to get more useful information without having to repeat my problems.
2009-07-16 21:22:51 UTC in libmail - A mail handling library
-
Also, please take a look at the POSIX reference on this
http://www.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
which also refers to _POSIX_HOST_NAME_MAX and indicates that HOST_NAME_MAX is often not defined.
In particular, all of the posix related symbols start with an underscore.
2009-07-16 20:44:44 UTC in libmail - A mail handling library
-
My Fedora 9 Linux server also has it as shown in the following result for the same grep query
posix1_lim.h:#define _POSIX_HOST_NAME_MAX 255.
2009-07-16 20:40:19 UTC in libmail - A mail handling library
-
By the way, I just read that STANDARDS article to which you referred me and it clearly indicates that MAXHOSTNAMELEN was on older systems
From the article
-------------------
The gethostname() function conforms to IEEE Std 1003.1-2001 (``POSIX.1''). Callers should be aware
that {HOST_NAME_MAX} may be variable or infinite, but is guaranteed to be no less than...
2009-07-16 20:33:58 UTC in libmail - A mail handling library
-
I don't understand --- what I found was _POSIX_HOST_NAME_MAX. For example: see the results of the following grep
DHJMacPro:/usr/include $ grep HOST_NAME_MAX *
limits.h:#define _POSIX_HOST_NAME_MAX 255
The term POSIX is part of the name, seems to me that makes it legitimate POSIX (grin)
I'm running the very latest version of Mac OS X, by the way.
2009-07-16 20:22:08 UTC in libmail - A mail handling library
-
Downloaded to my Mac, ./configure worked fine. But compilation failed with the error
../libmail/libmail_intl.h:49: error: ‘HOST_NAME_MAX’ undeclared here (not in a function)
Looking around, it turns out that HOST_NAME_MAX is not defined on the Mac platform. Instead there is something called _POSIX_HOST_NAME_MAX
Apparently this can be added to the configure process but I regret I...
2009-07-16 03:30:17 UTC in libmail - A mail handling library
-
Is there a sample email client implemented with vmime that supports POP and IMAP that one could use as a starting point for development? It's not at all clear to me how one would build such a thing with vmime and (candidly) I don't want to spend the time becoming expert with the vmime library until AFTER I've determined whether it can support the kinds of things I want to do.
2009-07-15 20:03:22 UTC in VMime