The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Building mod_fcgid and others  (Read 12671 times)

0mni

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Building mod_fcgid and others
« on: April 30, 2011, 04:52:31 PM »

I am trying to figure out the proper way to build modules for apache.  This is my first experience building with Windows, I am familiar and comfortable with linux build system.

I am building in VS2008 (VC9).  Apache has been built successfully, and appears to be operation.  It has not crashed or died on me.

The documentation is very unclear as to how to build for modules for VC9 and no matter what I try, I just run into road blocks.

Here is the output from my latest attempts in command prompt.
Code: [Select]
C:\apache-sdk\httpd-2.2.17\modules\fcgid>set APACHE2_HOME=C:\apache-sdk\httpd-2.
2.17

C:\apache-sdk\httpd-2.2.17\modules\fcgid>NMAKE /f "mod_fcgid.mak" CFG="mod_fcgid
 - Win32 Release"

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        if not exist ".\Release/" mkdir ".\Release"
        tempfile.bat
        rc.exe /l 0x409 /fo".\Release\mod_fcgid.res" /i "../../srclib/apr/includ
e" /i "C:\apache-sdk\httpd-2.2.17/include" /d "NDEBUG" .\mod_fcgid.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm994D.tmp
fcgid_bridge.c
fcgid_bucket.c
fcgid_conf.c
fcgid_filter.c
fcgid_pm_main.c
fcgid_pm_win.c
fcgid_proc_win.c
fcgid_proctbl_win.c
fcgid_protocol.c
fcgid_spawn_ctl.c
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.

C:\apache-sdk\httpd-2.2.17\modules\fcgid>nmake /f makefile.nt

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1052: file 'makefile.nt' not found
Stop.

C:\apache-sdk\httpd-2.2.17\modules\fcgid>cd ../../

C:\apache-sdk\httpd-2.2.17>set APACHE2_HOME=C:\apache-sdk\httpd-2.2.17

C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win  INSTDIR=C:\apache2 insta
llr

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!

INSTDIR      = C:\apache2
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17

To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!
        echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
        cd modules\fcgid
        "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
        cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm4127.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!

INSTDIR      = \Apache22
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17

To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!
        echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
        cd modules\fcgid
        "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
        cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm4092.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win INSTDIR=C:\apache2

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!

INSTDIR      = C:\apache2
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17

To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!
        echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
        cd modules\fcgid
        "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
        cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nm7C7D.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\apache-sdk\httpd-2.2.17>NMAKE -f Makefile-fcgid.win INSTDIR=C:\apache-sdk\htt
pd-2.2.17

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!

INSTDIR      = C:\apache-sdk\httpd-2.2.17
APACHE2_HOME = C:\apache-sdk\httpd-2.2.17

To change these options use 'nmake -f Makefile-fcgid.win [option=value]'
Example: nmake -f Makefile-fcgid.win

Point INSTDIR at the directory containing an already installed httpd
including build support directories of lib and include.  It must
include apr and apr-util.  mod_fcgid cannot build without these files!
        echo Building Win32 Release targets (R suffixes)
Building Win32 Release targets (R suffixes)
        cd modules\fcgid
        "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -n
ologo -f mod_fcgid.mak CFG="mod_fcgid - Win32 Release" RECURSE=0
        cl.exe @C:\Users\0MNI~1\AppData\Local\Temp\nmE4E2.tmp
mod_fcgid.c
mod_fcgid.c(27) : fatal error C1083: Cannot open include file: 'mod_status.h': N
o such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\apache-sdk\httpd-2.2.17>
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: Building mod_fcgid and others
« Reply #1 on: April 30, 2011, 08:12:40 PM »

That is a bug in the makefile when building mod_fcgid in tree in my opinion
simple solution, copy the mod_status.h file from httpd-2.2.17\modules\generators to the httpd-2.2.17\include directory.
Logged

0mni

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Building mod_fcgid and others
« Reply #2 on: April 30, 2011, 08:43:13 PM »

WOW, that worked perfectly :D

Thanks
Logged

0mni

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Building mod_fcgid and others
« Reply #3 on: May 08, 2011, 08:11:51 AM »

I am coming across another error.  It happens when building curl so I can compile mod_security.

