pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Averbukh Stella <Stella.Averbukh@arbitron.com>
To: pgsql-admin@postgresql.org
Subject: Problem building initdb on sparc10
Date: Tue, 30 May 2006 09:21:32 -0400
Message-ID: <C9995BA6EBD30240A86235B6FCCF5A6807639490@ARBEX2KC.arbitron.com> (raw)

Hello, 

I'm building postgresQL on Sparc10 and the build goes fine unil initdb.


/usr/local/bin/gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Winline -Wendif-labels -fno-strict-aliasing initdb.o
-L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq
-L../../../src/port -Wl,-R/postgres/lib -L/lib -L/usr/lib
-L/usr/local/lib -L/usr/local/ssl/lib -L/platform/SUNW,Ultra-60/lib
-L/usr/sfw/lib/sparcv9 -L/usr/sfw/lib/ -L/usr/local/lib/sparcv9 -lpgport
-lz -lrt -lresolv -lgen -lsocket -lnsl -ldl -lm -o initdb
Undefined first referenced
symbol in file
sigmask ../../../src/interfaces/libpq/libpq.so
sigblock ../../../src/interfaces/libpq/libpq.so
ld: fatal: Symbol referencing errors. No output written to initdb
collect2: ld returned 1 exit status
gmake[2]: *** [initdb] Error 1
gmake[2]: Leaving directory
`/export/home/usaver/postgres/postgresql-8.1.3/src/bin/initdb'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/export/home/usaver/postgres/postgresql-8.1.3/src/bin'
gmake: *** [all] Error 2

I ran ldd on libpq.so ldd interfaces/libpq/libpq.so
libresolv.so.2 => /lib/libresolv.so.2
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libgcc_s.so.1 => (file not found)
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Ultra-60/lib/libc_psr.so.1
/platform/SUNW,Ultra-60/lib/libmd5_psr.so.1 
If you notice libgcc_s.so.1 was not found. But I found it using find
(see bellow) 

# find / -name "libgcc_s.so.1"
/usr/sfw/lib/sparcv9/libgcc_s.so.1
/usr/sfw/lib/libgcc_s.so.1
/usr/local/lib/sparcv9/libgcc_s.so.1
/usr/local/lib/libgcc_s.so.1

I added all librararies directories to Makefile. See compilation line
bellow. Unfortunately, something is not linking. I searched internet for
the similar problem on Sparc and could not find anything.

Did anybody see this error before and can suggest me a way to fix it?

Thank you all.


Stella Averbukh
_________________________________
Senior Software Lead, Arbitron Inc.

view thread (13+ messages)  latest in thread

Message-ID: <C9995BA6EBD30240A86235B6FCCF5A6807639490@ARBEX2KC.arbitron.com>
Permalink:  ../C9995BA6EBD30240A86235B6FCCF5A6807639490@ARBEX2KC.arbitron.com/
Also on:    postgresql.org/message-id/C9995BA6EBD30240A86235B6FCCF5A6807639490@ARBEX2KC.arbitron.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Stella.Averbukh@arbitron.com
  Subject: Re: Problem building initdb on sparc10
  In-Reply-To: <C9995BA6EBD30240A86235B6FCCF5A6807639490@ARBEX2KC.arbitron.com>
  References: <C9995BA6EBD30240A86235B6FCCF5A6807639490@ARBEX2KC.arbitron.com>

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

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