Article delegate-en/4279 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A4278@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: problem comiling HPUX 11.23
23 Dec 2008 17:25:43 GMT "Bambic, David (Penske)" <pweiabdyi-pbcajt5fjb3r.ml@ml.delegate.org>


I am trying the workaround :

Not sure where 
#define gethostbyname2(host,family)  gethostbyname((host))

I should put the statement at in the resolvy/reshost.c file?  

I still get :
reshost.c:100: error: 'gethostbyname2' was not declared in this scope
reshost.c: At global scope:
reshost.c:587: warning: deprecated conversion from string constant to
'char*'

Where should I put the statement ? I am not strong in C

#define gethostbyname2(host,family)  gethostbyname((host))

 Thanks

-----Original Message-----
From: Yutaka Sato [mailto:feedback@delegate.org] 
Sent: Tuesday, December 23, 2008 12:01 PM
To: feedback@delegate.org
Cc: Bambic, David (Penske)
Subject: Re: [DeleGate-En] problem comiling HPUX 11.23

In message
<_A4277@delegate-en.ML_> on
12/24/08(01:14:55) you "Bambic, David (Penske)"
<pweiabdyi-pbcajt5fjb3r.ml@ml.delegate.org> wrote:
 |I now tried with gcc with : make CC=gcc ...
 |reshost.c:100: error: 'gethostbyname2' was not declared in this scope

Upgrading your HP-UX to support IPv6 is recommended.
Or the fllowing is a workaround to escape the problem.

<URL:http://www.delegate.org/mail-lists/delegate-en/3204>
On 04/28/06(04:21) you "Schuck, Bruce P - San Mateo, CA" wrote in
<_A3204@delegate-en.ML_>  |Delegate 9.1.1 has issues being compiled on
Solaris 8 (SPARC).  The  |resolvy/reshost.c program calls
gethostbyname2.  This function does not  |exist on Solaris 8 (I believe
the same is true for Solaris 9 and 10).
 |
 |I hacked the source by adding
 |
 |#define gethostbyname2(host,family)  gethostbyname((host))  |
|somewhere near the top of reshost.c.

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V