View topic - Minor bug in io-graphics -with loading DLLs and getting erro

Minor bug in io-graphics -with loading DLLs and getting erro

Read-only archive of qnx.ddk (Writing device drivers for scanners, video card, optical mouse, etc) at inn.qnx.com

Minor bug in io-graphics -with loading DLLs and getting erro

Postby cfischer1 » Fri Feb 20, 2004 4:12 pm

When trying to get the gui stuff up and running, I ran into an error when
loading io-graphics:

dlopen("gri-photon.so") failed: Library cannot be found

I spent several hours trying to figure out why it couldn't find the library,
since
it was on the disk, the LD_LIBRARY_PATH variable was set, etc...

Eventually, I found that the DL_DEBUG variable would make it
output stuff when loading DLLs.

Turns out the library it couldn't load was libphrender.so.2. So it seems
like the code in io-graphics is outputting the wrong file name when
dlopen() fails.
cfischer1
Active Member
 
Posts: 14
Joined: Wed Feb 18, 2004 9:22 pm

Re: Minor bug in io-graphics -with loading DLLs and getting

Postby Angela Lin » Fri Feb 20, 2004 4:30 pm

Well, it really was the dlopen() of gri-photon.so that failed.
Unfortunately, dlopen() doesn't report back which dependency
it couldn't find.

I believe our docs people have made an effort to document
DL_DEBUG more prominently.

Angela

Chris Fischer wrote:
When trying to get the gui stuff up and running, I ran into an error when
loading io-graphics:

dlopen("gri-photon.so") failed: Library cannot be found

I spent several hours trying to figure out why it couldn't find the library,
since
it was on the disk, the LD_LIBRARY_PATH variable was set, etc...

Eventually, I found that the DL_DEBUG variable would make it
output stuff when loading DLLs.

Turns out the library it couldn't load was libphrender.so.2. So it seems
like the code in io-graphics is outputting the wrong file name when
dlopen() fails.

Angela Lin
 

Re: Minor bug in io-graphics -with loading DLLs and getting

Postby cfischer1 » Mon Feb 23, 2004 4:48 pm

"Angela Lin" <alin@qnx.com> wrote in message
news:c15b2p$17n$1@inn.qnx.com...
Well, it really was the dlopen() of gri-photon.so that failed.
Unfortunately, dlopen() doesn't report back which dependency
it couldn't find.

I believe our docs people have made an effort to document
DL_DEBUG more prominently.

I see what you are saying, but it doesn't give any useful information
for fixing the problem when you get the error.

Why not have the error message include a statement like
"export DL_DEBUG=1, and rerun application for more info".


Angela

Chris Fischer wrote:
When trying to get the gui stuff up and running, I ran into an error
when
loading io-graphics:

dlopen("gri-photon.so") failed: Library cannot be found

I spent several hours trying to figure out why it couldn't find the
library,
since
it was on the disk, the LD_LIBRARY_PATH variable was set, etc...

Eventually, I found that the DL_DEBUG variable would make it
output stuff when loading DLLs.

Turns out the library it couldn't load was libphrender.so.2. So it
seems
like the code in io-graphics is outputting the wrong file name when
dlopen() fails.

cfischer1
Active Member
 
Posts: 14
Joined: Wed Feb 18, 2004 9:22 pm


Return to qnx.ddk

Who is online

Users browsing this forum: No registered users and 1 guest