logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Failed linking C shared library mod_md.so Page Previous  1, 2
Author
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Sun 12 Jun '22 21:39    Post subject: Reply with quote

tanquang wrote:
Apache found a static library file (libcurl.lib file) but it still had the same error in the step [ 65%] Linking C shared library mod_md.so.
I don't understand why it still appears?!

When you want to build all of Apache (in stead of only mod_md) with a static libcurl.lib you will also have to add the CURL_STATICLIB flag.
Back to top
tanquang



Joined: 21 Mar 2020
Posts: 58
Location: Vietnam

PostPosted: Mon 13 Jun '22 14:28    Post subject: Reply with quote

Jan-E wrote:
When you want to build all of Apache (in stead of only mod_md) with a static libcurl.lib you will also have to add the CURL_STATICLIB flag.

You mean the CURL_STATICLIB flag must be added to the HTTPD cmake command line, not in cURL? Or must it be added in both HTTPD and cURL commands?
Back to top
tanquang



Joined: 21 Mar 2020
Posts: 58
Location: Vietnam

PostPosted: Tue 14 Jun '22 5:47    Post subject: Reply with quote

Jan-E wrote:
When you want to build all of Apache (in stead of only mod_md) with a static libcurl.lib you will also have to add the CURL_STATICLIB flag.

As far as I noticed, the static library file (libcurl.lib file) of cURL has been added to the link command:
Code:
LINK: command "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /nologo @CMakeFiles\mod_md.dir\objects1.rsp /out:mod_md.so /implib:mod_md.lib /pdb:C:\httpd\bin\mod_md.pdb /dll /version:0.0 /base:@C:/httpd/bin/BaseAddr.ref,mod_md.so /machine:X86 /INCREMENTAL:NO \phpStudy\Apache\lib\libssl.lib \phpStudy\Apache\lib\libcrypto.lib \phpStudy\Apache\lib\libcurl.lib \phpStudy\Apache\lib\jansson.lib mod_watchdog.lib libhttpd.lib \phpStudy\Apache\lib\libapr-1.lib \phpStudy\Apache\lib\libaprutil-1.lib \phpStudy\Apache\lib\apr_ldap-1.lib ws2_32.lib mswsock.lib \phpStudy\Apache\lib\pcre.lib ws2_32.lib mswsock.lib kernel32.libuser32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:mod_md.so.manifest" failed (exit code 1120) with the following output:
...

But the same error still occurs. I don't know why?
Back to top


Reply to topic   Topic: Failed linking C shared library mod_md.so View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads Page Previous  1, 2