From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 29 Nov 2004 15:51:59 +0300 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20041129125159.GB31657@solemn.turbinal.org> Mail-Followup-To: ALT Devel discussion list References: <20041126212649.GI31657@solemn.turbinal.org> <20041129103509.1234a33e.const@altlinux.ru> <20041129110437.GZ31657@solemn.turbinal.org> <20041129162531.3e67e171.const@altlinux.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W7pZbPQLbZqmHLZM" Content-Disposition: inline In-Reply-To: <20041129162531.3e67e171.const@altlinux.ru> Subject: [devel] Re: slatec, fortran libraries, weak symbols X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 12:53:07 -0000 Archived-At: List-Archive: List-Post: --W7pZbPQLbZqmHLZM Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 29, 2004 at 04:25:31PM +0500, Constantin Mikhaylenko wrote: > =F0=CF=DE=C9=D4=C1=CC. =D0=CF=CE=D1=CC =D3=D7=CF=C0 =CF=DB=C9=C2=CB=D5. > =F0=CF=CA=CD=C1=CC =D7=C1=DB=D5. =EE=C1=C4=CF: > gcc -shared -o lib%name.so.%version -Wl,-soname=3Dlib%name.so.%version *.o >=20 > =E1 =C6=CF=D2=D4=D2=C1=CE =D0=D2=CF=D3=D4=CF =CE=C5 =D5=CD=C5=C5=D4 =C4= =C5=CC=C1=D4=D8 =C2=C9=C2=CC=C9=CF=D4=C5=CB=C9. =EE=C5 =D3=CF=D7=D3=C5=CD =D4=C1=CB. g77, =CB=C1=CB =C9 gcc -- =DC=D4=CF = =D0=D2=CF=D3=D4=CF =C9=CE=D4=C5=D2=C6=C5=CA=D3 =CB =CE=C1=D3=D4=CF=D1=DD=C5= =CD=D5 =D0=D2=C5=D0=D2=CF=C3=C5=D3=D3=CF=D2=D5, =CB=CF=CD=D0=C9=CC=D1=D4=CF=D2=D5,= =C1=D3=D3=C5=CD=C2=CC=C5=D2=D5, =CC=C9=CE=CB=C5=D2=D5 =C9 =D4.=C4. =F7 = =DC=D4=CF=CD =D3=CD=D9=D3=CC=C5 =C9 =F3=C9 =CE=C5 =D5=CD=C5=C5=D4 =C4=C5=CC=C1=D4=D8 =C2=C9=C2=CC=C9=CF=D4= =C5=CB=C9. $ strace -kqfF -e trace=3Dexecve -- g77 -c src/acosh.f execve("/usr/bin/g77", ["g77", "-c", "src/acosh.f"], [/* 49 vars */]) =3D 0 execve("/usr/bin/ccache", ["i586-alt-linux-g77", "-c", "src/acosh.f"], [/* = 49 vars */]) =3D 0 execve("/usr/bin/i586-alt-linux-g77", ["/usr/bin/i586-alt-linux-g77", "-c",= "src/acosh.f"], [/* 50 vars */]) =3D 0 [pid 23788] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 23788] execve("/usr/lib/gcc-lib/i586-alt-linux/3.3.3/f771", ["/usr/lib= /gcc-lib/i586-alt-linux/"..., "src/acosh.f", "-quiet", "-dumpbase", "acosh.= f", "-auxbase", "acosh", "-o", "/home/at/tmp/cco93o9G.s"], [/* 52 vars */])= =3D 0 --- SIGCHLD (Child exited) @ 0 (0) --- [pid 23789] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 23789] execve("/home/at/bin/as", ["as", "-Qy", "-o", "acosh.o", "/home= /at/tmp/cco93o9G.s"], [/* 52 vars */]) =3D -1 ENOENT (No such file or direc= tory) [pid 23789] execve("/bin/as", ["as", "-Qy", "-o", "acosh.o", "/home/at/tmp/= cco93o9G.s"], [/* 52 vars */]) =3D -1 ENOENT (No such file or directory) [pid 23789] execve("/usr/bin/as", ["as", "-Qy", "-o", "acosh.o", "/home/at/= tmp/cco93o9G.s"], [/* 52 vars */]) =3D 0 --- SIGCHLD (Child exited) @ 0 (0) --- $ =FA=C4=C5=D3=D8 =D7=C9=C4=CE=CF, =DE=D4=CF g77 =CE=C1 =D3=C1=CD=CF=CD =C4= =C5=CC=C5 =D7=D9=DA=D9=D7=C1=C5=D4 f771 (=CE=C1=D0=CF=C4=CF=C2=C9=C5 cc1) = =C9 /usr/bin/as. (=E1 =D4=C1=CB=D6=C5 =D7=C9=C4=CE=CF, =DE=D4=CF ccache =CE=C5 =D5=CD=C5=C5= =D4 =CB=DC=DB=C9=D2=CF=D7=C1=D4=D8 =C6=CF=D2=D4=D2=C1=CE). $ strace -kqfF -e trace=3Dexecve -- g77 -shared -o libacosh.so.4 -Wl,-sonam= e=3Dlibacosh.so.4 acosh.o execve("/usr/bin/g77", ["g77", "-shared", "-o", "libacosh.so.4", "-Wl,-sona= me=3Dlibacosh.so.4", "acosh.o"], [/* 49 vars */]) =3D 0 execve("/usr/bin/ccache", ["i586-alt-linux-g77", "-shared", "-o", "libacosh= .so.4", "-Wl,-soname=3Dlibacosh.so.4", "acosh.o"], [/* 49 vars */]) =3D 0 execve("/usr/bin/i586-alt-linux-g77", ["/usr/bin/i586-alt-linux-g77", "-sha= red", "-o", "libacosh.so.4", "-Wl,-soname=3Dlibacosh.so.4", "acosh.o"], [/*= 50 vars */]) =3D 0 [pid 23800] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 23800] execve("/usr/lib/gcc-lib/i586-alt-linux/3.3.3/collect2", ["/usr= /lib/gcc-lib/i586-alt-linux/"..., "--eh-frame-hdr", "-m", "elf_i386", "-sha= red", "-o", "libacosh.so.4", "/usr/lib/gcc-lib/i586-alt-linux/"..., "/usr/l= ib/gcc-lib/i586-alt-linux/"..., "-L/usr/lib/gcc-lib/i586-alt-linu"..., "-L/= usr/lib/gcc-lib/i586-alt-linu"..., "-soname=3Dlibacosh.so.4", "acosh.o", "-= lfrtbegin", "-lg2c", "-lm", ...], [/* 54 vars */]) =3D 0 [pid 23801] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 23801] execve("/usr/bin/ld", ["/usr/bin/ld", "--eh-frame-hdr", "-m", "= elf_i386", "-shared", "-o", "libacosh.so.4", "/usr/lib/gcc-lib/i586-alt-lin= ux/"..., "/usr/lib/gcc-lib/i586-alt-linux/"..., "-L/usr/lib/gcc-lib/i586-al= t-linu"..., "-L/usr/lib/gcc-lib/i586-alt-linu"..., "-soname=3Dlibacosh.so.4= ", "acosh.o", "-lfrtbegin", "-lg2c", "-lm", ...], [/* 55 vars */]) =3D 0 [pid 23800] --- SIGCHLD (Child exited) @ 0 (0) --- --- SIGCHLD (Child exited) @ 0 (0) --- $ =E1 =DA=C4=C5=D3=D8 =D7=C9=C4=CE=CF, =CB=C1=CB =CE=C1 =D3=C1=CD=CF=CD =C4= =C5=CC=C5 =D7=D9=DA=D9=D7=C1=C5=D4=D3=D1 /usr/bin/ld c =C1=D2=C7=D5=CD=C5= =CE=D4=CF=CD -soname. =E1 =D4=C1=CB=D6=C5 =D7=C9=C4=CE=CF, =DE=D4=CF g77 =C4=C1=C5=D4 =D5=CB=C1= =DA=C1=CE=C9=C5 =CC=C9=CE=CB=C5=D2=D5 =D0=CF=C4=C3=C5=D0=C9=D4=D8 =C2=C9=C2= =CC=C9=CF=D4=C5=CB=C9 -lfrtbegin =C9 -lg2c, =DE=C5=C7=CF =CE=C5 =D3=C4=C5=CC=C1=CC =C2=D9 gcc (= =D7 =D2=C5=DA=D5=CC=D8=D4=C1=D4=C5 =D0=CF=D1=D7=C9=CC=C9=D3=D8 =C2=D9 undefined symbols). =F0=CF =C1=CE=C1=CC=CF=C7=C9=C9 g++ -shared *.o =CE=C5= =D1=D7=CE=CF =CC=C9=CE=CB=D5=C5=D4 =D3 -lstdc++. > =EE=C5 =D4=CF, =DE=D4=CF=C2=D9 =C4=CF=CC=D6=C5=CE... > =D7 man ld =D3=CB=C1=DA=C1=CE=CF, =DE=D4=CF =DC=D4=CF _=CF=C2=CC=C5=C7=DE= =C1=C5=D4_ (=D7=C9=C4=C9=CD=CF =D3=CC=C5=C4=D5=C5=D4 =DE=C9=D4=C1=D4=D8 -- = =D5=D3=CB=CF=D2=D1=C5=D4) =D7=D9=DA=CF=D7 =C2=C9=C2=CC=C9=CF=D4=C5=CB=C9. >=20 > > > =E4=C1=D7=CE=CF =C8=CF=D4=C5=CC =D3=CF=C2=D2=C1=D4=D8 slatec. > > > =E5=D3=CC=C9 =D3=C9=CC=D8=CE=CF =CE=C5 =D7=CF=DA=D2=C1=D6=C1=C5=D4=C5= -- =CE=C1 =DC=D4=CF=CA =CE=C5=C4=C5=CC=C5 =D3=C4=C5=CC=C1=C0=20 > > > (=C2=CF=CC=C5=C5 =CD=C5=CE=C5=C5 =D3=D7=CF=C2=CF=C4=C5=CE). >=20 > =EE=C1=C4=CF =D0=CF=CE=C9=CD=C1=D4=D8 -- =D7=CF=DA=D2=C1=D6=C1=C5=D4=C5? = ;) =EE=C5=D4. =F3=C1=CD =D3=CF=CD=CE=C5=D7=C1=C0=D3=D8. =E9 =CE=C5=D0=CF=CE= =D1=D4=CE=CF =D0=CF=CB=C1, =DE=D4=CF =C4=C5=CC=C1=D4=D8 =D3 DGVEC =C9 =D0= =D2=CF=DE, #prgma weak =D0=CF=CB=C1 =CE=C5 =D0=CF=CD=CF=C7=C1=C5=D4. --W7pZbPQLbZqmHLZM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBqxtvfBKgtDjnu0YRArssAKC95Ilx++k/lcXtFRGIF5TQdZw5mQCgqPqc 71MO3imq2EJ0iuPUVEXISd0= =PDB3 -----END PGP SIGNATURE----- --W7pZbPQLbZqmHLZM--