From: Michael G. <mg...@ti...> - 2008-01-15 08:55:21
|
Greg told you: > > I would guess that > > -L"C:/Program Files/Apache Software Foundation/Apache2.2/lib" > > indicates where the missing library might be found. If a file > > such as 'libhttpd.a' exists in that directory, then maybe the > > spaces in the path are the problem? But that doesn't seem to > > make sense because 'ld' doesn't report any trouble with '-lapr-1', > > which presumably resides in the same place. > > =20 > I did not found any library file with extension .a in the Apache=20 > installation folder. And that is a strong indication as to the source of your problem. > With the -Wl, --verbose option it outputs more lines and it finds the=20 > httpd and apr-1 libraries. That output tells us where the problem is: [lots of lines snipped] > attempt to open C:/Program Files/Apache Software=20 > Foundation/Apache2.2/bin/libapr-1.dll.a failed > attempt to open C:/Program Files/Apache Software=20 > Foundation/Apache2.2/bin/apr-1.dll.a failed > attempt to open C:/Program Files/Apache Software=20 > Foundation/Apache2.2/bin/libapr-1.a failed > attempt to open C:/Program Files/Apache Software=20 > Foundation/Apache2.2/bin/apr-1.lib failed > attempt to open C:/Program Files/Apache Software=20 > Foundation/Apache2.2/bin/libapr-1.dll succeeded [similar lines for libhttpd.dll snipped] Apparently on you system there is _NO_ importlib for apr-1 (and httpd) but only the corresponding DLLs. This is not a problem if these DLLs had been created with MinGW. However I assume they had been created with some version of M$ VC++. I also suspect in "C:/Program Files/Apache Software Foundation/Apache2.2/lib" you'll find importlibs named libapr-1.lib and libhttpd.lib (or something like that). If so you could try to rename them (or create copies) to apr-1.lib and httpd.lib and see whether that solves your problem. If it doesn't (and odds are it won't) then you'll have to either create your own set of importlib libapr-1.a and libhttpd.a (or name them libapr-1.dll.a and libhttpd.dll.a; doesn't really matter) or search the web for someone else's such importlib. The process of creating an importlib is described in the MinGWiki in great detail, e.g. under http://www.mingw.org/MinGWiki/index.php/CreateImportLibraries There are also quite a few other pages describing the problem you are facing as well as providing solutions. HTH, best, Michael =2D-=20 Michael Gerdau email: mg...@ti... GPG-keys available on request or at public keyserver |