#449 closed defect (fixed)

[get|set][e][g|u]id part of posix

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: highest Milestone: 2
Component: score Version: 4.6
Severity: critical Keywords:
Cc: bugs@…, ralf.corsepius@… Blocked By:
Blocking:

Description

The new samples/tests/filio test (CVS trunk) reveils a massive general problem in RTEMS:

gmake[3]: Entering directory `/users/rtems/src/rtems-cvs/build/master/powerpc-rtems/c/ppcn_60x/tests/samples/fileio'
../../../../../ppcn_60x/lib/librtemscpu.a(shell.o): In function `shell_login':
/users/rtems/src/rtems-cvs/build/master/powerpc-rtems/c/ppcn_60x/exec/libmisc/shell/../../../../../../../../rtems.master/cpukit/libmisc/shell/shell.c:388: undefined reference to `setuid'
/users/rtems/src/rtems-cvs/build/master/powerpc-rtems/c/ppcn_60x/exec/libmisc/shell/../../../../../../../../rtems.master/cpukit/libmisc/shell/shell.c:389: undefined reference to `setgid'
/users/rtems/src/rtems-cvs/build/master/powerpc-rtems/c/ppcn_60x/exec/libmisc/shell/../../../../../../../../rtems.master/cpukit/libmisc/shell/shell.c:486: undefined reference to `setuid'
/users/rtems/src/rtems-cvs/build/master/powerpc-rtems/c/ppcn_60x/exec/libmisc/shell/../../../../../../../../rtems.master/cpukit/libmisc/shell/shell.c:487: undefined reference to `setgid'
...
[further undefined references to get*id]

The cause of this problem is RTEMS having set|get*id implemented as part of cpukit/posix.
Furthermore, newlib provides definitions for these functions unconditionally.

Release:
RTEMS-CVS + RTEMS-4.6 (?)

How-To-Repeat:
Configure rtems with POSIX disabled (--disable-posix).

Change History (2)

comment:1 Changed on Aug 18, 2003 at 6:39:08 AM by Ralf Corsepius

Status: assignedsuspended

comment:2 Changed on Aug 20, 2003 at 4:24:10 AM by Ralf Corsepius

Status: suspendedclosed

State-Changed-From-To: suspended->closed
State-Changed-Why: patches applied to 4.6.

Note: See TracTickets for help on using tickets.