Linux JVM: How to load shared libraries with mutual/circular dependencies

Hi,
I am using the API
System.loadLibrary(String name)
to dynamically link shared libaries to Linux JVM.
The shared libraries has complex circular symbol dependencies among them.
I am not able to load shared libraries due to java.lang.UnsatisfiedLinkError.
Any ideas on how a number of shared libraries with interdependent realtionships
could be successfully linked in to the Linux JVM?
Thanks,
Soumen.
Background
===========
Successful execution of native code within Java virtual machine in a
host platform, has two necessary prerequisites:
Prerequisite 1: The native code is written to the JNI specification
Prerequisite 2: The native code is dynamically linked with Java virtual
machine.
The second step is achieved via simple Java interface, System.loadLibrary:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#loadLibrary(java.lang.String)
However, implementation of this interface is highly platform dependent
in regards to exact nature of dynamic linking process.
Tests
=====
I made three shared libraries libfeatureA.so, libfeatureB.so and libfeatureC.so.
Feature A and Feature B are mutually dependent on each other (i.e cicular
dependencies between libfeatureA.so, libfeatureB.so) whereas libfeatureC.so
has no external dependencies.
Case 1
I could link libfeatureC.so with java.
Case 2
Java failed to resolve circular dependency between libfeatureA.so, libfeatureB.so
resulting in linking failure. There may be repackaging workarounds which I have
not yet explored.
Java source code
================
class TestLoadLibrary
static
System.loadLibrary("featureB");
System.loadLibrary("featureA");
System.loadLibrary("featureB");
public static void main(String[] args)
System.out.println("In TestLoadLibrary.main()");
Exception in thread "main" java.lang.UnsatisfiedLinkError: /homes/soumen/work/event/featureB/libfeatureB.so.1.0: /homes/soumen/work/ev B.so.1.0: undefined symbol: featureA_func2
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1737)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1662)
at java.lang.Runtime.loadLibrary0(Runtime.java:817)
at java.lang.System.loadLibrary(System.java:986)
at TestLoadLibrary.<clinit>(TestLoadLibrary.java:5)

The use of "dlopen() application programming" to achieve dynamic link closure works if there are
no circular dependencies. For example, I have the following dependency:
libfeatureD.so ==> libfeatureC.so
Even if I call Java APIs in correct dependency order, i.e.,
System.loadLibrary("featureC");
System.loadLibrary("featureD");
there would be java.lang.UnsatisfiedLinkError for call System.loadLibrary("featureD").
Now, I have a JNI method implementation, which makes native API call in same dependency order:
dlopen("libfeatureC.so", RTLD_LAZY|RTLD_GLOBAL);
dlopen("libfeatureD.so", RTLD_LAZY|RTLD_GLOBAL);
and now System.loadLibrary calls succeed. Note that I had to set environment
variable LD_LIBRARY_PATH so that dlopen call would find libraries to load.
In other words, from a JNI programming point of view, "linking chasm" has been crossed.
I am looking at circular dependency issue, i.e.,
libfeatureA.so <==> libfeatureB.so
There may be library repackaging workaround.
If anybody knows any workaround, please post.
-Soumen Sarkar
JNI code
========
#include <jni.h>
#include "TestLoadLibrary.h"
#include <stdio.h>
#include <string.h>
#include <dlfcn.h>
JNIEXPORT void JNICALL Java_TestLoadLibrary_libLoadNative
(JNIEnv * jenv, jclass class, jobjectArray libNames)
printf("native: In TestLoadLibrary.libLoadNative()\n");
char linuxLibName[1024];
jsize idx = 0;
jsize nLibs = (*jenv)->GetArrayLength(jenv, libNames);
for(idx = 0; idx < nLibs; ++idx)
/* obtain the current object from the object array */
jobject myObject = (*jenv)->GetObjectArrayElement(jenv, libNames, idx);
/* Convert the object just obtained into a String */
const char libName = (jenv)->GetStringUTFChars(jenv,myObject,0);
strcpy(linuxLibName, "lib");
strcat(linuxLibName, libName);
strcat(linuxLibName, ".so");
printf("\nnative: Trying to open lib with name %s\n", linuxLibName);
void* handle = dlopen(linuxLibName, RTLD_LAZY|RTLD_GLOBAL);
if(handle == 0)
fputs ("\nnative: Could not load lib\n", stderr);
fputs (dlerror(), stderr);
else
printf("\nnative: Loaded lib %s\n", linuxLibName);
/* Free up memory to prevent memory leaks */
(*jenv)->ReleaseStringUTFChars(jenv, myObject, libName);
return;

