Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

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

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: bugzilla-daemon@xxxxxxxxxxxxx
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.

  • Prev by Date: [Wireshark-bugs] [Bug 2162] for() loop evaluation order in ep_strndup() can trigger valgrind "invalid read of size 1"
  • Next by Date: [Wireshark-bugs] [Bug 2162] for() loop evaluation order in ep_strndup() can trigger valgrind "invalid read of size 1"
  • Previous by thread: [Wireshark-bugs] [Bug 2162] for() loop evaluation order in ep_strndup() can trigger valgrind "invalid read of size 1"
  • Next by thread: [Wireshark-bugs] [Bug 2164] New: Packet dissector showing bogus errors in jabber packets
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation