Subject: Help compiling Pine w/Solaris 2.4 and SunPro compiler

From: [email-masked] (Paul Lemman)
Date: 20 Jul 1995 00:37:45 GMT

Can anyone offer any pointers on compiling Pine 3.91 on Solaris 2.4 with either
the SunPro or Gnu compilers?  Both break when trying to compile the address
book code.

Making Pine.
/opt1/SUNWspro/bin/cc -DSV4 -O  -g -DDEBUG -DSYSTYPE=\"SOL\"   -c addrbook.c -o addrbook.o
"/usr/include/stdlib.h", line 141: identifier redeclared: getopt
	   current : function(int, pointer to pointer to char, pointer to char) returning int
	   previous: function(int, pointer to const pointer to char, pointer to const char) returning int : "/usr/include/stdio.h", li3
"/usr/include/stdlib.h", line 142: identifier redeclared: getsubopt
	current : function(pointer to pointer to char, pointer to pointer to char, pointer to pointer to char) returning int
	previous: function(pointer to pointer to char, pointer to const pointer to char, pointer to pointer to char) returning int 5
"/usr/include/unistd.h", line 225: identifier redeclared: rename
	current : function(pointer to char, pointer to char) returning int
	previous: function(pointer to const char, pointer to const char) returning int : "/usr/include/stdio.h", line 148
"addrbook.c", line 3954: cannot recover from previous errors
cc: acomp failed for addrbook.c
make: *** [addrbook.o] Error 2
-- 
Paul Lemman                             Internet:  [email-masked]
Network Analyst                            Phone:  (503) 494-4537
Network Technical Services               US Mail:  840 SW Gaines Rd   GH113
Oregon Health Sciences University                  Portland, OR  97201-2985

---

From: Ed Greshko <[email-masked]>
Date: Fri, 21 Jul 1995 19:04:14 +0800 (GMT)

> make: *** [addrbook.o] Error 2

	In your makefile.sol add -Dconst= to the CFLAGS.  Also, insure
that you don't have /usr/ucb/lib in your LD_LIBRARY_PATH.

					Ed

Edward M. Greshko                       Technical Manager, Electronic Commerce
                                        Control Data Asia/Pacific Region
Voice: +886-2-715-2222 x287             6/F, 131 Nanking East Road, Section 3
FAX  : +886-2-712-9197                  Taipei, Taiwan R.O.C