These are my build commands:
Code: [Select]
SET HTTPD_BUILD=C:\build\httpd-2.2.17
SET INCLUDE=%INCLUDE%;%HTTPD_BUILD%\srclib\zlib
SET LIB=%LIB%;%HTTPD_BUILD%\srclib\zlib
IF EXIST %HTTPD_BUILD%\srclib\zlib\zlib.lib  MOVE %HTTPD_BUILD%\srclib\zlib\zlib.lib %HTTPD_BUILD%\srclib\zlib\zlib.lib.bak

CD C:\build\pcre-8.12
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
NMAKE

CD C:\build\libxml2-2.7.8\win32
CSCRIPT configure.js iconv=no vcmanifest=yes zlib=yes
NMAKE -f Makefile.msvc

CD C:\build\lua-5.1.4\src
CL /Ox /arch:SSE2 /GF /GL /Gy /FD /EHsc /MD  /Zi /TC /wd4005 /D "_MBCS" /D "LUA_CORE" /D "LUA_BUILD_AS_DLL" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_WIN32" /D "_WINDLL" /c *.c
DEL lua.obj luac.obj
LINK /DLL /LTCG /DEBUG /OUT:lua5.1.dll *.obj
IF EXIST lua5.1.dll.manifest MT  -manifest lua5.1.dll.manifest -outputresource:lua5.1.dll;2

CD C:\build\curl-7.21.6
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True -DCURL_ZLIB=True
NMAKE

