scsh-users
[Top] [All Lists]

Problem building on SunOS 4.1.x

To: scsh-bugs@martigny.ai.mit.edu
Subject: Problem building on SunOS 4.1.x
From: Franklin Chen <chen@adi.com>
Date: Fri, 1 Nov 96 16:33:53 EST
gcc -c -I./cig -I./scsh/regexp -DHAVE_CONFIG_H -I. -I. -g -O -o scsh/syscalls.o 
scsh/syscalls.c
scsh/syscalls.c: In function `df_setgid':
scsh/syscalls.c:143: conflicting types for `setgid'
scsh/syscalls.c:143: An argument type that has a default promotion
scsh/syscalls.c:143: can't match an empty parameter name list declaration.
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.2/include/unistd.h:112: 
previous declaration of `setgid'
scsh/syscalls.c: In function `df_setuid':
scsh/syscalls.c:205: conflicting types for `setuid'
scsh/syscalls.c:205: An argument type that has a default promotion
scsh/syscalls.c:205: can't match an empty parameter name list declaration.
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.2/include/unistd.h:115: 
previous declaration of `setuid'

This is because the explicit externs in scsh/syscalls.c conflict with
the old-style declarations in unistd.h, e.g.,

extern int      setgid(/* gid_t gid */);

Either the externs should not be generated, or configure should force
use of an ANSI unistd.h in the case of SunOS.

-- 
Franklin Chen                     | chen@adi.com, http://www.adi.com/~chen/
Applied Dynamics International    | http://www.adi.com/
3800 Stone School Road            | Phone: (313) 973-1300
Ann Arbor, MI 48108-2499          | FAX: (313) 668-0012

<Prev in Thread] Current Thread [Next in Thread>
  • Problem building on SunOS 4.1.x, Franklin Chen <=