Re: Load module .a

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16.10.2014 14:21, Eric Covener wrote:
You can't. Usually this happens when your version of libtool doesn't
know how to create shared libraries on your platform (you can find the
message in config.log).  It can be from bad compiler/linker flags or
from an out-of-date libtool.  Unfortunately the httpd build does not
break up front under this condition.

In config.log no errors appear about modules. They are marked or as static, or as shared, or as not to build. But if a module is marked as shared, why it does not create *.so library?

Meanwhile I've found the solution:

gcc -shared -Wl,--whole-archive /opt/httpd/modules/mod_foo.a -Wl,--no-whole-archive -o /opt/httpd/modules/mod_foo.so

I've done this command for all modules in modules directory and loaded in httpd without problem. It's a trick thought.

--
Mimiko desu.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux