agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Nicholas Hudson <N.Hudson@janus.cat.csiro.au>
To: postgres@postgres.Berkeley.EDU
Subject: compiling postgres for solaris 2.4
Date: Wed, 19 Jul 1995 10:28:18 +1000
Message-ID: <199507190030.AA26208@janus.cat.csiro.au> (raw)

Hi 

	I am trying to compile postgres for solaris 2.4, but I'm having some problems.

1. using either solcc / gcc or Sun pro cc  to compile I am getting an error 
compiling .../src/bin/fsutils/pls/ls.c

  /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.0/include/stdlib.h:153: 
conflicting types for `getopt'
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.0/include/stdio.h:288: 
previous declaration of `getopt'
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.0/include/stdlib.h:154: 
conflicting types for `getsubopt'
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.0/include/stdio.h:290: 
previous declaration of `getsubopt'
  *** Error code 1

I also get the same type of error under Sun Pro.
I've looked at the stdio and stdlib and I under stand why, I've even worked 
away around ( ie. using the -Xs for ls.c only ) flag. The problem is I get 
alot of warnings and when I run initdb I get the following error

  Failed Assertion("!(((char) (UserId != 0)))Segmentation Fault - core dumped
  initdb: could not create template database
  initdb: cleaning up.

Am I doing something wrong / missing something. I would be interested to here 
from any one who as already done this little exercise.


Many thanks 
Nicholas Hudson


 CSIRO dEM QCAT
 Computer Support
 N.Hudson@dem.csiro.au 
 Phone: +61 7 212 4604


==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: N.Hudson@janus.cat.csiro.au
  Subject: Re: compiling postgres for solaris 2.4
  In-Reply-To: <199507190030.AA26208@janus.cat.csiro.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox