Subject: Re: Anyone build pine3.91 for UnixWare yet?

From: [email-masked] (Michael J. Diehn (mike))
Date: 2 Nov 1994 01:06:00 GMT

Following up on my own post with more info...

Michael J. Diehn (mike) ([email-masked]) wrote:
: I'm running UnixWare 1.1.2. Has anyone built pine3.91 from source
: on a UnixWare box yet?

I tried to build pine using the command "build sv4"
The pico, imapd and mtest parts were built, but the make died during the
pine build with the following error message.

	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"SV4\" -c addrbook.c
"/usr/include/stdlib.h", line 71: identifier redeclared: system
"/usr/include/unistd.h", line 169: identifier redeclared: rename
"addrbook.c", line 7465: warning: semantics of ">" change in ANSI C; use explicit cast
*** Error code 1 (bu21)

make: fatal error.

Does anyone know how to modify the sv4 makefile for use with unixware?

Again,
: Thanks folks,
: Michael Diehn
: [email-masked]

---

From: [email-masked] (Michael J. Diehn (mike))
Date: 2 Nov 1994 00:07:55 GMT

I'm running UnixWare 1.1.2. Has anyone built pine3.91 from source
on a UnixWare box yet?

Thanks folks,
Michael Diehn
[email-masked]

---

From: [email-masked]. (Kevin MacRae)
Date: 2 Nov 1994 22:03:29 GMT

In article <[email-masked]>, [email-masked] (Michael J. Diehn (mike)) writes:
|> 
|> Following up on my own post with more info...
|> 
|> Michael J. Diehn (mike) ([email-masked]) wrote:
|> : I'm running UnixWare 1.1.2. Has anyone built pine3.91 from source
|> : on a UnixWare box yet?
|> 
|> I tried to build pine using the command "build sv4"
|> The pico, imapd and mtest parts were built, but the make died during the
|> pine build with the following error message.
|> 
|> 	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"SV4\" -c addrbook.c
|> "/usr/include/stdlib.h", line 71: identifier redeclared: system
|> "/usr/include/unistd.h", line 169: identifier redeclared: rename

I had the same problem. It stems from including stdio.h
fix
edit /usr/include/stdlib.h
BEFORE the line
     extern int system(con char *);
type 
     #if !defined(_STDIO_H)
then after the extern int system.... line
type
     #endif
Repeat for unistd.h except find the line rename

Novell, 

Is this a bug in the header?

|> "addrbook.c", line 7465: warning: semantics of ">" change in ANSI C; use explicit cast
|> *** Error code 1 (bu21)
|> 
|> make: fatal error.
|> 
|> Does anyone know how to modify the sv4 makefile for use with unixware?
|> 
|> Again,
|> : Thanks folks,
|> : Michael Diehn
|> : [email-masked]

-- 
*******************************************************************************
* Kevin MacRae                                    Phone    (902) 566-3198     *
* Owner/Operator                                  FAX      (902) 566-3423     *
* K & R Management                                Internet [email-masked] *
*******************************************************************************

---

From: [email-masked] (J. A. Lind)
Date: 3 Nov 1994 21:41:47 GMT

Kevin MacRae ([email-masked]) wrote:
: In article <[email-masked]>, [email-masked] (Michael J. Diehn (mike)) writes:
: |> 

<<< SNIP >>>

: |> 
: |> 	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"SV4\" -c addrbook.c
: |> "/usr/include/stdlib.h", line 71: identifier redeclared: system
: |> "/usr/include/unistd.h", line 169: identifier redeclared: rename

: I had the same problem. It stems from including stdio.h
: fix
: edit /usr/include/stdlib.h
: BEFORE the line
:      extern int system(con char *);
: type 
:      #if !defined(_STDIO_H)
: then after the extern int system.... line
: type
:      #endif
: Repeat for unistd.h except find the line rename

: Novell, 

: Is this a bug in the header?

No, its not a bug in the header and your fix is incorrect.  The problem is
not that stdio.h and stdlib.h both have a (compatible) declaration for
system(), but that if ANSI is not defined, one of Pine's headers has
an incompatible declaration of system().  See the other postings on
this today, or a posting I made in response to someone else about pine
a week or two ago.

Jeff Lind
Novell, Inc.  UNIX Systems Group
[email-masked]