joshua655 / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

show more info when "Error opening shared library" #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a corrupt dll file named bad.dll with only one line with 3 letters: 
"bad"
2. create an example named see_bad.sjs with one line: require('bad.dll')
3. you'll see: Error opening shared library '...\bad.dll'

I expected to see something like: 
 a. Error opening shared library '...\bad.dll', S.O. reports: "corrupt dll" or
 b. Error opening shared library '...\bad.dll', S.O. reports: "Missing dependencies" or 
 c. Error opening shared library '...\bad.dll', S.O. reports: "Error E009x" or 
what else the S.O. could report to us. 

I'm using v8cgi 0.9.1 as apache module 2.2 in a win XP enviroment, viewing with 
Chrome. I need this because I'don't know why pgsql don't work. The others 
modules works fine. 

Thanks.

Original issue reported on code.google.com by emilioplatzer on 7 Dec 2011 at 10:12

GoogleCodeExporter commented 9 years ago
This makes sense. In the meantime, have you copied all dll files from 
"additional dlls/pgsql" to your system path? These are necessary for the pgsql 
module...

Original comment by ondrej.zara on 8 Dec 2011 at 6:52

GoogleCodeExporter commented 9 years ago
Yes. I do. I copy all dlls I find in the system path. I have PostgreSQL 9.1 
installed on my PC. 

Original comment by emilioplatzer on 8 Dec 2011 at 12:07

GoogleCodeExporter commented 9 years ago
I try installing in other PC with Win7. I have the same problem. I look inside 
binary of pgsql.dll and I saw that I don't have in my PC the file libgcj_s.dll. 
Did I need it? Where I find it?

I'm apologize about my poor English. 

Thank.

Original comment by emilioplatzer on 9 Dec 2011 at 2:29

GoogleCodeExporter commented 9 years ago
Implemented in rev. 958. If you do not want to wait for new release (which will 
be ready soon), you can try the attached v8cgi.exe.

On my Windows box (32-bit Windows XP), the "pgsql" module works without any 
libgcj_s library on my system.

Original comment by ondrej.zara on 12 Dec 2011 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you very much for your attach. Buy I have a little problem with it. I 
need de mod_v8cgi.dll install as apache module. 

I try the exe that you send to me and he pop ups a error MSG. I send you an 
attach with tow trys, first with the original exe and then with de exe that you 
send to me. 

Thanks

Emilio

Original comment by emilioplatzer on 12 Dec 2011 at 4:29

Attachments:

GoogleCodeExporter commented 9 years ago
I added also updated v8.dll and mod_v8cgi.dll. It might be safer to wait for a 
next full release, though.

Original comment by ondrej.zara on 13 Dec 2011 at 12:02

Attachments: