X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D497D9FA326 for ; Sat, 3 Jun 2006 14:00:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 82644-04 for ; Sat, 3 Jun 2006 13:59:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by postgresql.org (Postfix) with ESMTP id 4460F9F9398 for ; Sat, 3 Jun 2006 13:59:59 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id d42so976878pyd for ; Sat, 03 Jun 2006 09:59:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=P2MptoSV1rDJUxpDoYBV8JZyq7QxU3ETPmybnTeOevcczABulX6r672PeWTUcmbMER1ofsDivOXnKrHxMqOQULa4WSTGhoAUwVRRX/SL7cMTL8mNk0ts6GN2rBAwB8xCpQR5SEmNWRMDiBvHtkhrmO/kKTmHHpinzhnW7lr2orM= Received: by 10.35.123.2 with SMTP id a2mr3977535pyn; Sat, 03 Jun 2006 09:59:58 -0700 (PDT) Received: by 10.35.78.16 with HTTP; Sat, 3 Jun 2006 09:59:58 -0700 (PDT) Message-ID: Date: Sat, 3 Jun 2006 22:29:58 +0530 From: "Ganesh Chaudhari" To: "Averbukh Stella" Subject: Re: Problem building initdb on sparc10 Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21833_13672283.1149353998177" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/9 X-Sequence-Number: 21971 ------=_Part_21833_13672283.1149353998177 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I encountered similar problem but not sure what I did to make it work. I would say check makefile properly, may be you missed to put at someother place too where its needed. Also export LD library path before starting the build with all path. LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/sfw/lib export LD_LIBRARY_PATH Thanks Ganesh On 5/30/06, Averbukh Stella wrote: > > 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. > > > ------=_Part_21833_13672283.1149353998177 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I encountered similar problem but not sure what I did to make it work. I would say check makefile properly, may be you missed to put at someother place too where its needed. Also export LD library path before starting the build with all path.

LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/sfw/lib
export LD_LIBRARY_PATH

Thanks
Ganesh

On 5/30/06, Averbukh Stella <Stella.Averbukh@arbitron.com> wrote:

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.




------=_Part_21833_13672283.1149353998177--