pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql 7.2.2: problem compiling on Sol 8
4+ messages / 3 participants
[nested] [flat]

* pgsql 7.2.2: problem compiling on Sol 8
@ 2002-09-02 10:27  Richard Gillman <rgi@itss.nerc.ac.uk>
  0 siblings, 1 reply; 4+ messages in thread

From: Richard Gillman @ 2002-09-02 10:27 UTC (permalink / raw)
  To: pgsql-admin

I'm trying to compile PGSQL 7.2.2 to run with PHP and Apache on Solaris
8. The compilation appears to go OK, but, when I load Apache, I get

Syntax error on line 237 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1:
/usr/apache/bin/httpd: fatal: libgcc_s.so.1: open failed: No such file
or directory
/usr/apache/bin/apachectl start: httpd could not be started

I pinned this down to

ldd /usr/local/pgsql/lib/libpq.so.2
        libgcc_s.so.1 =>         (file not found)


I am using gcc 3.1.1, which is installed in a non-default location. My
command sequence is:

setenv LD_LIBRARY_PATH
/nerc/packages/gcc/3.1.1/lib:/nerc/packages/gcc/3.1.1/lib/sparcv9
setenv LDFLAGS "-L/nerc/packages/gcc/3.1.1/lib
-R/nerc/packages/gcc/3.1.1/lib"
configure --quiet --with-libraries=/nerc/packages/gcc/3.1.1/lib
--with-includes=/nerc/packages/gcc/3.1.1/lib
gmake

then, as root, gmake install

I see from browsing the email lists that this problem has been
encountered before, May 2001 was the earliest reference, but have not
been able to find a solution.

Can anybody help? Reply to me directly, I will summarise.

I also tried 7.1.3; this gave me

heaptuple.c:760: `MAXIMUM_ALIGNOF' undeclared (first use in this
function)
gmake[4]: *** [heaptuple.o] Error 1
gmake[4]: Leaving directory
`/local1/dick1/apache/postgresql-7.1.3/src/backend/access/common'
gmake[3]: *** [common-recursive] Error 2
gmake[3]: Leaving directory
`/local1/dick1/apache/postgresql-7.1.3/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory
`/local1/dick1/apache/postgresql-7.1.3/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/local1/dick1/apache/postgresql-7.1.3/src'
gmake: *** [all] Error 2

thanks in advance, Dick

-- 
Richard Gillman
iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB
Tel: 01491 - 692 339



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql 7.2.2: problem compiling on Sol 8
@ 2002-09-02 10:44  Richard Gillman <rgi@itss.nerc.ac.uk>
  0 siblings, 1 reply; 4+ messages in thread

From: Richard Gillman @ 2002-09-02 10:44 UTC (permalink / raw)
  To: pgsql-admin

I'm trying to compile PGSQL 7.2.2 to run with PHP and Apache on Solaris
8. The compilation appears to go OK, but, when I load Apache, I get

Syntax error on line 237 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1:
/usr/apache/bin/httpd: fatal: libgcc_s.so.1: open failed: No such file
or directory
/usr/apache/bin/apachectl start: httpd could not be started

I pinned this down to

ldd /usr/local/pgsql/lib/libpq.so.2
        libgcc_s.so.1 =>         (file not found)


I am using gcc 3.1.1, which is installed in a non-default location. My
command sequence is:

setenv LD_LIBRARY_PATH
/nerc/packages/gcc/3.1.1/lib:/nerc/packages/gcc/3.1.1/lib/sparcv9
setenv LDFLAGS "-L/nerc/packages/gcc/3.1.1/lib
-R/nerc/packages/gcc/3.1.1/lib"
configure --quiet --with-libraries=/nerc/packages/gcc/3.1.1/lib
--with-includes=/nerc/packages/gcc/3.1.1/lib
gmake

then, as root, gmake install

I see from browsing the email lists that this problem has been
encountered before, May 2001 was the earliest reference, but have not
been able to find a solution.

Can anybody help? Reply to me directly, I will summarise.

I also tried 7.1.3; this gave me

heaptuple.c:760: `MAXIMUM_ALIGNOF' undeclared (first use in this
function)
gmake[4]: *** [heaptuple.o] Error 1
gmake[4]: Leaving directory
`/local1/dick1/apache/postgresql-7.1.3/src/backend/access/common'
gmake[3]: *** [common-recursive] Error 2
gmake[3]: Leaving directory
`/local1/dick1/apache/postgresql-7.1.3/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory
`/local1/dick1/apache/postgresql-7.1.3/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/local1/dick1/apache/postgresql-7.1.3/src'
gmake: *** [all] Error 2

