From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 12 Dec 2011 18:57:10 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20111212145709.GE24413@altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20111212134733.GB24413@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IU5/I01NYhRvwH70" Content-Disposition: inline In-Reply-To: <20111212134733.GB24413@altlinux.org> Subject: Re: [devel] I: illegal RPATH: paths to standard libraries X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 14:57:10 -0000 Archived-At: List-Archive: List-Post: --IU5/I01NYhRvwH70 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Dec 12, 2011 at 05:47:33PM +0400, Dmitry V. Levin wrote: > =E1=CE=C1=CC=C9=DA =CC=CF=C7=CF=D7 =D4=C5=D3=D4=CF=D7=CF=CA =D0=C5=D2=C5= =D3=C2=CF=D2=CB=C9 =D0=CF=CB=C1=DA=D9=D7=C1=C5=D4, =DE=D4=CF =D7 Sisyphus-x= 86_64 =CF=DE=C5=CE=D8 =CD=CE=CF=C7=CF > =D0=C1=CB=C5=D4=CF=D7 =D3 =CF=DB=C9=C2=CF=DE=CE=D9=CD=C9 =C9/=C9=CC=C9 = =CE=C5=CB=CF=D2=D2=C5=CB=D4=CE=D9=CD=C9 RPATH. [...] > - =D0=D5=D4=C9 =CB =D3=D4=C1=CE=C4=C1=D2=D4=CE=D9=CD =C2=C9=C2=CC=C9=CF= =D4=C5=CB=C1=CD (/lib, lib64, /usr/lib, /usr/lib64) =F0=D5=D4=C9 =CB =D3=D4=C1=CE=C4=C1=D2=D4=CE=D9=CD =C2=C9=C2=CC=C9=CF=D4=C5= =CB=C1=CD =D7 RPATH - =DC=D4=CF =D0=CC=CF=C8=CF. =F7=CF=D4 =CB=C1=CB =DC=D4=CF =D7=D9=C7=CC=D1=C4=C9=D4 =CE=C1 =D0=D2=CF=D3= =D4=CF=CD =D0=D2=C9=CD=C5=D2=C5. =EF=C2=D9=DE=CE=C1=D1 =D0=D2=CF=D3=D4=C1=D1 =D0=D2=CF=C7=D2=C1=CD=CD=C1 =C2= =C5=DA RPATH: $ echo 'int main(void){return 0;}' |gcc -xc - -O2 -Wall -o a.out && strace = -eopen ./a.out open("/etc/ld.so.cache", O_RDONLY) =3D 3 open("/lib64/libc.so.6", O_RDONLY) =3D 3 +++ exited with 0 +++ =F4=C1 =D6=C5 =D3=C1=CD=C1=D1 =D0=D2=CF=C7=D2=C1=CD=CD=C1, =CE=CF =D3 RPATH= , =D3=CF=C4=C5=D2=D6=C1=DD=C9=CD /usr/lib64: $ echo 'int main(void){return 0;}' |gcc -xc - -O2 -Wall -o a.out -Wl,-rpath= ,/usr/lib64 && strace -eopen ./a.out open("/usr/lib64/tls/x86_64/libc.so.6", O_RDONLY) =3D -1 ENOENT (No such fi= le or directory) open("/usr/lib64/tls/libc.so.6", O_RDONLY) =3D -1 ENOENT (No such file or d= irectory) open("/usr/lib64/x86_64/libc.so.6", O_RDONLY) =3D -1 ENOENT (No such file o= r directory) open("/usr/lib64/libc.so.6", O_RDONLY) =3D -1 ENOENT (No such file or dire= ctory) open("/etc/ld.so.cache", O_RDONLY) =3D 3 open("/lib64/libc.so.6", O_RDONLY) =3D 3 +++ exited with 0 +++ =EB=C1=CB =D7=C9=C4=CE=CF, =CE=C1=CC=C9=DE=C9=C5 =D0=D5=D4=C9 =CB =D3=D4=C1= =CE=C4=C1=D2=D4=CE=D9=CD =C2=C9=C2=CC=C9=CF=D4=C5=CB=C1=CD =D7 RPATH =D0=D2= =C9=D7=CF=C4=C9=D4 =CB =D4=CF=CD=D5, =DE=D4=CF ld.so =D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D4=D1=CD=C9 =CB =D3=D4=C1=CE=C4=C1=D2=D4=CE=D9=CD =C2=C9=C2=CC= =C9=CF=D4=C5=CB=C1=CD =D7 RPATH =CE=C1 x86-64, =D7 =C6=CF=D2=CD=C1=D4=C5 ACL: ORBit @nobody Wcalc gab @everybody Xdmf real @everybody a2ps george @everybody adolc real @qa @everybody aiksaurus lav @qa aqbanking cas arpack real @qa @everybody aspell damir audiofile real @everybody aview kurakin @everybody babel real sin @python @qa @everybody bb mike @qa bind ldv bogofilter oddity bs2b drool btanks oddity dans c-ares force @everybody cegui vitty cfengine stanv @everybody cherokee force @everybody chicken voins oddity cilk real @qa @everybody clamav asy force cvtool force @everybody cyrus-sasl2 vvk @everybody dakota real @everybody dar lav @qa @everybody devil redbaron @qa dialog inger @qa @everybody dirac oddity @everybody ecore aris edbus aris eet aris blake efreet aris ejudge dk elementary vitty @everybody elmerfem real @everybody embryo aris blake emotion aris enca mike force lav @qa erlang hsv greycat @qa ethumb aris evas aris exiv2 force @everybody ffmpegthumbnailer shrek @everybody fidogate @nobody findlib bga avm @qa @everybody flac7 @nobody fluidsynth aris fontforge pv real freehdl mithraen freetds real @everybody gcc3.4 ldv gdal dim boyarsh @qa @everybody geda-gaf lav @everybody gerbv lav @qa @everybody gigabase boris @everybody glade3 @gnome @everybody gnash sbolshakov gnome-libs @nobody gnome-panel @gnome gnumeric swi google-gadgets zerg gphoto2 jinn gsasl zerg alexsid @qa gsql boris @gnome @everybody gtkhtml4 aris @gnome hermesxd real @everybody ibutils stanv inger real @qa id3lib real @everybody iksemel mithraen inn vvk @everybody juffed cas kdeaccessibility zerg @qa @everybody kdeaddons zerg @qa @everybody kdeadmin zerg @qa @everybody kdeartwork zerg @everybody kdebase zerg @everybody kdebindings zerg @qa @everybody kdegraphics zerg @everybody kdelibs zerg @everybody kdemultimedia zerg @everybody kdenetwork zerg @qa @everybody kdepim zerg @everybody kdesdk zerg @everybody kdetoys zerg @everybody kdeutils zerg @everybody kdewebdev zerg @qa @everybody kdirstat oddity kesi zerg @everybody kflickr oddity @qa kmobiletools oddity @qa zerg @everybody kmymoney2 cas kraft cas kssh zerg @everybody ktoblzcheck cas kturing george @everybody labplot1.6 lav @qa lesstif sin @qa @everybody snejok lib2geom lav @qa libchipcard cas libchm force @everybody libcommoncpp2 sbolshakov lav libdmtx george @everybody libdv ldv @everybody libdynamite mike @mobile @qa libextractor lav force @qa libfolks aris libfreetype shrek libgc lav @qa libgeotiff dd @everybody libggi george @everybody libgii george @qa libglibmm aris lav @gnome libgnomekbd @gnome libgssdp aris libgtkdatabox force @everybody libgtkmm3 aris @gnome libgxps aris libhid prividen libicns azol @everybody libiec61883 lav @qa libinfinity aris @gnome liblo @nobody libmathgl lav @qa libmesh-complex real @qa @everybody libmesh-real real @qa @everybody libming crux @everybody libnetfilter_log liks @everybody libnetfilter_queue liks @everybody libnova zerg libofx migor cas @qa liboggz @nobody liboping mike @qa @everybody liborange mike @mobile @qa libossp-uuid misha @everybody libotr zerg libpeas aris @gnome libproj slazav @everybody libpuzzle force @everybody libqof lav @qa librarian lav @gnome @qa librasqal lav @qa libraw1394 lav @qa libsamplerate aris libsndfile shrek libspf2 force @everybody libstatgrab zhum @everybody libtelepathy-farstream aris libtlalli force @everybody libtranslate lav @qa real libunshield mike genix shaba @mobile @qa libvncserver zerg @everybody libwnck @gnome libwpd shrek libwpd9 shrek libwpg lav @qa libwpg2 shrek libwps shrek libxbsql lav @everybody libxerces-c lav @qa libxine zerg @everybody libxspf lav @qa link-grammar aris lksctp-tools mithraen @everybody lxc dans mcpp sin @qa minidjvu vkni @everybody mjpegtools @nobody mpg123 swi mplayer ender real sbolshakov @qa msynctool0 @mobile multisync-gui shaba @mobile @qa @everybody musescore lav @qa mxml real @everybody mysql-proxy force @everybody net-snmp26 dubrsl @everybody net-snmp30 dubrsl @everybody ntfsprogs @nobody ntrack zerg @everybody obexftp week ocaml bga avm @qa @everybody ocaml-cryptokit boris @everybody openbabel mike zerg @qa opendbx boyarsh openjade aris @everybody owfs zver @python p4est real @everybody papi real @qa @everybody pastix real @qa @everybody perl-Text-BibTeX kirill @cpan @everybody pgpool-II open @everybody pgtcl mithraen php5 rider php5-ctpp mithraen @everybody php5-magickwand rider naf php5-pgsql rider @everybody pike7.8 boris @everybody plan9 peet @everybody plotutils lav @qa pstoedit oddity rider python-module-pysvn gik @python qhull manowar real qrencode force @everybody qutim nenderus @everybody quvi aris @gnome racket real @everybody raptor real @everybody rarpd @nobody rasqal zerg @everybody rawstudio force @everybody recode mike @qa @everybody reiser4progs seriv @everybody runawfe kana @everybody salsa-complex real @qa @everybody salsa-real real @qa @everybody sane-frontends lav @qa serveez @nobody silo real sin @python @qa @everybody sim drool @qa sks boris @everybody slang2 gns @qa slurm real @qa @everybody smalltalk ildar smpeg real @everybody speex mithraen sundials real @qa @everybody sword lav azol @qa @everybody t1lib mike @qa @everybody tastymenu drool tau real sin @python @qa @everybody tcl-plugin sbolshakov telepathy-logger aris telepathy-mission-control aris toxine @nobody tre mike @qa avm vips mike rom_as @qa force @everybody wildmidi george @everybody wimax-network-service @nobody wxsvg dubrsl @qa xar @nobody xdrfile real @qa @everybody xfdiff @nobody xforms viy @everybody xfprint @xfce oddity xine-ui boyarsh @everybody xmedcon anyr @everybody xmms mike eugvv bp gns @qa real xmorph george @qa xsane lav @qa zeromq crux @everybody zziplib force @everybody =F1 =D0=D2=C5=C4=CC=C1=C7=C1=C0 =D3=DE=C9=D4=C1=D4=D8 =CE=C1=CC=C9=DE=C9=C5= =D0=D5=D4=C5=CA =CB =D3=D4=C1=CE=C4=C1=D2=D4=CE=D9=CD =C2=C9=C2=CC=C9=CF= =D4=C5=CB=C1=CD =D7 RPATH =CF=DB=C9=C2=CB=C1=CD=C9, =D0=D2=C9=D7=CF=C4=D1=DD=C9=CD=C9 =CB =CF=DB=C9= =C2=CB=C5 =D3=C2=CF=D2=CB=C9 =D7 =D2=C5=D6=C9=CD=C5 =D0=D2=CF=D7=C5=D2=CB= =C9 rpath=3Dnormal. --=20 ldv --IU5/I01NYhRvwH70 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk7mFkUACgkQfKvmrJ41Nh51rQCdGGDsmUVsLcTNF0iZv+ERla7s ZcYAnjK93rvkp4bQ/C+ELNG/C4UFpG5h =PEpo -----END PGP SIGNATURE----- --IU5/I01NYhRvwH70--