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 B25FE9FA5E2 for ; Tue, 30 May 2006 11:54:20 -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 23761-09 for ; Tue, 30 May 2006 11:54:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from brightmail.arbitron.net (mail2.arbitron.com [198.40.3.191]) by postgresql.org (Postfix) with ESMTP id B53479FA5E6 for ; Tue, 30 May 2006 11:54:07 -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 k4UEs4mm025116; Tue, 30 May 2006 10:54:04 -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:54:04 -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_01C683F8.E4C99C42" Subject: Re: Problem building initdb on sparc10 Date: Tue, 30 May 2006 10:54:04 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Problem building initdb on sparc10 Thread-Index: AcaD6/f4E4dKDjlxTVqP0QQ7/2xp5AAAPm8QAADytPAAAau3MAAARWgA From: "Averbukh Stella" To: Cc: X-OriginalArrivalTime: 30 May 2006 14:54:04.0258 (UTC) FILETIME=[E4EE2C20:01C683F8] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/411 X-Sequence-Number: 21943 This is a multi-part message in MIME format. ------_=_NextPart_001_01C683F8.E4C99C42 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Andy, =20 I have no idea if it's Sparc specific. I usually do Java development and last time I did large c/c++ build on unix platform was a long time ago, so my skills in this area are a little bit rusty. =20 Stella. =20 _____ =20 From: Andy Shellam [mailto:andy.shellam@mailnetwork.co.uk]=20 Sent: Tuesday, May 30, 2006 10:45 AM To: Averbukh Stella Cc: pgsql-admin@postgresql.org Subject: RE: [ADMIN] Problem building initdb on sparc10 Hmm, I did the same on my system (Redhat Fedora 3) and only got the following required libraries: =20 linux-gate.so.1 =3D> (0xb7ff3000) libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0xb7fa2000) libresolv.so.2 =3D> /lib/libresolv.so.2 (0xb7f8e000) libnsl.so.1 =3D> /lib/libnsl.so.1 (0xb7f78000) libc.so.6 =3D> /lib/tls/libc.so.6 (0xb7e4d000) /lib/ld-linux.so.2 (0x00308000) =20 What's the libgcc_s library for? Is it something that's SPARC-specific? =20 _____ =20 From: Averbukh Stella [mailto:Stella.Averbukh@arbitron.com]=20 Sent: 30 May 2006 3:00 pm To: andy.shellam@mailnetwork.co.uk Cc: pgsql-admin@postgresql.org Subject: RE: [ADMIN] Problem building initdb on sparc10 =20 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 _____ =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 =20 ______________________________________________________________________ This e-mail has been scanned by Arbitron's Email Content Service.=20 ______________________________________________________________________ !DSPAM:14,447c500c34495121086930!=20 ______________________________________________________________________ This e-mail has been scanned by Arbitron's Email Content Service.=20 ______________________________________________________________________ ------_=_NextPart_001_01C683F8.E4C99C42 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Problem = building initdb on sparc10
Hi Andy,
 
I have no idea if it's Sparc specific.  I = usually do=20 Java development and last time I did large c/c++ build on unix platform = was a=20 long time ago, so my skills in this area are a little bit=20 rusty.
 
Stella.


 



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

Hmm, I did = the same on=20 my system (Redhat Fedora 3) and only got the following required=20 libraries:

 

       =20 linux-gate.so.1 =3D>  (0xb7ff3000)

       =20 libcrypt.so.1 =3D> /lib/libcrypt.so.1 = (0xb7fa2000)

       =20 libresolv.so.2 =3D> /lib/libresolv.so.2=20 (0xb7f8e000)

       =20 libnsl.so.1 =3D> /lib/libnsl.so.1 = (0xb7f78000)

       =20 libc.so.6 =3D> /lib/tls/libc.so.6 = (0xb7e4d000)

       =20 /lib/ld-linux.so.2 (0x00308000)

 

What’s = the libgcc_s=20 library for?  Is it something that’s=20 SPARC-specific?

 


From: Averbukh=20 Stella [mailto:Stella.Averbukh@arbitron.com]
Sent:
30 May 2006 3:00 = pm
To:=20 andy.shellam@mailnetwork.co.uk
Cc: pgsql-admin@postgresql.org
Subject: RE: [ADMIN] Problem = building=20 initdb on sparc10

 

Andy,

 

thank you very much for = the=20 idea.

 

I tried what you suggested = even=20 though -lgcc flag is usually used with -nostdlib and = -nodefaultlibs flags, which I do = not=20 use.  In any case it didn't help. =20

 

thahks=20 again.

Stella=20 Averbukh
_________________________________=20

 

 


From:=20 Andy Shellam=20 [mailto:andy.shellam@mailnetwork.co.uk]
Sent:
Tuesday, May 30, 2006 9:35=20 AM
To: Averbukh=20 Stella
Cc: = 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.

 


_______________________________________________________________= _______
This=20 e-mail has been scanned by Arbitron's Email Content Service.=20
_____________________________________________________________________= _
!DSPAM:14,447c500c34495121086930!=20


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