https://bz.apache.org/bugzilla/show_bug.cgi?id=62557
Bug ID: 62557
Summary: CMake MSVC build started to fail on linking
mod_lbmethod_bybusyness
Product: Apache httpd-2
Version: 2.4.34
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: mod_lbmethod_(bybusyness|byrequests|bytraffic|heartbea
t|rr)
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Hi,
This build script [1] has been successfully building httpd 2.4.29 with this
single patch applied [2]. 2.4.34 and 2.4.x fails on linking
mod_lbmethod_bybusyness. See the particular step passing just fine in the
undermentioned 2.4.29 build:
2.4.29: PASSES
==============
> [ 80%] Linking C shared library mod_lbmethod_bybusyness.so
> Creating library mod_lbmethod_bybusyness.lib and object
> mod_lbmethod_bybusyness.exp
> [ 80%] Built target mod_lbmethod_bybusyness
> Scanning dependencies of target httxt2dbm
> [ 80%] Building C object CMakeFiles/httxt2dbm.dir/support/httxt2dbm.c.obj
> httxt2dbm.c
> [ 80%] Building RC object CMakeFiles/httxt2dbm.dir/build/win32/httpd.rc.res
> Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
>
> [ 81%] Linking C executable httxt2dbm.exe
Seeing full build log [3] requires an arbitrary GitHub account, but I can
attach it if it is of interest to anyone.
2.4.34: FAILS
=============
Left alone the fact that neither the patch from [2] nor from [4] is present in
the codebase, the build fails on linking mod_lbmethod_bybusyness. I have no
idea why __imp_ap_proxy_balancer_get_best_worker has started to be a problem
for the linker :-(
> [ 81%] Linking C shared library mod_lbmethod_bybusyness.so
> Creating library mod_lbmethod_bybusyness.lib and object
> mod_lbmethod_bybusyness.exp
> mod_lbmethod_bybusyness.c.obj : error LNK2019: unresolved external symbol
> __imp_ap_proxy_balancer_get_best_worker referenced in function
> find_best_bybusyness
> mod_lbmethod_bybusyness.so : fatal error LNK1120: 1 unresolved externals
> LINK Pass 1 failed. with 1120
> NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return
> code '0xffffffff'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"' :
> return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\nmake.exe"' :
> return code '0x2'
> Stop.
Seeing full build log [5] requires an arbitrary GitHub account, but I can
attach it if it is of interest to anyone.
Thank you so much for comments. I might need just a nudge in the right
direction to be able to arrange a patch.
Cheers
Karm
[1]
https://github.com/modcluster/ci.modcluster.io/blob/master/windows/httpd/build.bat#L72
[2] https://bz.apache.org/bugzilla/show_bug.cgi?id=62190
[3] https://ci.modcluster.io/job/httpd-windows/72/label=w2k12r2/consoleText
[4]
https://svn.apache.org/viewvc/httpd/httpd/trunk/CMakeLists.txt?r1=1743512&r2=1743511&pathrev=1743512
[5] https://ci.modcluster.io/job/httpd-windows/label=w2k12r2/71/consoleText
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]