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 D946E9FA5E6 for ; Tue, 30 May 2006 11:00:29 -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 12571-03 for ; Tue, 30 May 2006 11:00:17 -0300 (ADT) X-Greylist: delayed 00:38:39.109252 by SQLgrey- Received: from brightmail.arbitron.net (mail2.arbitron.com [198.40.3.191]) by postgresql.org (Postfix) with ESMTP id 551439FA5FB for ; Tue, 30 May 2006 11:00:14 -0300 (ADT) Received: from arbex2kb.arbitron.com (internal.arbitron.com [198.40.3.64]) by brightmail.arbitron.net (8.12.10/8.12.5) with ESMTP id k4UE0Bmm023086; Tue, 30 May 2006 10:00:11 -0400 Received: from ARBEX2KC.arbitron.com ([10.10.200.210]) by arbex2kb.arbitron.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 30 May 2006 10:00:10 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C683F1.5D8AF755" Subject: Re: Problem building initdb on sparc10 Date: Tue, 30 May 2006 10:00:10 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Problem building initdb on sparc10 Thread-Index: AcaD6/f4E4dKDjlxTVqP0QQ7/2xp5AAAPm8QAADytPA= From: "Averbukh Stella" To: Cc: X-OriginalArrivalTime: 30 May 2006 14:00:10.0956 (UTC) FILETIME=[5DBB70C0:01C683F1] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/405 X-Sequence-Number: 21937 This is a multi-part message in MIME format. ------_=_NextPart_001_01C683F1.5D8AF755 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Andy, =20 thank you very much for the idea. =20 I tried what you suggested even though -lgcc flag is usually used with -nostdlib and -nodefaultlibs flags, which I do not use. In any case it didn't help. =20 =20 thahks again. Stella Averbukh=20 _________________________________=20 =20 _____ =20 From: Andy Shellam [mailto:andy.shellam@mailnetwork.co.uk]=20 Sent: Tuesday, May 30, 2006 9:35 AM To: Averbukh Stella Cc: pgsql-admin@postgresql.org Subject: RE: [ADMIN] Problem building initdb on sparc10 Should you need to add -lgcc to the linker path? (e.g. -L/usr/lib -lgcc) or -lgcc_s? =20 I had a similar thing with readline. Just a guess! =20 Andy =20 _____ =20 From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Averbukh Stella Sent: 30 May 2006 2:22 pm To: pgsql-admin@postgresql.org Subject: [ADMIN] Problem building initdb on sparc10 =20 Hello,=20 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=20 I ran ldd on libpq.so ldd interfaces/libpq/libpq.so libresolv.so.2 =3D> /lib/libresolv.so.2 libsocket.so.1 =3D> /lib/libsocket.so.1 libnsl.so.1 =3D> /lib/libnsl.so.1 libgcc_s.so.1 =3D> (file not found) libc.so.1 =3D> /lib/libc.so.1 libmp.so.2 =3D> /lib/libmp.so.2 libmd5.so.1 =3D> /lib/libmd5.so.1 libscf.so.1 =3D> /lib/libscf.so.1 libdoor.so.1 =3D> /lib/libdoor.so.1 libuutil.so.1 =3D> /lib/libuutil.so.1 libm.so.2 =3D> /lib/libm.so.2 /platform/SUNW,Ultra-60/lib/libc_psr.so.1 /platform/SUNW,Ultra-60/lib/libmd5_psr.so.1=20 If you notice libgcc_s.so.1 was not found. But I found it using find (see bellow)=20 # 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=20 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?=20 Thank you all.=20 =20 Stella Averbukh=20 _________________________________=20 Senior Software Lead, Arbitron Inc.=20 !DSPAM:14,447c473434492073859513!=20 ______________________________________________________________________ This e-mail has been scanned by Arbitron's Email Content Service.=20 ______________________________________________________________________ ------_=_NextPart_001_01C683F1.5D8AF755 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Problem = building initdb on sparc10
Andy,
 
thank you very much for the = idea.
 
I = tried what you=20 suggested even though -lgcc flag is usually used with -nostdlib and -nodefaultlibs=20 flags, which I do not use.  In any case it didn't help. =20
 
thahks=20 again.

Stella=20 Averbukh
_________________________________

 


From: Andy Shellam=20 [mailto:andy.shellam@mailnetwork.co.uk]
Sent: Tuesday, May = 30, 2006=20 9:35 AM
To: Averbukh Stella
Cc:=20 pgsql-admin@postgresql.org
Subject: RE: [ADMIN] Problem = building=20 initdb on sparc10

Should you = need to add=20 –lgcc to the linker path?  (e.g. –L/usr/lib = –lgcc) or=20 –lgcc_s?

 

I had a = similar thing=20 with readline.  Just a guess!

 

Andy

 


From:=20 pgsql-admin-owner@postgresql.org = [mailto:pgsql-admin-owner@postgresql.org]=20 On Behalf Of Averbukh=20 Stella
Sent: 30 May = 2006 2:22=20 pm
To: = pgsql-admin@postgresql.org
Subject:
[ADMIN] Problem building = initdb on=20 sparc10

 

Hello, =

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

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

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

# find / = -name=20 "libgcc_s.so.1"
/usr/sfw/lib/sparcv9/libgcc_s.so.1
/usr/sfw/lib/lib= gcc_s.so.1
/usr/local/lib/sparcv9/libgcc_s.so.1
/usr/local/lib/libg= cc_s.so.1
=20

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

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

Thank you = all.=20

 

Stella=20 Averbukh
_________________________________=20
Senior = Software Lead,=20 Arbitron Inc.



!DSPAM:14,447c473434492073859513!=20


____________________________= __________________________________________
This=20 e-mail has been scanned by Arbitron's Email Content Service.=20
_____________________________________________________________________= _
------_=_NextPart_001_01C683F1.5D8AF755--