When I get to NMAKE, I get this error:
Code: [Select]
C:\build\curl-7.21.6>NMAKE

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Scanning dependencies of target libcurl
[  0%] Building C object lib/CMakeFiles/libcurl.dir/file.c.obj
file.c
C:\build\curl-7.21.6\lib\file.c(554) : warning C4244: 'function' : conversion fr
om 'curl_off_t' to 'long', possible loss of data
[  1%] Building C object lib/CMakeFiles/libcurl.dir/timeval.c.obj
timeval.c
[  2%] Building C object lib/CMakeFiles/libcurl.dir/base64.c.obj
base64.c
[  3%] Building C object lib/CMakeFiles/libcurl.dir/hostip.c.obj
hostip.c
[  4%] Building C object lib/CMakeFiles/libcurl.dir/progress.c.obj
progress.c
[  5%] Building C object lib/CMakeFiles/libcurl.dir/formdata.c.obj
formdata.c
[  6%] Building C object lib/CMakeFiles/libcurl.dir/cookie.c.obj
cookie.c
[  7%] Building C object lib/CMakeFiles/libcurl.dir/http.c.obj
http.c
[  8%] Building C object lib/CMakeFiles/libcurl.dir/sendf.c.obj
sendf.c
[  9%] Building C object lib/CMakeFiles/libcurl.dir/ftp.c.obj
ftp.c
[  9%] Building C object lib/CMakeFiles/libcurl.dir/url.c.obj
url.c
[ 10%] Building C object lib/CMakeFiles/libcurl.dir/dict.c.obj
dict.c
[ 11%] Building C object lib/CMakeFiles/libcurl.dir/if2ip.c.obj
if2ip.c
[ 12%] Building C object lib/CMakeFiles/libcurl.dir/speedcheck.c.obj
speedcheck.c
[ 13%] Building C object lib/CMakeFiles/libcurl.dir/ldap.c.obj
ldap.c
[ 14%] Building C object lib/CMakeFiles/libcurl.dir/ssluse.c.obj
ssluse.c
[ 15%] Building C object lib/CMakeFiles/libcurl.dir/version.c.obj
version.c
[ 16%] Building C object lib/CMakeFiles/libcurl.dir/getenv.c.obj
getenv.c
[ 17%] Building C object lib/CMakeFiles/libcurl.dir/escape.c.obj
escape.c
[ 18%] Building C object lib/CMakeFiles/libcurl.dir/mprintf.c.obj
mprintf.c
[ 18%] Building C object lib/CMakeFiles/libcurl.dir/telnet.c.obj
telnet.c
[ 19%] Building C object lib/CMakeFiles/libcurl.dir/netrc.c.obj
netrc.c
[ 20%] Building C object lib/CMakeFiles/libcurl.dir/getinfo.c.obj
getinfo.c
[ 21%] Building C object lib/CMakeFiles/libcurl.dir/transfer.c.obj
transfer.c
[ 22%] Building C object lib/CMakeFiles/libcurl.dir/strequal.c.obj
strequal.c
[ 23%] Building C object lib/CMakeFiles/libcurl.dir/easy.c.obj
easy.c
[ 24%] Building C object lib/CMakeFiles/libcurl.dir/security.c.obj
security.c
[ 25%] Building C object lib/CMakeFiles/libcurl.dir/krb4.c.obj
krb4.c
[ 26%] Building C object lib/CMakeFiles/libcurl.dir/curl_fnmatch.c.obj
curl_fnmatch.c
[ 27%] Building C object lib/CMakeFiles/libcurl.dir/fileinfo.c.obj
fileinfo.c
[ 27%] Building C object lib/CMakeFiles/libcurl.dir/ftplistparser.c.obj
ftplistparser.c
[ 28%] Building C object lib/CMakeFiles/libcurl.dir/wildcard.c.obj
wildcard.c
[ 29%] Building C object lib/CMakeFiles/libcurl.dir/krb5.c.obj
krb5.c
[ 30%] Building C object lib/CMakeFiles/libcurl.dir/memdebug.c.obj
memdebug.c
[ 31%] Building C object lib/CMakeFiles/libcurl.dir/http_chunks.c.obj
http_chunks.c
[ 32%] Building C object lib/CMakeFiles/libcurl.dir/strtok.c.obj
strtok.c
[ 33%] Building C object lib/CMakeFiles/libcurl.dir/connect.c.obj
connect.c
[ 34%] Building C object lib/CMakeFiles/libcurl.dir/llist.c.obj
llist.c
[ 35%] Building C object lib/CMakeFiles/libcurl.dir/hash.c.obj
hash.c
[ 36%] Building C object lib/CMakeFiles/libcurl.dir/multi.c.obj
multi.c
[ 36%] Building C object lib/CMakeFiles/libcurl.dir/content_encoding.c.obj
content_encoding.c
[ 37%] Building C object lib/CMakeFiles/libcurl.dir/share.c.obj
share.c
[ 38%] Building C object lib/CMakeFiles/libcurl.dir/http_digest.c.obj
http_digest.c
[ 39%] Building C object lib/CMakeFiles/libcurl.dir/md4.c.obj
md4.c
[ 40%] Building C object lib/CMakeFiles/libcurl.dir/md5.c.obj
md5.c
[ 41%] Building C object lib/CMakeFiles/libcurl.dir/curl_rand.c.obj
curl_rand.c
[ 42%] Building C object lib/CMakeFiles/libcurl.dir/http_negotiate.c.obj
http_negotiate.c
[ 43%] Building C object lib/CMakeFiles/libcurl.dir/http_ntlm.c.obj
http_ntlm.c
[ 44%] Building C object lib/CMakeFiles/libcurl.dir/inet_pton.c.obj
inet_pton.c
[ 45%] Building C object lib/CMakeFiles/libcurl.dir/strtoofft.c.obj
strtoofft.c
[ 45%] Building C object lib/CMakeFiles/libcurl.dir/strerror.c.obj
strerror.c
[ 46%] Building C object lib/CMakeFiles/libcurl.dir/hostares.c.obj
hostares.c
[ 47%] Building C object lib/CMakeFiles/libcurl.dir/hostasyn.c.obj
hostasyn.c
[ 48%] Building C object lib/CMakeFiles/libcurl.dir/hostip4.c.obj
hostip4.c
[ 49%] Building C object lib/CMakeFiles/libcurl.dir/hostip6.c.obj
hostip6.c
[ 50%] Building C object lib/CMakeFiles/libcurl.dir/hostsyn.c.obj
hostsyn.c
[ 51%] Building C object lib/CMakeFiles/libcurl.dir/hostthre.c.obj
hostthre.c
[ 52%] Building C object lib/CMakeFiles/libcurl.dir/inet_ntop.c.obj
inet_ntop.c
[ 53%] Building C object lib/CMakeFiles/libcurl.dir/parsedate.c.obj
parsedate.c
[ 54%] Building C object lib/CMakeFiles/libcurl.dir/select.c.obj
select.c
[ 54%] Building C object lib/CMakeFiles/libcurl.dir/gtls.c.obj
gtls.c
[ 55%] Building C object lib/CMakeFiles/libcurl.dir/sslgen.c.obj
sslgen.c
[ 56%] Building C object lib/CMakeFiles/libcurl.dir/tftp.c.obj
tftp.c
[ 57%] Building C object lib/CMakeFiles/libcurl.dir/splay.c.obj
splay.c
[ 58%] Building C object lib/CMakeFiles/libcurl.dir/strdup.c.obj
strdup.c
[ 59%] Building C object lib/CMakeFiles/libcurl.dir/socks.c.obj
socks.c
[ 60%] Building C object lib/CMakeFiles/libcurl.dir/ssh.c.obj
ssh.c
[ 61%] Building C object lib/CMakeFiles/libcurl.dir/nss.c.obj
nss.c
[ 62%] Building C object lib/CMakeFiles/libcurl.dir/qssl.c.obj
qssl.c
[ 63%] Building C object lib/CMakeFiles/libcurl.dir/rawstr.c.obj
rawstr.c
[ 63%] Building C object lib/CMakeFiles/libcurl.dir/curl_addrinfo.c.obj
curl_addrinfo.c
[ 64%] Building C object lib/CMakeFiles/libcurl.dir/socks_gssapi.c.obj
socks_gssapi.c
[ 65%] Building C object lib/CMakeFiles/libcurl.dir/socks_sspi.c.obj
socks_sspi.c
[ 66%] Building C object lib/CMakeFiles/libcurl.dir/curl_sspi.c.obj
curl_sspi.c
[ 67%] Building C object lib/CMakeFiles/libcurl.dir/slist.c.obj
slist.c
[ 68%] Building C object lib/CMakeFiles/libcurl.dir/nonblock.c.obj
nonblock.c
[ 69%] Building C object lib/CMakeFiles/libcurl.dir/curl_memrchr.c.obj
curl_memrchr.c
[ 70%] Building C object lib/CMakeFiles/libcurl.dir/imap.c.obj
imap.c
[ 71%] Building C object lib/CMakeFiles/libcurl.dir/pop3.c.obj
pop3.c
[ 72%] Building C object lib/CMakeFiles/libcurl.dir/smtp.c.obj
smtp.c
[ 72%] Building C object lib/CMakeFiles/libcurl.dir/pingpong.c.obj
pingpong.c
[ 73%] Building C object lib/CMakeFiles/libcurl.dir/rtsp.c.obj
rtsp.c
[ 74%] Building C object lib/CMakeFiles/libcurl.dir/curl_threads.c.obj
curl_threads.c
[ 75%] Building C object lib/CMakeFiles/libcurl.dir/warnless.c.obj
warnless.c
[ 76%] Building C object lib/CMakeFiles/libcurl.dir/hmac.c.obj
hmac.c
[ 77%] Building C object lib/CMakeFiles/libcurl.dir/polarssl.c.obj
polarssl.c
[ 78%] Building C object lib/CMakeFiles/libcurl.dir/curl_rtmp.c.obj
curl_rtmp.c
[ 79%] Building C object lib/CMakeFiles/libcurl.dir/openldap.c.obj
openldap.c
[ 80%] Building C object lib/CMakeFiles/libcurl.dir/curl_gethostname.c.obj
curl_gethostname.c
[ 81%] Building C object lib/CMakeFiles/libcurl.dir/gopher.c.obj
gopher.c
[ 81%] Building C object lib/CMakeFiles/libcurl.dir/axtls.c.obj
axtls.c
[ 82%] Building C object lib/CMakeFiles/libcurl.dir/idn_win32.c.obj
idn_win32.c
[ 83%] Building C object lib/CMakeFiles/libcurl.dir/http_negotiate_sspi.c.obj
http_negotiate_sspi.c
[ 84%] Building C object lib/CMakeFiles/libcurl.dir/cyassl.c.obj
cyassl.c
[ 85%] Building C object lib/CMakeFiles/libcurl.dir/http_proxy.c.obj
http_proxy.c
[ 86%] Building C object lib/CMakeFiles/libcurl.dir/non-ascii.c.obj
non-ascii.c
[ 87%] Building RC object lib/CMakeFiles/libcurl.dir/libcurl.rc.res
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.