thanks in advance, Dick

-- 
Richard Gillman
iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB
Tel: 01491 - 692 339



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql 7.2.2: problem compiling on Sol 8
@ 2002-09-02 20:51  Randall Perry <rgp@systame.com>
  parent: Richard Gillman <rgi@itss.nerc.ac.uk>
  0 siblings, 0 replies; 4+ messages in thread

From: Randall Perry @ 2002-09-02 20:51 UTC (permalink / raw)
  To: Richard Gillman <rgi@itss.nerc.ac.uk>; +Cc: pgsql-admin

I've had some of the same problems with Pgsql 7.2. I managed to get around
some of them with help from Peter Kurpis of GCC list (search for previous
posts on the subject from me on this list).

But, I haven't been able to get createlang working. Think I might just wait
till 7.3 comes out.


> I'm trying to compile PGSQL 7.2.2 to run with PHP and Apache on Solaris
> 8. The compilation appears to go OK, but, when I load Apache, I get
> 
> Syntax error on line 237 of /etc/apache/httpd.conf:
> Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1:
> /usr/apache/bin/httpd: fatal: libgcc_s.so.1: open failed: No such file
> or directory
> /usr/apache/bin/apachectl start: httpd could not be started
> 
> I pinned this down to
> 
> ldd /usr/local/pgsql/lib/libpq.so.2
>       libgcc_s.so.1 =>         (file not found)
> 
> 
> I am using gcc 3.1.1, which is installed in a non-default location. My
> command sequence is:
> 
> setenv LD_LIBRARY_PATH
> /nerc/packages/gcc/3.1.1/lib:/nerc/packages/gcc/3.1.1/lib/sparcv9
> setenv LDFLAGS "-L/nerc/packages/gcc/3.1.1/lib
> -R/nerc/packages/gcc/3.1.1/lib"
> configure --quiet --with-libraries=/nerc/packages/gcc/3.1.1/lib
> --with-includes=/nerc/packages/gcc/3.1.1/lib
> gmake
> 
> then, as root, gmake install
> 
> I see from browsing the email lists that this problem has been
> encountered before, May 2001 was the earliest reference, but have not
> been able to find a solution.
> 
> Can anybody help? Reply to me directly, I will summarise.
> 
> I also tried 7.1.3; this gave me
> 
> heaptuple.c:760: `MAXIMUM_ALIGNOF' undeclared (first use in this
> function)
> gmake[4]: *** [heaptuple.o] Error 1
> gmake[4]: Leaving directory
> `/local1/dick1/apache/postgresql-7.1.3/src/backend/access/common'
> gmake[3]: *** [common-recursive] Error 2
> gmake[3]: Leaving directory
> `/local1/dick1/apache/postgresql-7.1.3/src/backend/access'
> gmake[2]: *** [access-recursive] Error 2
> gmake[2]: Leaving directory
> `/local1/dick1/apache/postgresql-7.1.3/src/backend'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/local1/dick1/apache/postgresql-7.1.3/src'
> gmake: *** [all] Error 2
> 
> thanks in advance, Dick

-- 
Randy Perry
sysTame
Mac Consulting/Sales

http://www.systame.com/





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql 7.2.2: problem compiling on Sol 8
@ 2002-09-04 16:30  Andrew Sullivan <andrew@libertyrms.info>
  parent: Richard Gillman <rgi@itss.nerc.ac.uk>
  0 siblings, 0 replies; 4+ messages in thread

From: Andrew Sullivan @ 2002-09-04 16:30 UTC (permalink / raw)
  To: pgsql-admin

On Mon, Sep 02, 2002 at 11:27:02AM +0100, Richard Gillman wrote:

> /usr/apache/bin/httpd: fatal: libgcc_s.so.1: open failed: No such file
> or directory
> /usr/apache/bin/apachectl start: httpd could not be started
> 
> I pinned this down to
> 
> ldd /usr/local/pgsql/lib/libpq.so.2
>         libgcc_s.so.1 =>         (file not found)
> 
> 
> I am using gcc 3.1.1, which is installed in a non-default location. My
> command sequence is:

You need to add libgcc_s.so to your LD_LIBRARY_PATH somehow.

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2002-09-04 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-02 10:27 pgsql 7.2.2: problem compiling on Sol 8 Richard Gillman <rgi@itss.nerc.ac.uk>
2002-09-04 16:30 ` Andrew Sullivan <andrew@libertyrms.info>
2002-09-02 10:44 pgsql 7.2.2: problem compiling on Sol 8 Richard Gillman <rgi@itss.nerc.ac.uk>
2002-09-02 20:51 ` Randall Perry <rgp@systame.com>

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