Re: cygwin + Apache out of the box: dlopen: Win32 error 126
Hi, What does line 237 of httpd.conf contain? Does libphp4.dll exist in /usr/lib/apache? Run the below and see if you have all of the dll's that are printed out by cygcheck: Cygwin cygcheck /usr/lib/apache/libphp4.dll If you have everything you need your next step should be to rebase the dll's: http://sources.redhat.com/ml/cygwin/2002-11/msg00798.html http://sources.redhat.com/ml/cygwin/2002-10/msg01836.html http://sources.redhat.com/ml/cygwin/2002-10/msg01018.html There's probably threads ive missed so use the search facility on http://cygwin.com/ml/cygwin/ to look for pointers on this issue. Youll need rebase: Cygwin cd /tmp Cygwin wget http://www.tishler.net/jason/software/rebase/rebase.exe Cygwin rebase -d -b 0x6800 -o 0x1 /lib/apache/*.dll Please read the above threads and whatever you get from the search because im not sure if i have the base correct. Hi, all!! I've just re-installed cygwin after a clean install of W2K. I'm trying to get a working system as close as possible to the one I had before, so I installed Cygwin, and the apache and mod_php... and when I've tried to get apache to run, I get: Cygwin /usr/sbin/apachectl start Syntax error on line 237 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 126 /usr/sbin/apachectl start: httpd could not be started error 126 means something like file not found... but I have _no_ clue as to what .dll or file it's missing!! Yes the error 126 means the module could not be loaded: [root@webdev]:{366}:% net helpmsg 126 The specified module could not be found. The _strangest_ thing is that running Dependency walker on my (**working**) old system against libphp4.dll and libssl.php (both will throw the same mistake when trying to run apache), and I get a bunch of unresolved dependencies!!: in libphp4.dll: CYGBZ21.0.DLL CYGCRYPTO.DLL CYGHTTPD.DLL CYGINTL-1.DLL CYGWIN1.DLL CYGXML2-2.DLL CYGZ.DLL PQ.DLL There are a couple more deps, KERNEL32.DLL LIBPHP4.DLL NTDLL.DLL which _are_ resolved. in libssl.dll: CYGCRYPTO.DLL CYGGDBM.DLL CYGHTTPD.DLL CYGSSL.DLL CYGWIN1.DLL Again, these deps are OK: KERNEL32.DLL LIBSSL.DLL NTDLL.DLL So, I have to admit I'm feeling more than a little lost... _any_ help would be greatly appreciated. Thanks!! Javier -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin + Apache out of the box: dlopen: Win32 error 126
Let's do the things step by step: Elfyn McBratney [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, What does line 237 of httpd.conf contain? Does libphp4.dll exist in /usr/lib/apache? Yes, it does exist: apache dir lib* -rwxr-xr-x1 javier Ninguno 1126912 Nov 29 23:09 libphp4.dll* -rwxrwxrwx1 Administ Ninguno 83968 Apr 27 2002 libproxy.dll* -rwxr-xr-x1 javier Ninguno152064 Nov 29 23:09 libssl.dll* Line 237 is the line that loads libphp4.dll: LoadModule php4_modulelib/apache/libphp4.dll LoadModule ssl_module lib/apache/libssl.dll Run the below and see if you have all of the dll's that are printed out by cygcheck: Cygwin cygcheck /usr/lib/apache/libphp4.dll MM... _Very_ strange results: apache cygcheck /usr/lib/apache/libphp4.dll /usr/lib/apache/libphp4.dll - Cannot open Use -h to see help about each section apache cygcheck /usr/lib/apache/libssl.dll /usr/lib/apache/libssl.dll - Cannot open Use -h to see help about each section ¿?¿?¿ But then, I get the same message with all the in /usr/lib/apache apache cygcheck /usr/lib/apache/* /usr/lib/apache/libphp4.dll - Cannot open /usr/lib/apache/libproxy.dll - Cannot open /usr/lib/apache/libssl.dll - Cannot open /usr/lib/apache/mod_access.dll - Cannot open plenty of mod_libs snipped Use -h to see help about each section Most perplexing If you have everything you need your next step should be to rebase the dll's: http://sources.redhat.com/ml/cygwin/2002-11/msg00798.html http://sources.redhat.com/ml/cygwin/2002-10/msg01836.html http://sources.redhat.com/ml/cygwin/2002-10/msg01018.html There's probably threads ive missed so use the search facility on http://cygwin.com/ml/cygwin/ to look for pointers on this issue. Youll need rebase: Cygwin cd /tmp Cygwin wget http://www.tishler.net/jason/software/rebase/rebase.exe Cygwin rebase -d -b 0x6800 -o 0x1 /lib/apache/*.dll Please read the above threads and whatever you get from the search because im not sure if i have the base correct. Yes, I knew about the rebase issue, and I had to deal with is some time ago, but then the error messages _did_ mention improper addresses on the modules. This error is new, and I don't have much idea what to try next :( Thanks for the help, though :) Javier Hi, all!! I've just re-installed cygwin after a clean install of W2K. I'm trying to get a working system as close as possible to the one I had before, so I installed Cygwin, and the apache and mod_php... and when I've tried to get apache to run, I get: Cygwin /usr/sbin/apachectl start Syntax error on line 237 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 126 /usr/sbin/apachectl start: httpd could not be started error 126 means something like file not found... but I have _no_ clue as to what .dll or file it's missing!! Yes the error 126 means the module could not be loaded: [root@webdev]:{366}:% net helpmsg 126 The specified module could not be found. The _strangest_ thing is that running Dependency walker on my (**working**) old system against libphp4.dll and libssl.php (both will throw the same mistake when trying to run apache), and I get a bunch of unresolved dependencies!!: in libphp4.dll: CYGBZ21.0.DLL CYGCRYPTO.DLL CYGHTTPD.DLL CYGINTL-1.DLL CYGWIN1.DLL CYGXML2-2.DLL CYGZ.DLL PQ.DLL There are a couple more deps, KERNEL32.DLL LIBPHP4.DLL NTDLL.DLL which _are_ resolved. in libssl.dll: CYGCRYPTO.DLL CYGGDBM.DLL CYGHTTPD.DLL CYGSSL.DLL CYGWIN1.DLL Again, these deps are OK: KERNEL32.DLL LIBSSL.DLL NTDLL.DLL So, I have to admit I'm feeling more than a little lost... _any_ help would be greatly appreciated. Thanks!! Javier -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin + Apache out of the box: dlopen: Win32 error 126
The problem with cygcheck was my brain, been working too long with hourse to go still. cygcheck is a windows app so it will not take posix paths. As you see from above use cygpath -w (thanks to Max Bowsher) to convert the path... Here's my cygcheck output: [root@webdev]:{385}:% cygcheck `cygpath -w /usr/lib/apache/libphp4.dll` F:\Cygwin\lib\apache\libphp4.dll F:\Cygwin\bin\cygbz21.0.dll F:\Cygwin\bin\cygwin1.dll C:\WINNT\System32\KERNEL32.dll C:\WINNT\System32\NTDLL.DLL F:\Cygwin\bin\cygcrypto.dll F:\Cygwin\bin\cygintl-1.dll F:\Cygwin\bin\pq.dll F:\Cygwin\bin\cygxml2-2.dll F:\Cygwin\bin\cygz.dll F:\Cygwin\bin\cyghttpd.dll Use -h to see help about each section Do you have all of these dll's? Elfyn [EMAIL PROTECTED] I was going to send you my output from cygcheck but it seems its broken for me and my servers ;( Ive sent a thread to the ml so we'll see whats up with that. What cygwin version are you running under? When did you last update? From what I can remember php requires bz2, zlib, postgresql and expat (or is it libxml2?) packages be installed. Are they? Elfyn [EMAIL PROTECTED] Let's do the things step by step: Elfyn McBratney [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, What does line 237 of httpd.conf contain? Does libphp4.dll exist in /usr/lib/apache? Yes, it does exist: apache dir lib* -rwxr-xr-x1 javier Ninguno 1126912 Nov 29 23:09 libphp4.dll* -rwxrwxrwx1 Administ Ninguno 83968 Apr 27 2002 libproxy.dll* -rwxr-xr-x1 javier Ninguno152064 Nov 29 23:09 libssl.dll* Line 237 is the line that loads libphp4.dll: LoadModule php4_modulelib/apache/libphp4.dll LoadModule ssl_module lib/apache/libssl.dll Run the below and see if you have all of the dll's that are printed out by cygcheck: Cygwin cygcheck /usr/lib/apache/libphp4.dll MM... _Very_ strange results: apache cygcheck /usr/lib/apache/libphp4.dll /usr/lib/apache/libphp4.dll - Cannot open Use -h to see help about each section apache cygcheck /usr/lib/apache/libssl.dll /usr/lib/apache/libssl.dll - Cannot open Use -h to see help about each section ¿?¿?¿ But then, I get the same message with all the in /usr/lib/apache apache cygcheck /usr/lib/apache/* /usr/lib/apache/libphp4.dll - Cannot open /usr/lib/apache/libproxy.dll - Cannot open /usr/lib/apache/libssl.dll - Cannot open /usr/lib/apache/mod_access.dll - Cannot open plenty of mod_libs snipped Use -h to see help about each section Most perplexing If you have everything you need your next step should be to rebase the dll's: http://sources.redhat.com/ml/cygwin/2002-11/msg00798.html http://sources.redhat.com/ml/cygwin/2002-10/msg01836.html http://sources.redhat.com/ml/cygwin/2002-10/msg01018.html There's probably threads ive missed so use the search facility on http://cygwin.com/ml/cygwin/ to look for pointers on this issue. Youll need rebase: Cygwin cd /tmp Cygwin wget http://www.tishler.net/jason/software/rebase/rebase.exe Cygwin rebase -d -b 0x6800 -o 0x1 /lib/apache/*.dll Please read the above threads and whatever you get from the search because im not sure if i have the base correct. Yes, I knew about the rebase issue, and I had to deal with is some time ago, but then the error messages _did_ mention improper addresses on the modules. This error is new, and I don't have much idea what to try next :( Thanks for the help, though :) Javier Hi, all!! I've just re-installed cygwin after a clean install of W2K. I'm trying to get a working system as close as possible to the one I had before, so I installed Cygwin, and the apache and mod_php... and when I've tried to get apache to run, I get: Cygwin /usr/sbin/apachectl start Syntax error on line 237 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 126 /usr/sbin/apachectl start: httpd could not be started error 126 means something like file not found... but I have _no_ clue as to what .dll or file it's missing!! Yes the error 126 means the module could not be loaded: [root@webdev]:{366}:% net helpmsg 126 The specified module could not be found. The _strangest_ thing is that running Dependency walker on my (**working**) old system against libphp4.dll and libssl.php (both will throw the same mistake when trying to run apache), and I get a bunch of unresolved dependencies!!: in libphp4.dll: CYGBZ21.0.DLL CYGCRYPTO.DLL CYGHTTPD.DLL CYGINTL-1.DLL CYGWIN1.DLL CYGXML2-2.DLL CYGZ.DLL PQ.DLL There are a couple more deps, KERNEL32.DLL LIBPHP4.DLL NTDLL.DLL which _are_ resolved. in libssl.dll: CYGCRYPTO.DLL CYGGDBM.DLL CYGHTTPD.DLL CYGSSL.DLL CYGWIN1.DLL Again, these deps are OK: KERNEL32.DLL LIBSSL.DLL NTDLL.DLL So, I have to admit I'm feeling more than a little lost... _any_ help would be greatly appreciated. Thanks!! Javier --
Re: cygwin + Apache out of the box: dlopen: Win32 error 126 (Finally working!!)
I finally got it to run!! :) It was a two-prongued problem... Let's go bit by bit: Elfyn McBratney [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I was going to send you my output from cygcheck but it seems its broken for me and my servers ;( Ive sent a thread to the ml so we'll see whats up with that. What cygwin version are you running under? When did you last update? postinstall uname -a CYGWIN_NT-5.0 UNO 1.3.17(0.67/3/2) 2002-11-27 18:54 i686 unknown I updated like 10 mins ago :) From what I can remember php requires bz2, zlib, postgresql and expat (or is it libxml2?) packages be installed. Are they? Yes they are... but that was part of the problem On another post you stated: The problem with cygcheck was my brain, been working too long with hourse to go still. cygcheck is a windows app so it will not take posix paths. As you see from above use cygpath -w (thanks to Max Bowsher) to convert the path... Here's my cygcheck output: [root@webdev]:{385}:% cygcheck `cygpath -w /usr/lib/apache/libphp4.dll` F:\Cygwin\lib\apache\libphp4.dll F:\Cygwin\bin\cygbz21.0.dll F:\Cygwin\bin\cygwin1.dll C:\WINNT\System32\KERNEL32.dll C:\WINNT\System32\NTDLL.DLL F:\Cygwin\bin\cygcrypto.dll F:\Cygwin\bin\cygintl-1.dll F:\Cygwin\bin\pq.dll F:\Cygwin\bin\cygxml2-2.dll F:\Cygwin\bin\cygz.dll F:\Cygwin\bin\cyghttpd.dll Use -h to see help about each section Do you have all of these dll's? and : javier cygcheck `cygpath -w /usr/lib/apache/libphp4.dll` H:\cygwin\lib\apache\libphp4.dll Error: could not find cygbz21.0.dll H:\cygwin\bin\cygcrypto.dll H:\cygwin\bin\cygwin1.dll H:\WINNT\System32\KERNEL32.dll H:\WINNT\System32\ntdll.dll H:\cygwin\bin\cygintl-1.dll H:\cygwin\bin\pq.dll H:\cygwin\bin\cygxml2-2.dll H:\cygwin\bin\cygz.dll H:\cygwin\bin\cyghttpd.dll Use -h to see help about each section I had arrived to a similar result (I just went and installed MS Support tools, from http://download.microsoft.com/download/win2000platform/Tool/SP3/NT5/EN-U S/SP3SupportTools.exe it _is_ a good idea to get them, as you get goodies such as windiff, ms dependency walker, etc etc... In any case, the problem (number one, at least) was that installin Cygwin from scratch, when you install bzip2, you don't get CYGBZ21.0.DLL; you get a newer version.. So once I used setup to manually install libbz2_0, all was fine... more or less.. Then I _did_ get the rebase problem: postinstall /usr/sbin/apachectl start H:\cygwin\usr\sbin\httpd.exe: *** unable to remap H:\cygwin\bin\cygintl-1.dll to same address as parent(0xB3) ! = 0xB4 /usr/sbin/apachectl start: httpd could not be started _but_ running the post-install script for mod_php (that in turn does rebase the dlls), did solve the problem!!: postinstall ./apache-php.sh.done [activating module `php4' in /etc/apache/httpd.conf] cp libphp4.dll /usr/lib/apache/libphp4.dll cp: cannot stat `libphp4.dll': No such file or directory apxs:Break: Command failed with rc=1 H:\cygwin\lib\apache\libphp4.dll: new base = 67ec, new size = 14 H:\cygwin\bin\cygbz21.0.dll: new base = 67e9, new size = 3 H:\cygwin\bin\cygcrypto.dll: new base = 67dd, new size = c H:\cygwin\bin\cygintl-1.dll: new base = 67db, new size = 2 H:\cygwin\bin\pq.dll: new base = 67d8, new size = 3 H:\cygwin\bin\cygxml2-2.dll: new base = 67ce, new size = a H:\cygwin\bin\cygz.dll: new base = 67cb, new size = 3 postinstall /usr/sbin/apachectl start /usr/sbin/apachectl start: httpd started postinstall /usr/sbin/apachectl stop /usr/sbin/apachectl stop: httpd stopped Thanks a lot for the _great_ help; would've been lost without it! Elfyn [EMAIL PROTECTED] Let's do the things step by step: Elfyn McBratney [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, What does line 237 of httpd.conf contain? Does libphp4.dll exist in /usr/lib/apache? Yes, it does exist: apache dir lib* -rwxr-xr-x1 javier Ninguno 1126912 Nov 29 23:09 libphp4.dll* -rwxrwxrwx1 Administ Ninguno 83968 Apr 27 2002 libproxy.dll* -rwxr-xr-x1 javier Ninguno152064 Nov 29 23:09 libssl.dll* Line 237 is the line that loads libphp4.dll: LoadModule php4_modulelib/apache/libphp4.dll LoadModule ssl_module lib/apache/libssl.dll Run the below and see if you have all of the dll's that are printed out by cygcheck: Cygwin cygcheck /usr/lib/apache/libphp4.dll MM... _Very_ strange results: apache cygcheck /usr/lib/apache/libphp4.dll /usr/lib/apache/libphp4.dll - Cannot open Use -h to see help about each section apache cygcheck /usr/lib/apache/libssl.dll /usr/lib/apache/libssl.dll - Cannot open Use -h to see help about each section ¿?¿?¿ But then, I get the same message with all the in /usr/lib/apache apache cygcheck /usr/lib/apache/*
Re: cygwin + Apache out of the box: dlopen: Win32 error 126 (Finallyworking!!)
Hi, I recall, when reading into this, the bzip2 package maintainer (Charles Wilson I think) said not to copy dll's to satisfy dependencies and also that cygbz21.0.dll is part of the libbz2 package. [snip]... Elfyn [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/