[Mono-devel-list] Non GCC compiler patch - ip_mreq &HP'sheaders

Bernie Solomon bernard at ugsolutions.com
Tue Jun 10 19:04:33 EDT 2003


Thanks for the update.

I was doing some other things for a bit but am now trying to organize my
changes so I can submit more as the next patch. This will basically be for
64 bits and the rest of the HPUX stuff. I see Paolo has put in some of my
changes today too so I can work on top of the latest CVS and hopefully the
patch won't be too big (interp.c has the most).

I have indeed made some changes to configure.in which will be part of this
(learnt more about autoxxx in the process - and been trying to
understand/fight libtool as well for my own builds).

Hopefully I'll be able to present some more changes soon.

Bernie Solomon
----- Original Message ----- 
From: "Dick Porter" <dick at ximian.com>
To: "Bernie Solomon" <bernard at ugsolutions.com>
Cc: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, June 10, 2003 10:01 AM
Subject: Re: [Mono-devel-list] Non GCC compiler patch - ip_mreq &HP'sheaders


> On Thu, 2003-05-22 at 17:17, Bernie Solomon wrote:
> > io-layer/daemon-messages.c needs _XOPEN_SOURCE_EXTENDED for cmsghdr so
it
> > seems impossible to have this compile and socket-io.c at the same time -
but
> > this is the only file that needs it. So an alternative which feels
slightly
> > less yucky is to have _XOPEN_SOURCE defined everywhere by configure
> >
> > #ifdef __hpux // is this the right symbol? or should it be something
defined
> > by configure.
> > #define _XOPEN_SOURCE_EXTENDED
> > #endif
> >
> > at the top of daemon-messages.c to get cmsghdr.
>
> I've made configure check for both struct ip_mreqn and struct ip_mreq,
> and if it finds neither then the code in socket-io.c is ifdeffed out.
>
> I want to set _XOPEN_SOURCE globally for hpux builds, and the place to
> do this is in the platform-specific sections at the top of configure.in.
>
> Theres a default section that says:
>
> *)
> AC_MSG_WARN([*** Please add $host to configure.in checks!])
> platform_win32=no
> libdl="-ldl"
> ;;
>
> which should be triggered on hpux, so do you have a set of defines,
> linker options etc that are needed for building threaded code on hpux?
> When we have the hpux stanza, then I'll make it add _XOPEN_SOURCE and
> add the _EXTENDED define in daemon.messages.c.
>
> - Dick
>
>




More information about the Mono-devel-list mailing list