Operating System - HP-UX
1833502 Members
2807 Online
110056 Solutions
New Discussion

Re: /usr/lib/dld.sl: Unresolved symbol: RSCOC (code) from /usr/lib/RSC_commucation.sl

 
ryuji katori
Occasional Contributor

/usr/lib/dld.sl: Unresolved symbol: RSCOC (code) from /usr/lib/RSC_commucation.sl

Hello.

My name is Ryuji.Japanese.
Now,I am developing RSC/MP Commucation Java syatem.
I am troubled, I'm not create Native C library.

Phenomenon:
HP-UX prompt:
C-Library compile
$ cc -Ae +u4 +z +c -D_HPUX -D_POSIX_C_SOURCE=199506L -/opt/java1.4/include -I/opt/java1.4/include/hp-ux RSC_communication.c

C-Library Linker
$ ld -b -o RSC_communication.o

Run Java Program
$ java RSC_logic_class
/usr/lib/dld.sl: Unresolved symbol: RSCOC (code) from /usr/lib/RSC_commucation.sl

RSC_commucation.sl file location path is SHLIB_PATH setting.

I researched many refarence site.but there is nothing anywhere.

Please help me!
Someone should teach the solution method.

P.S.
I'm sorry, English skill is not high.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: /usr/lib/dld.sl: Unresolved symbol: RSCOC (code) from /usr/lib/RSC_commucation.sl

Check the variable SHLIB_PATH

Make sure there are no characters that don't belong and there are colons between each entry.

/usr/bin:usr/contrib/bin:

etc


SHLIB path is for directories, not individual files. Make sure the files in the error message actually exist and are of appropriate size.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ryuji katori
Occasional Contributor

Re: /usr/lib/dld.sl: Unresolved symbol: RSCOC (code) from /usr/lib/RSC_commucation.sl

Thank you. Steven.

However, it did not solve.
Even if it added and performed the path which SHLIB_PATH was told, the result did not change.

I set to SHLIB_PATH is as follows.

$ env
[SHLIB_PATH=/opt/oracle/product/9.2.0/lib32:/home/matsuda/classes:/usr/bin:/usr/contrib/bin:]

$ pwd
/home/matuda/classes
$ ls -la *RSC_communication*
-rwxrw-rw- 1 matsuda jri 10904 6/25 19:08 RSC_communication.c
-rw-r----- 1 matsuda jri 3953 6/24 22:17 RSC_communication.h
-rw-rw-rw- 1 matsuda jri 14264 6/28 10:04 RSC_communication.o
-rwxrwxrwx 1 matsuda jri 28672 6/28 10:04 libRSC_communication.sl

Now, it turns out that I am the RSC method [RscCreateConnection] studied to RSCOC.
-> Imported to Header file[tempolary file=RSC.h] wrintting.
㠻㠻㠻㠻㠻
#define RscCreateOptions RSCOC
㠻㠻㠻㠻㠻

[Native C soruce]
JNIEXPORT jint JNICALL Java_RSC_communication_jniCreateOptions
(JNIEnv *env, jobject obj){
USHORT rc;
unsigned long ulOptionsHandle = 0;

â Execute, but error
rc = RscCreateOptions(
&ulOptionsHandle );
if ( rc != RSC_SUCCESS ) {
㠻㠻㠻㠻㠻
}
return rc;
}

It performs normally except a RSC method.
I do not know what is bad.
Please, If there are those familiar, please giv