Re: ORBit build problem on HPUX.
- From: Dan Newcombe <Newcombe mordor clayton edu>
- To: Elliot Lee <sopwith redhat com>
- cc: gnome-list gnome org
- Subject: Re: ORBit build problem on HPUX.
- Date: Mon, 4 Jan 1999 11:49:46 -0500 (EST)
On 4 Jan 1999, Elliot Lee wrote:
> On Mon, 4 Jan 1999 11:29:21 -0500 (EST), Dan Newcombe
> <Newcombe@mordor.clayton.edu> wrote:
> >When building ORBit, src/IIOP/connection.c needs to define
> > _XOPEN_SOURCE_EXTENDED
> >around both
> > iiop-endianP.h
> >and netdb.h
> >otherwise h_errno is undeclared on HPUX.
> Defining _XOPEN_SOURCE_EXTENDED causes something else important to be
> *undefined* (I have forgotten what exactly...), so that won't work...
Actually, the _XOPEN_SOURCE_EXTENDED needs to also encompass the
arpa/inet.h, otherwise it won't fine htons or ntohs.
I don't know what it causes to be undefined, but I was able to wrap those
three headers in
#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED
#endif
#include <>
#ifdef _XOPEN_SOURCE_EXTENDED
#undef _XOPEN_SOURCE_EXTENDED
#endif
and it compiled and linked just fine.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]