{"id":4185,"date":"2014-03-30T09:02:43","date_gmt":"2014-03-30T09:02:43","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-shared-library-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:02:43","modified_gmt":"2014-03-30T09:02:43","slug":"problem-about-shared-library-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-shared-library-collection-of-common-programming-errors\/","title":{"rendered":"problem about shared-library-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c09c1ff638e04cafe0b47b018a3b8bc4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nfiftyeight<br \/>\ncompiling shared-library<br \/>\nI&#8217;m trying to understand how libraries work.for example I downloaded a tarball and extracted it. Now I do &#8220;.\/configure&#8221;, it searches in pre-defined directories from what I understand for certain library files. What does it do then? it creates a makefile, and the makefile contains the paths to these libraries? than I do &#8220;make&#8221;, it complies the source code and hard-codes the locations of the libraries? am I correct? I do not really understand if libraries are files with pre-defined paths or the OS<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/631f04176f88084e982e7b343c7973f8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEliah Kagan<br \/>\n12.04 64-bit java shared-library matlab<br \/>\nI am trying to install Matlab 2012a (64-bit) in Ubuntu 12.04LTS (64-bit). I have installed Java 7. My Java version is:sabyasachi@sabyasachi-ubuntu:~\/Downloads\/R2012a_UNIX$ java -version java version &#8220;1.7.0_05&#8221; Java(TM) SE Runtime Environment (build 1.7.0_05-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed modeI am getting the following error while installing Matlab:sabyasachi@sabyasachi-ubuntu:~\/Downloads\/R2012a_UNIX$ .\/install Preparing installation files &#8230; Installing &#8230; \/tmp\/m<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/db478f423f92b3524bfaf7e561ce41ae?s=128&amp;d=identicon&amp;r=PG\" \/><br \/>\nLeo Izen<br \/>\nvideo vlc ffmpeg shared-library libav<br \/>\nI built (from source) a newer version of libavcodec.so, libavformat.so, etc. than provided by the Ubuntu repositories. (My newer versions are installed in \/usr\/local\/lib). Using ldd \/usr\/bin\/vlc to list the shared library dependencies of VLC returns a small list:linux-vdso.so.1 =&gt; (0x00007fff219fe000) libvlc.so.5 =&gt; \/usr\/lib\/libvlc.so.5 (0x00007fb0622ca000) libvlccore.so.5 =&gt; \/usr\/lib\/libvlccore.so.5 (0x00007fb061fe8000) libpthread.so.0 =&gt; \/lib\/x86_64-linux-gnu\/libpthread.so.0 (0x00<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/62d14cf03bbd1f5eb82b8be1cd3c08fc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDave Lillethun<br \/>\nlibraries shared-library dynamic-linking<br \/>\nWhen I run a process that links to a shared library at runtime (linked when the process starts, not linked later with dlload()), where does it look for that shared library (.so) file other than LD_LIBRARY_PATH?Background:I have some C++ code that I wrote that uses a particular third-party library. I have installed the library and compiled my code on two different platforms, both Ubuntu but different versions, and different versions of gcc as well. The library was compiled and installed from sour<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b7a697877c8a5188637d6fbfeeb7c137?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLucio<br \/>\npackage-management development shared-library dynamic-linking<br \/>\nTake a package like sqlite3:http:\/\/packages.ubuntu.com\/lucid\/i386\/libsqlite3-0\/filelist http:\/\/packages.ubuntu.com\/lucid\/i386\/libsqlite3-dev\/filelistNote that the linker name (\/usr\/lib\/libsqlite3.so) only appear in the -dev package. The same pattern holds true for almost all shared libraries. Why? Won&#8217;t this confuse programs that tries to dynamically load sqlite3 using dlopen(&#8220;libsqlite3.so&#8221;) when that file is missing unless you have the -dev variant?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bb8d759cf4230bcaa238fac0018af80c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nVolkan Yazici<br \/>\nlibraries shared-library binary<br \/>\nI am trying to figure out the implications of a distribution where static binaries are preferred over shared ones. For that purpose, I put together a small Scala shell script that 1) traverses \/bin, \/sbin, \/usr\/bin, \/usr\/sbin directories, 2) locates non-symlink executables, and 3) sums the file size of the libraries listed by ldd. Is this a feasible approach to compute the extra space that would be needed?Further, besides extra disk space consumption, what would be the runtime memory usage impli<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3d29d26e0b6452a8732390472f59a7b4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nhexafraction<br \/>\njava shared-library matlab<br \/>\nThis is my first posting here, so please be gentle. I am having a problem installing Matlab 2012a (32-bit) in Ubuntu 12.04 LTS. I have trawled around the web and have seen similar problems reported, but I cannot seem to get around the issue, my problem is very similar to the one reported here:http:\/\/www.mathworks.in\/matlabcentral\/answers\/42988-installing-matlab-2012a-in-ubuntu-12-04-java-problemExcept that I get an error message that refers to the java module located in glnx86: \/tmp\/mathworks_2<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/de85c185f39ef9feef79d9933409d400?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njrg<br \/>\n64-bit android eclipse shared-library<br \/>\nI installed Eclipse, openjdk6 and downloaded and extracted the sdk manager file.Now, When I created an Android project I got the following error:2012-06-06 18:44:40 &#8211; contactManager] \/home\/catia\/android-sdks\/platform-tools\/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directoryAnd this one when I tried to create an AVD Manager:[2012-06-06 19:00:18 &#8211; SDK Manager] \/home\/catia\/android-sdks\/tools\/mksdcard: error while loading shared librari<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2534f165185467fd05db390a6074edd7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDeus Deceit<br \/>\n12.04 shared-library<br \/>\nI&#8217;m trying to install a *Second Life client called Phoenix Viewer, first attempt I got a message about X errors, I searched the net all I could see to fix 32 bit apps and run them under 64 bit ubuntu was shared libraries issues, so I installed all libraries that I found suggested in all articles but the error persists. Can someone help or at least give me a hint on what to do? Thanks in advanceThis is my output (too long i know, but i thought i should include all info)deus@work:~\/Programs\/Phoeni<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/78ca775b6441de8bdeb605a72a52aae7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPouya<br \/>\nupgrade shared-library glibc<br \/>\nI&#8217;m trying to run an application on ubuntu 11.10 64bits. When I do ldd it tells me that \/lib\/x86_64-linux-gnu\/libc.so.6: version `GLIBC_2.14&#8242; not foundI know what causes this problem and reading the solutions on Internet everyone suggesting to upgrade to 12.04 (or 13.04 now!). The problem is that this is shared computer and has several users and in practice I can not upgrade to 12.04. My question is, if there is a way to upgrade only this library? Can I simply copy the so file from my own 12.04<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/631f04176f88084e982e7b343c7973f8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEliah Kagan<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0f5642afbcbd4b906952fdce2e7a6c39?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npenreturn<br \/>\nshared-library<br \/>\nI&#8217;m having a problem with a program (quartus) running on my ubuntu machine. I&#8217;m getting the following error.quartus: symbol lookup error: \/usr\/lib\/i386-linux-gnu\/libXi.so: undefined symbol: XESetWireToEventCookieI have the correct libXi.so.6.0.0 file but no matter where I put it, the OS won&#8217;t use it unless I apt-get remove libxi-dev, but a lot of software uses this libXi. What I want to do is add some sort of exception to the dynamic linker so that quartus uses the libXi.so that it needs and ev<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/44386d959adb657dfab84fc175c85379?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHema<br \/>\neclipse c++ shared-library eclipse-cdt dynamic-linking<br \/>\nI have problem with gdal. I am currently working on Ubuntu and the IDE is Eclipse CDT i have given my code below and i have also installed the gdal package but it gives build errors#include &lt;stdio.h&gt; #include&lt;unistd.h&gt; #include &#8220;gdal\/gdal_priv.h&#8221; #include &#8220;gdal\/cpl_conv.h&#8221; #include&lt;gdal\/gdal.h&gt; int main(int argc,char* argv[]) {void *hLib_Comm;char exePath[800];if(getcwd(exePath,sizeof(exePath))== NULL) {printf(&#8220;Exe path access error\\n&#8221;);}GDALDataset *poDataset;GDALAllRegister<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9a712822a9f7e6340627c0c65f0234c2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMithun P<br \/>\n64-bit php 32-bit extension shared-library<br \/>\nI need to install the 32-bit version of libstdc++.so.6 on a 64 bit Ubuntu 8.04.2 server.when i tried apt-get install ia32-libs, it says root@devserver:~\/downloads# apt-get install ia32-libs Reading package lists&#8230; Done Building dependency tree Reading state information&#8230; Done ia32-libs is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.But when i tried to enable a PHP extension (libpdf_php.so), which uses this runtime library following error is logge<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>fiftyeight compiling shared-library I&#8217;m trying to understand how libraries work.for example I downloaded a tarball and extracted it. Now I do &#8220;.\/configure&#8221;, it searches in pre-defined directories from what I understand for certain library files. What does it do then? it creates a makefile, and the makefile contains the paths to these libraries? than I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4185","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4185"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4185\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}