Wireshark-bugs: [Wireshark-bugs] [Bug 2163] New: build of wireshark-0.99.7 stopped under HP-UX 1

Date: Fri, 4 Jan 2008 07:21:16 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2163

           Summary: build of wireshark-0.99.7 stopped under HP-UX 11.11
           Product: Wireshark
           Version: 0.99.7
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: Major
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: falk.hayn@xxxxxx


Build Information:
HP-UX 11.11
Wireshark 0.99.7
epan/privileges.c
epan/privileges.h

The macros HAVE_SETRESUID and HAVE_SETRESGID never were definend.
*AND*
HP-UX need the old style API calls  setresgid and setresuid.
--
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

Bug has been opened as requested by Stephen Fisher


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.