Justus Winter, le Thu 27 Nov 2014 14:19:07 +0100, a écrit :
> +#ifdef HURD_DEFAULT_PAYLOAD_TO_PORT
> +#if HURD_DEFAULT_PAYLOAD_TO_PORT
> +/* Any non-numeric value will fail this test.  If 1 (or any number) is
> +   given, do not inject the default translator function.  */
> +#undef HURD_DEFAULT_PAYLOAD_TO_PORT
> +#endif
> +#else
> +   import <hurd/ports.h>;
> +#define HURD_DEFAULT_PAYLOAD_TO_PORT ports_payload_get_name
> +#endif

We're now getting it from libc:

/usr/src/glibc-2.19/build-tree/hurd-i386-libc/hurd/libhurduser_pic.a(msg_server.os):
 In function `_Xmsg_describe_ports':
/usr/src/glibc-2.19/build-tree/hurd-i386-libc/hurd/./hurd/msg_server.c:2071: 
undefined reference to `ports_payload_get_name'

Perhaps we should revert the logic: not define any
HURD_DEFAULT_PAYLOAD_TO_PORT by default, and have servers which want to
enable the payload optimization to define it?

Samuel

Reply via email to