Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getpwuid_r() wasn't found in library

2894211Feb 16 2016 — edited Feb 16 2016

I have a binary application compiled with "cc" (solarisstudio12.4) and instrumented with "discover" (also solarisstudio12.4). The application is running on Oracle Linux Server release 6.4 machine. When I try to run the application the following error occurs:


Internal error in file ../src/tools/libdiscover/libc_wrapper.c at line 3077: getpwuid_r() wasn't found in library.

dumping stack:

        skgpgetinfo() + 0x92

        dbgroud_oradiag_user_dir() + 0x3a

        dbgrgad_get_adrbase_directory() + 0x180

        kpeDbgGetInitFileParms() + 0x1dc

        kpeDbgGetInitFileParmsAndInitDBGC() + 0x2d

        nlstddd_do_alter_diag() + 0xb4

        nlstddt_do_alter_trace() + 0x250

        nlstdggo() + 0x2e9

aborting...Abort (core dumped)

Any ideas on what am I doing wrong here?

Comments

gimbal2
If you have to resort to GCJ, you are already on thin ice and should rethink your strategy. I'd say you don't need Java but you need a native C/C++ application. In any case, a Google search for "gcj java comm" resulted in this as the first hit:

http://stackoverflow.com/questions/1835531/java-compiled-with-gcj-using-javax-comm-api-possible

Amazing what a simple Google query can tell you in under a second, huh?
EJP
GCJ is not a Java compiler, and it relies on a library called GNU CLASSPATH which isn't Java either. Don't use it, and don't ask about it here, this site is for Java as defined by the Sun/Oracle specifications.
860005
Thank you for replying.

I have a complete java program, the problem is that i dont know how to compile it on embeded linux 2.6.86. I googled it and gcj came up in search results. Can you assisst me in this problem.

I m using ok6410 development kit (arm board). It is with wince 6 or linux 2.6.86. I have whole coding in java which is tested in windows OS.

How can i compile my code in above mentioned kit?
860005
Yes i did googled it and came accross that answer which i didnt understand. Can u suggest me any other compile that will run in

Embeded linux 2.6.86 (Debian)

The problem is i have done all my coding in java.
gimbal2
857002 wrote:
Yes i did googled it and came accross that answer which i didnt understand. Can u suggest me any other compile that will run in

Embeded linux 2.6.86 (Debian)

The problem is i have done all my coding in java.
Java classes are cross-platform. If there is a Java runtime for this Linux version then you can run them even if you compiled them on Windows. If there is no compatible Java runtime then you should have done your research before writing the code.
EJP
How can i compile my code in above mentioned kit?
Download and install a JDK from Sun/Oracle for the platform and use the 'javac' command.
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 15 2016
Added on Feb 16 2016
0 comments
644 views