Linking C shared library ..\libcurl.dll
MSVCRT.lib(MSVCR90.dll) : error LNK2005: __strdup already defined in LIBCMT.lib(
strdup.obj)
   Creating library ..\libcurl_imp.lib and object ..\libcurl_imp.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; us
e /NODEFAULTLIB:library
..\libcurl.dll : fatal error LNK1169: one or more multiply defined symbols found

LINK Pass 1 failed. with 1169
NMAKE : fatal error U1077: '"C:\Program Files (x86)\CMake 2.6\bin\cmake.exe"' :
return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.

I tried:
Code: [Select]
NMAKE /NODEFAULTLIB:LIBCMT
But it just stops with an error that LIBCMT was not found.

Any help would be appreciated :)

Also, if you could point me in the right direction on building mod_log_rotate I would be very happy :)
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: Building mod_fcgid and others
« Reply #4 on: May 09, 2011, 02:01:06 PM »

Building mod log rotate is pretty easy. Path I set at the start is to a already installed / compiled apache.

Code: [Select]
set APACHE=\Apache22_x86
cl  /nologo /MD /O2 /LD /W3 -DWIN32 -D_WIN32 -I%APACHE%\include /c /Fomod_log_rotate.obj mod_log_rotate.c
link kernel32.lib "%APACHE%\lib\libhttpd.lib" "%APACHE%\lib\libapr-1.lib" "%APACHE%\lib\libaprutil-1.lib" /nologo /subsystem:windows /dll /out:mod_log_rotate.so mod_log_rotate.obj
MT -manifest mod_log_rotate.so.manifest -outputresource:mod_log_rotate.so;2

