dcsimg
Not an ELF file
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, November 29, 2001 08:22 AM

I have a .so(UNIX) file. when i call the same from java i am getting an error like sysAddDLSegment: dynamic linker: /usr/java/bin/x86/green_threads/java: ./libHelloWorld.so is not an ELF file <./libHelloWorld.so> Can any of u tell me why this error is coming... Does it mean that my Compilation of .so is wrong. This is the procedure of how i am creating the .so CC=cc CFLAGS=-G SYSINCFLAGS= -I/att/include -I/att/msgipc -I/att/msgipc/etmsgs -I/usr/spool/log/ head INCFLAGS=-I. -I../include HD4=-I/opt/jdk-1.1.7/include HD5=-I/opt/jdk-1.1.7/include/unixware libHelloWorld.so: HelloWorld.o #cp -p /vs/lib/libspp.so .libHelloWorld.so    More>>

I have a .so(UNIX) file. when i call the same from java i am getting an error like

sysAddDLSegment: dynamic linker: /usr/java/bin/x86/green_threads/java: ./libHelloWorld.so is not an ELF file <./libHelloWorld.so>

Can any of u tell me why this error is coming...

Does it mean that my Compilation of .so is wrong.

This is the procedure of how i am creating the .so

CC=cc
CFLAGS=-G
SYSINCFLAGS= -I/att/include -I/att/msgipc -I/att/msgipc/etmsgs -I/usr/spool/log/
head
INCFLAGS=-I. -I../include
HD4=-I/opt/jdk-1.1.7/include
HD5=-I/opt/jdk-1.1.7/include/unixware

libHelloWorld.so: HelloWorld.o
#cp -p /vs/lib/libspp.so .libHelloWorld.so
ar -ur libHelloWorld.so HelloWorld.o -L/vs/lib -lspp
HelloWorld.o: HelloWorld.c
cc -c -G -I../include/ -I/opt/jdk-1.1.7/include -I/opt/jdk-1.1.7/include/u
nixware -I/att/include/ -I/att/msgipc -I/att/msgipc/etmsgs -I/usr/spool/log/head
-I/vs/lib/libspp.so HelloWorld.c
----------

   <<Less
About | Sitemap | Contact