Bug #5521 Compile failure: Declaration of 'seteuid()' and 'setegid()' missing
Submitted: 10 Sep 2004 21:12 Modified: 13 Sep 2004 21:34
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1.5 OS:several Unix
Assigned to: Joerg Bruehe CPU Architecture:Any

[10 Sep 2004 21:12] Joerg Bruehe
Description:
In module 'mysqld.cc', the functions 'setuid()' and 'setegid()' are called.

On (at least) the build machines "aix43" (IBM AIX, IBM xlC_r compiler), "uw713" (Unixware 7.1.3, system's CC compiler), and 'osr507' (SCO System V, GNU g++ compiler), the respective header files in which these functions are declared, are missing.

This causes the build to fail.

How to repeat:
Try a build on these platforms.
[13 Sep 2004 21:34] Joerg Bruehe
Functions 'sete_id(__)' replaced by 'setre_id(-1,__)' as these prototypes are provided in 'unistd.h'.