I also wanted a signature for mod log rotate. So I created one.
Here is my patch
Code: [Select]
--- mod_log_rotate.c.orig 2008-07-24 13:17:45.000000000 +0200
+++ mod_log_rotate.c 2010-11-21 02:31:43.123503300 +0100
@@ -399,6 +399,19 @@
     return add;
 }
 
+/* map into the first apache */
+static int log_rotate_post_config( apr_pool_t * p, apr_pool_t * plog, apr_pool_t * ptemp, server_rec * s)
+{
+ ap_add_version_component(p, "mod_log_rotate/1.00");
+ return OK;
+}
+
+static void log_rotate_register_hooks(apr_pool_t *p)
+{
+ ap_hook_post_config( log_rotate_post_config,   NULL, NULL, APR_HOOK_MIDDLE );
+}
+
+
 module AP_MODULE_DECLARE_DATA log_rotate_module = {
     STANDARD20_MODULE_STUFF,
     NULL,                       /* create per-dir config */
@@ -406,6 +419,6 @@
     make_log_options,           /* server config */
     merge_log_options,          /* merge server config */
     rotate_log_cmds,            /* command apr_table_t */
-    NULL                        /* register hooks */
+    log_rotate_register_hooks   /* register hooks */
 };
Logged

0mni

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Building mod_fcgid and others
« Reply #5 on: May 09, 2011, 06:40:56 PM »

Log rotate built without any problems, that worked perfectly :)

Do you have any thoughts on why curl will not build ? 
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: Building mod_fcgid and others
« Reply #6 on: May 10, 2011, 07:20:59 AM »

/NODEFAULTLIB:LIBCMT

needs to be added to the link line, or LFLAGS typically in most makefiles

Logged

0mni

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Building mod_fcgid and others
« Reply #7 on: May 11, 2011, 04:29:41 AM »

I had tried doing : /NODEFAULTLIB:LIBCMT

But with no sucess, I get a message back stating that LIBCMT could not be found.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: Building mod_fcgid and others
« Reply #8 on: May 11, 2011, 05:10:14 AM »

well, without compiling it myself, I can't tell you much more at this time. I see I had compiled 7.21.2 at one time but do not remember running into any problems. I built it in the IDE though, not at the command line.

Since I am going to be up all night building Apache 2.2.18, I'll throw this on top and let you know what I find out.


Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 831
Re: Building mod_fcgid and others
« Reply #9 on: April 11, 2012, 12:22:50 AM »

Ugh! I never did  :(
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13