Wireshark-dev: [Wireshark-dev] wireshark-0.99.7 build stopped under HP-UX 11.11
From: "Falk Hayn" <falk.hayn@xxxxxx>
Date: Thu, 03 Jan 2008 13:37:17 +0100
Dear Ladies and Sirs,

the build of wireshark-0.99.7 stopped under HP-UX 11.11

Root cause:
~~~~~~~~~~~
Within privileges.c, the right API calls  will be selected 
<SNIP>
#ifdef HAVE_SETRESGID
                setresgid(rgid, rgid, rgid);
#else
                setgid(rgid);
                setegid(rgid);
#endif

#ifdef HAVE_SETRESUID
                setresuid(ruid, ruid, ruid);
#else
                setuid(ruid);
                seteuid(ruid);
#endif
        }
}
</SNIP>

but the macros HAVE_SETRESUID and HAVE_SETRESGID never were definend.

HP-UX need the old style API calls  setresgid and setresuid.


Workaround:
~~~~~~~~~~~
define the macros brute force at the end of privileges.h
<SNIP>

#define HAVE_SETRESGID
#define HAVE_SETRESUID

</SNIP>

--> build will complete
-- 
Do not hesitate to contact me if You have further questions.

With kind regards 
Falk Hayn

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer