https://bz.apache.org/bugzilla/show_bug.cgi?id=69671
Bug ID: 69671
Summary: Building the Apache Monitor binary with CMake
Product: Apache httpd-2
Version: 2.4.63
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: support
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The current HTTPD CMakeLists.txt file still doesn't build the ApacheMonitor.exe
binary, with a comment in there about duplicate manifest errors, and the
relevant CMake commands being commented out, viz:
# getting duplicate manifest error with ApacheMonitor
# ADD_EXECUTABLE(ApacheMonitor support/win32/ApacheMonitor.c
support/win32/ApacheMonitor.rc)
# SET(install_targets ${install_targets} ApacheMonitor)
# SET(install_bin_pdb ${install_bin_pdb} $<TARGET_PDB_FILE:ApacheMonitor>)
# SET_TARGET_PROPERTIES(ApacheMonitor PROPERTIES WIN32_EXECUTABLE TRUE)
# SET_TARGET_PROPERTIES(ApacheMonitor PROPERTIES COMPILE_FLAGS "-DAPP_FILE
-DLONG_NAME=ApacheMonitor -DBIN_NAME=ApacheMonitor.exe ${EXTRA_COMPILE_FLAGS}")
# TARGET_LINK_LIBRARIES(ApacheMonitor ${EXTRA_LIBS} ${HTTPD_SYSTEM_LIBS}
comctl32 wtsapi32)
This is the link error you get if you enable building it:
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1,
language:0x0409
This problem evidently occurred following a Visual Studio update a few years
ago, but can be fixed by a minor edit to the legacy ApacheMonitor.rc file (this
file hasn't changed in 16 years according to HTTPD GitHub). The fix is to
simply comment out the reference to a manifest file in the resource file with
two //'s, e.g.
C:\Development\apache24\src\httpd-2.4.63\support\win32>diff -u
apachemonitor.rc.orig apachemonitor.rc
--- apachemonitor.rc.orig Mon Jul 20 09:34:36 2009
+++ apachemonitor.rc Mon May 05 19:22:08 2025
@@ -26,7 +26,7 @@
IDI_APSRVMON ICON DISCARDABLE "ApacheMonitor.ico"
IDI_ICOSTOP ICON DISCARDABLE "apstop.ico"
IDI_ICORUN ICON DISCARDABLE "aprun.ico"
-CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "ApacheMonitor.manifest"
+// CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "ApacheMonitor.manifest"
IDD_DLGSERVICES DIALOGEX 0, 0, 350, 192
STYLE DS_MODALFRAME | DS_SETFOREGROUND | WS_MINIMIZEBOX | WS_VISIBLE |
I note someone recommended a similar fix method on StackOverflow some 5 years
ago:
https://stackoverflow.com/questions/48642725/c-vs-2015-fatal-error-duplicate-resource-typemanifest-name1-language0
Could a developer confirm this fix works for them, and if so update the
support/win32/ApacheMonitor.rc and CMakeLists.txt files accordingly?
--
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]