Similar Messages

  • Unable to install JRun on Linux receive error while loading shared libraries

    I'm installing JRun trial version on Ubuntu with java version
    "1.6.0_07". I receive the following errors when I install:
    guest:~/Desktop$ sh ./jrun-40-linux-en.bin -i gui
    Preparing to install...
    Extracting the installation resources from the installer
    archive...
    Configuring the installer for this system's environment...
    dirname: error while loading shared libraries: libc.so.6:
    cannot open shared object file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1:
    cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6:
    cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6:
    cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6:
    cannot open shared object file: No such file or directory
    Launching installer...
    rm: error while loading shared libraries: libc.so.6: cannot
    open shared object file: No such file or directory
    rm: error while loading shared libraries: libc.so.6: cannot
    open shared object file: No such file or directory

    I get that error too when try to install Jrun 4.0 on Open
    Suse 11.0, Can anyone show me how to solve that problem.

  • How to sync shared libraries with touch/iPad

    How can I see shared libraries (Home Sharing on local network) on my Touch/iPad to sync videos etc.?

    iOS devices don't sync directly with each other.  Use iCloud with both.

  • Installing flashplayer 11 on Linux 64 bit - error while loading shared libraries: libX11.so.6

    I've downloaded the flashplayer_11_sa_debug.i386.tar.gz file and extracted it on my RHEL box. When I run ./flashplayerdebugger I get the following error:
    ./flashplayerdebugger: error while loading shared libraries: libX11.so.6: wrong ELF class: ELFCLASS64
    This lib is found in /usr/lib64/libX11.so.6 on this machine.
    It is my understanding that flashplayer has native 64 bit support on Linux and therefore should be compatible with lib64 libaries, so why I am I seeing this error? I've been told it's because it's a 32 bit version of the player....
    I also see this error if I install the flashplayer_11_sa.i386.tar.gz projector instead of the debugger version.
    There don't seem to be any specific 64bit versions of the flashplayer from the download page: http://www.adobe.com/support/flashplayer/downloads.html, yet there seem to be beta releases of a 64 bit Linux player which are no longer available.
    Can anyone help me with this? Where can I get a 64bit v11 flashplayer for Linux?
    Thanks

    Hi MurrayFurtado,
    The builds you are attempting to download from that page are the 32-bit content debuggers and standalone players.  To download the 64-bit players go to http://get.adobe.com/flashplayer (or get.adobe.com/flashplayer/otherversions).
    Since you didn't specify which version of RHEL you have, FP 11 is supported on RHEL 5.6 or later (http://www.adobe.com/products/flashplayer/tech-specs.html).
    Maria

  • Install RAC failed with root.sh error while loading shared libraries: libst

    Hi ,
    I install rac under vmware workstation using this atricle .
    http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php
    everything work smoothly but I faced error with root.sh
    Failed to upgrade Oracle Cluster Registry configuration
    I found metlalink talk about missing compat-libstdc++-33-3.2.3-47.3.ia64.rpm and must be installed according to
    that .
    The probelm rasied when run
    /u01/app/oracle/product/10.2.0/crs/bin/crsctl.bin: error while loading shared libraries: libstdc++.so.5: cannot
    open shared object file: No such file or directory
    Failure initializing entries in /etc/oracle/scls_scr/rac2.
    Linux version is RHE4
    [oracle@rac1 bin]$ uname -a
    Linux rac1.localdomain 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
    when install this package it does not work
    [root@rac1 RPMS]# rpm -Uvh compat-libstdc++-33-3.2.3-47.3.ia64.rpm
    warning: compat-libstdc++-33-3.2.3-47.3.ia64.rpm: V3 DSA signature: NOKEY, key ID b38a8516error: Failed
    dependencies:
    libc.so.6.1()(64bit) is needed by compat-libstdc++-33-3.2.3-47.3.ia64 libc.so.6.1(GLIBC_2.2)(64bit)
    is needed by compat-libstdc++-33-3.2.3-47.3.ia64 libc.so.6.1(GLIBC_2.3)(64bit) is needed by compat-
    libstdc++-33-3.2.3-47.3.ia64 libgcc_s.so.1()(64bit) is needed by compat-libstdc++-33-3.2.3-47.3.ia64
    libgcc_s.so.1(GCC_3.0)(64bit) is needed by compat-libstdc++-33-3.2.3-47.3.ia64 libgcc_s.so.1(GCC_3.3)(64bit)
    is needed by compat-libstdc++-33-3.2.3-47.3.ia64 libgcc_s.so.1(GLIBC_2.0)(64bit) is needed by compat-
    libstdc++-33-3.2.3-47.3.ia64 libm.so.6.1()(64bit) is needed by compat-libstdc++-33-3.2.3-47.3.ia64
    compat-libstdc++ = 7.3-2.96.128 is needed by (installed) compat-libstdc++-devel-7.3-2.96.128.i386 compat-
    libstdc++ = 7.3 is needed by (installed) compat-gcc-c++-7.3-2.96.128.i386[root@rac1 RPMS]#
    My probelm cannot install this packages ? What shoudl I do .

    user12010537 wrote:
    Hi ,
    I found metlalink talk about missing compat-libstdc++-33-3.2.3-47.3.ia64.rpm and must be installed according to
    Linux version is RHE4
    [root@rac1 RPMS]# rpm -Uvh compat-libstdc++-33-3.2.3-47.3.ia64.rpm
    warning: compat-libstdc++-33-3.2.3-47.3.ia64.rpm: V3 DSA signature: NOKEY, key ID b38a8516error: Failed
    dependencies:
    libc.so.6.1()(64bit) is needed by compat-libstdc++-33-3.2.3-47.3.ia64
    My probelm cannot install this packages ? What shoudl I do .
    Hi,
    You need to install the dependency package first like glibc, etc
    also see the output from runcluvfy, it should show which packages need to installed
    Cheers

  • While booting linux VM getting error "error while loading shared libraries

    Hi Expert,
    while booting Oracle linux Virtual Machine getting error "error while loading shared libraries: libpopt.so.0 cannot open shared object file" no such file or directory
    Now i am unable to boot linux, any help appreciated.
    Note: Its Oracle Linux 5.8 x86_64 under Oracle VirtualBox
    Edited by: IgnitedMind on Apr 30, 2013 7:12 AM
    Edited by: IgnitedMind on May 1, 2013 12:04 AM
    Edited by: IgnitedMind on May 1, 2013 12:06 AM

    Without knowing what you have installed or what modifications you have done it is not possible to say what goes wrong. Like I previously mentioned, you may have installed an incompatible version of a core system library. Sorry, I'm not going to read any installation manual to find out what you might have done wrong. You may need to reinstall the complete system or just the popt installation package.
    Based on my experience people sometimes seem to misunderstanding the concept of software version requirements, which are always minimum version requirements and does not mean, for instance, software made for gcc 4.1.10 does not work under 4.1.12. You cannot simply upgrade or downgrade core system libraries without affecting the installed system. Using YUM to install software will check this and prevent you from breaking your system. RPM does not check any dependencies and hence can break your system beyond repair.

  • Error while loading shared libraries libnnz10.so with brconnect

    Hi
    I am experiencing some problems within an installation, brconnect seems to be looking for oracle 10 libraries? while my oracle is a 9.2 !
    these are the logs:
    ERROR CJS-00288  Could not update database statistics.<br>DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPXID returned 127.<br>SOLUTION: See brconnect.log for details.
    brconnect.log:
    Execution of the command "/sapmnt/XIE/exe/brconnect -u / -c -f crsyn -o SAPXID" finished with return code 127. Output:
    /sapmnt/XIE/exe/brconnect: error while loading shared libraries: libnnz10.so: cannot open shared object file: No such file or directory
    Yes, that's true, libnnz10.so does not exist, it happened something similar with the library libclntsh.so.10.1, I only have a libclntsh.so, with a softlink from libclntsh.so.9.
    maybe the brtools imagine I have an oracle 10?
    I specified a 9.2 Oracle during the installation!
    Many thanks, Mario.

    >
    Tecnica de Sistemas wrote:
    > I am experiencing some problems within an installation, brconnect seems to be looking for oracle 10 libraries? while my oracle is a 9.2 !
    > [...]
    > I specified a 9.2 Oracle during the installation!
    Installation of what?
    Clearly the BRTOOLS are version 700, so, even when you specified that Oracle 9i was to be installed the BRTOOLS delivered are the mentioned version and you
    must install the oracle 10g instant client or
    replace the version 700 by version 640
    Regards

  • Error while loading shared libraries: libclntsh.so.10.1

    Hi,
    I have installed R12 on Oracle EL 5.
    AT the end during system check details,the check "database availability" shows passed, but when I checked log it says the following error at one point.
    Executable : /apps/tools/oracle/VIS/apps/tech_st/10.1.2/bin/sqlplus
    riwTDBup.sh exiting with status 0
    sqlplus: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
    Can you please let me know whether this is going to be a problem or not. If yes, how I can rectify this.
    I could connect to DB using sqlplus without any issues.
    Thanks
    Vas
    Complete message from "Database availability"
    Database Availability
    command: /diskb/orainstall/StageR12/startCD/Disk1/rapidwiz/bin/riwTDBup.sh /apps/tools/oracle/VIS/db/tech_st/10.2.0/VIS_home.env APPS/APPS
    riwTDBup.sh started at Sun Jul 1 09:14:04 PDT 2007
    Parameters passed are : /apps/tools/oracle/VIS/db/tech_st/10.2.0/VIS_home.env APPS/APPS
    The environment settings are as follows ...
    ORACLE_HOME : /apps/tools/oracle/VIS/db/tech_st/10.2.0
    ORACLE_SID : VIS
    TWO_TASK :
    PATH : /apps/tools/oracle/VIS/db/tech_st/10.2.0/perl/bin:/apps/tools/oracle/VIS/db/tech_st/10.2.0/bin:/usr/bin:/usr/sbin:/apps/tools/oracle/VIS/db/tech_st/10.2.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/diskb/orainstall/StageR12/startCD/Disk1/rapidwiz/unzip/Linux_x64:/usr/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin
    LD_LIBRARY_PATH : /apps/tools/oracle/VIS/db/tech_st/10.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/apps/tools/oracle/VIS/db/tech_st/10.2.0/lib:/usr/dt/lib:/apps/tools/oracle/VIS/db/tech_st/10.2.0/ctx/lib
    Executable : /apps/tools/oracle/VIS/db/tech_st/10.2.0/bin/sqlplus
    riwTDBup.sh exiting with status 0
    Database ORACLE_HOME connection test has succeeded
    command: /diskb/orainstall/StageR12/startCD/Disk1/rapidwiz/bin/riwTDBup.sh /apps/tools/oracle/VIS/inst/apps/VIS_home/ora/10.1.2/VIS_home.env APPS/APPS
    riwTDBup.sh started at Sun Jul 1 09:14:05 PDT 2007
    Parameters passed are : /apps/tools/oracle/VIS/inst/apps/VIS_home/ora/10.1.2/VIS_home.env APPS/APPS
    The environment settings are as follows ...
    ORACLE_HOME : /apps/tools/oracle/VIS/apps/tech_st/10.1.2
    ORACLE_SID :
    TWO_TASK : VIS
    PATH : /apps/tools/oracle/VIS/apps/tech_st/10.1.2/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/diskb/orainstall/StageR12/startCD/Disk1/rapidwiz/unzip/Linux_x64:/usr/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin
    LD_LIBRARY_PATH : /apps/tools/oracle/VIS/apps/tech_st/10.1.2/lib32:/apps/tools/oracle/VIS/apps/tech_st/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/apps/tools/oracle/VIS/apps/tech_st/10.1.2/jdk/jre/lib/i386:/apps/tools/oracle/VIS/apps/tech_st/10.1.2/jdk/jre/lib/i386/server:/apps/tools/oracle/VIS/apps/tech_st/10.1.2/jdk/jre/lib/i386/native_threads
    Executable : /apps/tools/oracle/VIS/apps/tech_st/10.1.2/bin/sqlplus
    riwTDBup.sh exiting with status 0
    sqlplus: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
    Apps ORACLE_HOME connection test has succeeded
    null

    Do an su - oracle and see if you can execute any commands. If you cannot, as root, vi /home/oracle/.profile and remove any LD_ASSUME_KERNEL references.
    Also note that R12 is not certified for OL 5 or RH 5.
    Oracle Applications Installation and Upgrade Notes Release 12 (12.0) for Linux (64-bit)
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=416305.1
    Oracle Applications Installation and Upgrade Notes Release 12 (12.0) for Linux (32-bit)
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=402310.1

  • Instant Client sqlplus: error while loading shared libraries: libsqlplus.so

    os : Linux ch5dlfp090 2.6.18-128.el5 #1 SMP Wed Dec 17 11:58:23 EST 2008 ppc64 ppc64 ppc64 GNU/Linux
    Oracle : Instant client
    [oracle@ch5dlfp090 instantclient_10_2]$ pwd
    /shared/instantclient/64bit/instantclient_10_2
    [oracle@ch5dlfp090 instantclient_10_2]$ ls -ltr
    total 108288
    -rwxrwxr-x 1 oracle dba 72658720 Dec 27  2008 libociei.so
    -rwxrwxr-x 1 oracle dba    41007 Dec 27  2008 genezi
    -rw-rw-r-- 1 oracle dba      237 Dec 27  2008 BASIC_README
    -r-xr-xr-x 1 oracle dba  3790338 Dec 27  2008 libnnz10.so
    -rwxrwxr-x 1 oracle dba 23543028 Dec 27  2008 libclntsh.so.10.1
    -r--r--r-- 1 oracle dba  1555682 Dec 27  2008 ojdbc14.jar
    -r-xr-xr-x 1 oracle dba   164432 Dec 27  2008 libocijdbc10.so
    -rwxrwxr-x 1 oracle dba  3014136 Dec 27  2008 libocci.so.10.1
    -r--r--r-- 1 oracle dba  1609607 Dec 27  2008 classes12.jar
    -r--r--r-- 1 oracle dba  1646178 Dec 27  2008 orai18n.jar
    -r-xr-xr-x 1 oracle dba    48473 Dec 27  2008 libheteroxa10.so
    -rw-rw-r-- 1 oracle dba      235 Dec 27  2008 JDBC_README
    -rw-rw-r-- 1 oracle dba      241 Dec 27  2008 SQLPLUS_README
    -r-xr-xr-x 1 oracle dba    15629 Dec 27  2008 sqlplus
    -r-xr-xr-x 1 oracle dba  1183998 Dec 27  2008 libsqlplus.so
    -r-xr-xr-x 1 oracle dba  1443102 Dec 27  2008 libsqlplusic.so
    -r--r--r-- 1 oracle dba     1525 Dec 27  2008 glogin.sql
    drwxrwxr-x 4 oracle dba    16384 Dec 27  2008 sdk
    [oracle@ch5dlfp090 instantclient_10_2]$
    Issue : When I tried to connect Sqlplus
    [oracle@ch5dlfp090 instantclient_10_2]$ sqlplus
    sqlplus: error while loading shared libraries: libsqlplus.so: wrong ELF class: ELFCLASS64
    When I connect with 32 bit instant client of Power Linux version I am able to connect
    When Hardware is 64 os 64 Bit Instnat client 64 bit not working
    what could be the reason ? How to resolve this ?

    Pl post in the Instant Client forum - Instant Client
    What does "which sqlplus" return ?
    This thread may be relevant - Instant client for Solaris AMD x64
    HTH
    Srini

  • Error while loading shared libraries: libglut.so.3: cannot open shared

    Hi, I bought the new Humble Bundle today and downloaded the tar.gz file for Fieldrunners (which is supposed to work under linux)
    "error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory" is the message I get when I put ./Fieldrunners into konsole after copying the fieldrunners folder into /opt
    I have freeglut-2.8.0-1 installed
    This is the README:
    This is Fieldrunners for Linux.
    It was built under Ubuntu 12.04 but is known to work in other distros.
    The only external dependancy is the freeglut3 library.
    To install:
      copy the fieldrunners directory (executable and game assets) to /opt
      copy the .fieldrunners directory (user options, achievements and saves) to your home directory.
    If you don't want to copy the fieldrunners directory to /opt, you can likely start fieldrunners from any folder and it will attempt to find the assets in the same folder as the executable.
    The executable /opt/fieldrunners/Fieldrunners will create the .fieldrunners directory in the home directory if not found.
    EDIT: Forgot to mention, there is no PKGBUILD file in the tar.gz
    Last edited by harsha (2012-08-15 23:43:19)

    My Fieldrunners says:
    cannot open audio device (Device or resource busy)
    Fieldrunners: pcm.c:928: snd_pcm_state: Assertion `pcm' failed.
    ... so I have to kill pulseaudio first (or use padsp). After that (with alsa), it has choppy sound. 1 second sound, one pause...
    Spacechem is windows binary + a wine'ish blob (that just freezes on my machine), comes only as rpm/deb and seems to insist to be installed in /opt (AND some files in /usr/share). The included .exe doesn't work with native wine either (without further adjustments at least).
    Doesn't really look good at all so far, this bundle.
    edit:
    Also: Uplink seems to be unplayable on a big resolution Display without workarounds due to its small font...?
    Spirits says:
    (Spirits-64:14143): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Fatal error reading PNG image file: Incompatible libpng version in application and library
    ... but seems to work fine at a first glance (safe for a missing picture in the launcher which isn't really tragic).
    edit:
    ( Aaaand, now I notice I'm in the wrong thread and/or forum. Where did that generic "is the bundle working?"-thread go? Stupid multi-tabbing xD )
    Last edited by whoops (2012-08-16 20:47:17)

  • "error while loading shared libraries: libnotify.so.1: cannot open.."

    This is what happend after I rebooted the computer today.
    [ ~ ]$ pino
    pino: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory
    [ ~ ]$ gnome-gmail-notifier
    gnome-gmail-notifier: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory
    [ ~ ]$ liferea
    liferea: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory
    [ ~ ]$ linuxdcpp
    linuxdcpp: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory
    Im guessing Im not the only one? Dunno what to do?

    Thanks!
    This is how the PKGBUILD looks like:
    build() {
    cd "${srcdir}/liferea-${pkgver}"
    patch -Np1 -i "$srcdir/libnotify-0.7.patch"
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-schemas-install
    make
    This is how my PKGBUILD looks like:
    build() {
    cd "${srcdir}/${_pkgrealname}-${pkgver}"
    patch -Np1 -i $srcdir/libnotify-0.7.patch || return 1
    patch -Np1 -i ../getenv_sync.patch || return 1
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-schemas-install || return 1
    make || return 1
    But it doesnt work:
    [ ~/pkgbuilds/liferea-ext4 ]$ makepkg -csi
    ==> Making package: liferea-ext4 1.7.4-1 (Fri Mar 18 11:27:45 CET 2011)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Found liferea-1.7.4.tar.gz
    -> Found getenv_sync.patch
    -> Found libnotify-0.7.patch
    ==> Validating source files with md5sums...
    liferea-1.7.4.tar.gz ... Passed
    getenv_sync.patch ... Passed
    libnotify-0.7.patch ... Passed
    ==> Extracting Sources...
    -> Extracting liferea-1.7.4.tar.gz with bsdtar
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    patching file src/notification/libnotify.c
    Hunk #1 FAILED at 150.
    Hunk #2 FAILED at 244.
    2 out of 2 hunks FAILED -- saving rejects to file src/notification/libnotify.c.rej
    ==> ERROR: A failure occurred in build().
    Aborting...
    [ ~/pkgbuilds/liferea-ext4 ]$
    What am I doing wrong?
    Last edited by Hund (2011-03-18 09:30:55)

  • Error while loading shared libraries: libstdc++.so.5: cannot open shared ob

    Hi people,
    I want to launch ./sapinst on suse O.S, but I´ve found with this message error:
    error while loading shared libraries: libstdc++.so.5: cannot open shared object file
    I´ve trying to search in notes, but i dont know how to resolv this.
    In the O.S, I´ve tried to searh on YAST, but any rpm is version 5.
    What can i do?
    More thanks

    Hi Ruben
    Before starting please make sure you have maintained all env for sidadm
    commands may vary depending on os in case
    Whenever I start SAPINST I set following before hand
    TMPDIR=/usr/sap/install/SRA_CI : just a log directory
    export TMPDIR
    LD_LIBRARY_PATH=/usr/sap/sapmnt/SRA/exe
    export LD_LIBRARY_PATH
    umask 022
    JAVA_HOME=/usr/sap/java
    export JAVA_HOME
    PATH=$/bin:$
    export PATH
    SAPINST_JRE_HOME=/usr/sap/java
    export SAPINST_JRE_HOME
    Hope this helps
    success!!

  • Error while loading shared libraries: libdb.so.3

    Hi,
    While running adconfig, I am getting below error:
    /iAS/Apache/perl/bin/perl: error while loading shared libraries: libdb.so.3: cannot open shared object file: No such file or directory.
    It is new cloned environment of 11.5.10.2 with 11g db on linux 64 bit server.
    I checked for rpm compat-db-3.3.11-4, it is existing. What is the problem?
    Thanks,
    Kavitha

    Hi Kavitha;
    please check below note:
    On 11.5.10.2/Redhat Enterprise version 5.2, Running Autoconfig adconfig.Sh Perl, Error While Loading Shared Libraries: the libdb.so.3: can't open shared object file: no such file or directory [ID 730656.1]
    Regard
    Helios

  • Error while loading shared libraries: libjvm.so

    Hi,
    Hopefully, this is the right list for this problem. I am working on a computer that has Linux 2.6.20-1.2952.fc6. I am trying to deploy a program to a Sun SPOT using over-the-air functionality; however, I get the following message:
    -pre-suite:
    -do-suite:
         [exec] /usr/java/SunSPOT/sdk/bin/squawk: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory
    BUILD FAILED
    /usr/java/SunSPOT/sdk/ant/suite.xml:38: exec returned: 127When I try to locate this file, I can see it in in the following locations:
    /usr/java/jdk1.6.0_02/jre/lib/i386/client/libjvm.so
    /usr/java/jdk1.6.0_02/jre/lib/i386/server/libjvm.so
    How can I resolve this error?
    Thanks,
    Daniel

    make sure to include one of those two directories in your LD_LIBRARY_PATH environment variable. Probably the client directory one. And only the directoy (i.e. that path minus the libjvm.so part).

  • Error while loading shared libraries: libaio.so.1: cannot open share

    Hi
    when i try to install Oracle Management Agent 11g using Deployment wizard to one of our hosts, it fails with the following error:
    error while loading shared libraries: libaio.so.1: cannot open shared object file:
    i have changed LD_LIBRARY_PATH to various other options but no luck.
    can some one please advice on this.
    OS version is Red Hat Enterprise Linux AS release 4 (Nahant Update 7) 64bit
    thanks in advance

    Hi...
    check if you have all packages ...
    libaio-XX-.x86_64
    libaio-32bit-XX-.x86_64
    libaio-devel-XX-.x86_64
    libaio-devel-32bit-XX-.x86_64
    XX = version number...
    *T                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Optimizer choosing hash joins even when slower

    We have several queries where joins are being evaluated by full scans / hash joins even when forcing index use results in an execution time about a quarter the duration of the hash join plan. It still happens if I run DMS_STATS.GATHER_TABLE_STATS wit

  • HT5622 I cloud ID Problem

    every time i enter my apple id to login the icloud with my device it told me that : the maximum number of free accounts have been activated on this iphone . and i enter to the only one apple id ?????????????

  • French accents / keyboard

    I've figured out how to use a keyboard that will spell check and add (occasionally) the French accents. But I'd like to control the accents since it does not always detect the correct spelling. How can I find a keyboard that had these accents? In an

  • Re: I need basic ABAP OOPS material to learn OOPS concepts

    Hi Anitha, Can you send me the material which you have!!! [email protected] Thanks in advance!!! Chandra

  • I do not have my serial number

    I signed up for the Photoshop Photography Program in March, but had not yet received a serial number to activate my products. I signed into my Adobe membership, and see my transaction history and 3 order tickets, but I have no "products" or "serial n