partysip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Partysip-dev] NS_GET16 and NS_GET32 for redhat linux


From: Aymeric Moizard
Subject: Re: [Partysip-dev] NS_GET16 and NS_GET32 for redhat linux
Date: Sun, 1 Sep 2002 23:30:51 +0200 (CEST)

On Thu, 29 Aug 2002, Joel King wrote:

> Hi All,
>    I'm getting the foll. link errors attempting to link partysip 0.4.5 with
> libosip0.8.8 on a redhat Linux machine.
> Could not resolve: NS_GET16 and NS_GET32
> Could someone email me these macros or where to get them? Thanks

After applying the modifs show below, compile the following way:
CFLAGS="-DOLD_NAMESER" ./configure
make
make install

replace the a section in ppl/unix/ppldns.c with this code:
(starting from line 249)
Aymeric

#if defined(__OpenBSD__) || defined(OLD_NAMESER)
    type = _getshort(cp);
    cp += sizeof(u_short);
#else
    NS_GET16(type, cp);
#endif

#if defined(__OpenBSD__) || defined(OLD_NAMESER)
    aclass = _getshort(cp);
    cp += sizeof(u_short);
#else
    NS_GET16(aclass, cp);
#endif

#if defined(__OpenBSD__) || defined(OLD_NAMESER)
    ttl = _getlong(cp);
    cp += sizeof(u_long);
#else
    NS_GET32(ttl, cp);
#endif

#if defined(__OpenBSD__) || defined(OLD_NAMESER)
    dlen = _getshort(cp);
    cp += sizeof(u_short);
#else
    NS_GET16(dlen, cp);
#endif

    if ( type != T_SRV ) {
      cp += dlen;
      continue;
    }

#if defined(__OpenBSD__) || defined(OLD_NAMESER)
    pref = _getshort(cp);
    cp += sizeof(u_short);
#else
    NS_GET16(pref, cp);
#endif

#if defined(__OpenBSD__) || defined(OLD_NAMESER)
    weight = _getshort(cp);
    cp += sizeof(u_short);
#else
    NS_GET16(weight, cp);
#endif

#if defined(__OpenBSD__) || defined(OLD_NAMESER)
    port = _getshort(cp);
    cp += sizeof(u_short);
#else
    NS_GET16(port, cp);
#endif


> Joel King
>
>
>
> _______________________________________________
> Partysip-dev mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/partysip-dev
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]