All 7 messages in topic - view as tree
From: delt...@email.it - view profile
Date: Mon, Dec 4 2006 6:50 pm
Email: delt...@email.it
Hello,
I'm using Informix10 on Linux and I'm trying to use a simple UDR, I
compile it as a shared library,
gcc -fpic -c -DLINUX -I$(INFORMIXDIR)/incl/public hello.c
ld -shared hello.o -o hello.so
then I register it in my database.
When I try to use the function, I get a 9793 error and in the log:
17:43:22 The C Language Module
can't load
reason: /opt/informix/extend/puntoni/hello.so: cannot open shared
object file: No such file or directory
17:43:22 (-1): ERROR: Loading Module
The file is in the right place and has the right permissions.
Any suggestions??
Thank you,
Dario
Reply » Rate this post: Text for clearing space
From: Ogiwara Tsutomu - view profile
Date: Tues, Dec 5 2006 3:04 am
Email: "Ogiwara Tsutomu"
Hi,
How about the following ?
gcc -shared -u _etext -o hello.so hello.o
Regards.
--
Tsutomu Ogiwara from Tokyo Japan.
- Hide quoted text -
- Show quoted text -
>From: delt...@email.it
>To: informix-l...@iiug.org
>Subject: Problem loading a UDR
>Date: 4 Dec 2006 08:50:32 -0800
>Hello,
>I'm using Informix10 on Linux and I'm trying to use a simple UDR, I
>compile it as a shared library,
>gcc -fpic -c -DLINUX -I$(INFORMIXDIR)/incl/public hello.c
>ld -shared hello.o -o hello.so
>then I register it in my database.
>When I try to use the function, I get a 9793 error and in the log:
>17:43:22 The C Language Module
>can't load
> reason: /opt/informix/extend/puntoni/hello.so: cannot open shared
>object file: No such file or directory
>17:43:22 (-1): ERROR: Loading Module
>
>The file is in the right place and has the right permissions.
>Any suggestions??
>Thank you,
>Dario
>_______________________________________________
>Informix-list mailing list
>Informix-l...@iiug.org
>http://www.iiug.org/mailman/listinfo/informix-list
_________________________________________________________________
メッセンジャーでファイルのやりとりができる
http://promotion.live.jp/messenger/share.htm
Reply » Rate this post: Text for clearing space
From: delt...@email.it - view profile
Date: Tues, Dec 5 2006 9:34 am
Email: delt...@email.it
I tried
gcc -shared -u _etext -o hello.so hello.o
but I get the same error, maybe there's something wrong in the Informix
installation?
Thank you
Dario
Reply » Rate this post: Text for clearing space
From: Madison Pruet - view profile
Date: Tues, Dec 5 2006 10:09 am
Email: Madison Pruet
delt...@email.it wrote:
> Hello,
> I'm using Informix10 on Linux and I'm trying to use a simple UDR, I
> compile it as a shared library,
> gcc -fpic -c -DLINUX -I$(INFORMIXDIR)/incl/public hello.c
> ld -shared hello.o -o hello.so
Let's see the paraform of the function...
> then I register it in my database.
Let's see the SQL statement.
> When I try to use the function, I get a 9793 error and in the log:
> 17:43:22 The C Language Module
> can't load
> reason: /opt/informix/extend/puntoni/hello.so: cannot open shared
> object file: No such file or directory
> 17:43:22 (-1): ERROR: Loading Module
>
> The file is in the right place and has the right permissions.
Let's see ls -l of /opt/informix/extend and
ls -l of /opt/informix/extend/puntoni
- Hide quoted text -
- Show quoted text -
> Any suggestions??
> Thank you,
> Dario
Reply » Rate this post: Text for clearing space
From: Jonathan Leffler - view profile
Date: Tues, Dec 5 2006 10:21 pm
Email: "Jonathan Leffler"
- Hide quoted text -
- Show quoted text -
delt...@email.it wrote:
> I'm using Informix10 on Linux and I'm trying to use a simple UDR, I
> compile it as a shared library,
> gcc -fpic -c -DLINUX -I$(INFORMIXDIR)/incl/public hello.c
> ld -shared hello.o -o hello.so
> then I register it in my database.
> When I try to use the function, I get a 9793 error and in the log:
> 17:43:22 The C Language Module
> can't load
> reason: /opt/informix/extend/puntoni/hello.so: cannot open shared
> object file: No such file or directory
> 17:43:22 (-1): ERROR: Loading Module
>
So - why is there a 'mydir' in two parts of the message and 'puntoni'
in the other?
> The file is in the right place and has the right permissions.
Which place do you consider right; which permissions do you consider
right?
How did you create the function - what was the statement that
registered it? Did it use an environment variable - if so, what is its
value in the server's environment and in your environment. Maybe
'onstat -g env' will help.
(Someone else asked these question - I'm only posting because I spotted
the mydir vs puntoni difference, and I think that is likely to be
significant.)
Reply » Rate this post: Text for clearing space
From: Manoj Ghogale - view profile
Date: Wed, Dec 6 2006 7:22 am
Email: Manoj Ghogale
hi,
Try this--
Add the following line at the end of /etc/ld.so.conf file
/opt/informix/extend/mydir/hello.so
and run
ldconfig
as root
check your LD_LIBRARY_PATH variable also
Manoj
delt...@email.it
Sent by: informix-list-boun...@iiug.org
04/12/2006 22:20
To
informix-l...@iiug.org
cc
Subject
Problem loading a UDR
Hello,
I'm using Informix10 on Linux and I'm trying to use a simple UDR, I
compile it as a shared library,
gcc -fpic -c -DLINUX -I$(INFORMIXDIR)/incl/public hello.c
ld -shared hello.o -o hello.so
then I register it in my database.
When I try to use the function, I get a 9793 error and in the log:
17:43:22 The C Language Module
can't load
reason: /opt/informix/extend/puntoni/hello.so: cannot open shared
object file: No such file or directory
17:43:22 (-1): ERROR: Loading Module
The file is in the right place and has the right permissions.
Any suggestions??
Thank you,
Dario
_______________________________________________
Informix-list mailing list
Informix-l...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
Reply » Rate this post: Text for clearing space
From: delt...@email.it - view profile
Date: Thurs, Dec 7 2006 12:45 pm
Email: delt...@email.it
Hi,
'mydir' is not the real name of the directory,
I tried to run ldconfig without success.
the permissions of the file are 775, owner: informix
the permissions of the directory are 755, owner: informix
Thanks for the answers.
Dario
Reply » Rate this post: Text for clearing space
End of messages
No comments:
Post a Comment