httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47659] New: makefile.win needs check for DBM_LIST, dies on build
Date Fri, 07 Aug 2009 07:30:34 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47659

           Summary: makefile.win needs check for DBM_LIST, dies on build
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: lists@glewis.com


--- Comment #0 from Gregg L. Smith <lists@glewis.com> 2009-08-07 00:30:32 PDT ---
Hello folks,

Trunk R664253 Branch R664254 added the DBD_LIST to the build process. 
The makefile checked if DBD_LIST was defined or it would gently tell you
that the drivers could not be made as none were defined. 

!IFDEF DBD_LIST
..
..
!ELSE
#     no DBD_LIST

_trydbd:
    @echo -----
    @echo apr_dbd drivers will not build unless DBD_LIST is set to the list
    @echo of all the client modules available in the LIB and INCLUDE path.

!ENDIF

Trunk R704771 Branch R712514 removed the check for the DBD_LIST since the odbc
driver was going to be built on Windows since support for odbc is built in. At
this time the above check was removed and the odbc was directly inserted into
the for loop prior to the value of the DBD_LIST render the check unnecessary.
Had this unneeded check been left behind, it would have at least been a clue
when adding dbm in the build. 

Trunk R799069 Branch R799070 

-_trydbd:
+_trydb:
..
..
+    cd ..\dbm
+    for %d in ($(DBM_LIST)) do \
+      $(MAKE) $(MAKEOPT) -f apr_dbm_%d.mak CFG="apr_dbm_%d - Win32 $(LONG)"
RECURSE=0 $(CTARGET)
     cd ..\..\..
 !ELSEIF $(USESLN) == 1
..
..
 !ELSE
..
..
+    @for %d in ($(DBM_LIST)) do \
+      msdev Apache.dsw /USEENV /MAKE \
+        "apr_dbm_%d - Win32 $(LONG)" /NORECURSE $(CTARGET)
 !ENDIF

The problem show up cause unlike odbc, there is no built in support for any of
the DBMs and since they have been added to the dbd build section without a
check to see if DBM_LIST is actually defined, the for loop is being fed and
undefined value and nmake barfs. 

for %d in () do \

--------------------Configuration: apr_dbd_odbc - Win32
Release--------------------
Linking...
   Creating library Release/apr_dbd_odbc-1.lib and object
Release/apr_dbd_odbc-1.exp
Embed .manifest
apr_dbd_odbc-1.dll - 0 error(s), 0 warning(s)
NMAKE : fatal error U1077: 'for' : return code '0x3020302'
Stop.
Error executing NMAKE.

See attached patches. It is not pretty but the dbd and dbm cannot simply be
built together and a separate build for dbm is a made necessary.

Gregg

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message