Bug 7882

Summary: env LIBS ignored during build
Product: Apache httpd-2 Reporter: David Hill <David.D.Hill>
Component: BuildAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: CLOSED FIXED    
Severity: normal Keywords: PatchAvailable
Priority: P3    
Version: 2.0.43   
Target Milestone: ---   
Hardware: All   
OS: other   

Description David Hill 2002-04-09 18:01:49 UTC
The documented method of adding extra libraries to the build process is broken.

Setting LIBS in the envrionment is the normal method of adding extra libraries
to the link line. But with 2.0.35, this variable is not used during the build.
Adding $(ALL_LIBRARIES) into build/programs.mk corrects the problem.

*** build/program.mk.orig       Tue Apr  9 13:55:09 2002
--- build/program.mk    Tue Apr  9 13:37:52 2002
***************
*** 57,60 ****
  PROGRAM_OBJECTS = $(PROGRAM_SOURCES:.c=.lo)
  
  $(PROGRAM_NAME): $(PROGRAM_DEPENDENCIES) $(PROGRAM_OBJECTS)
!       $(LINK) $(PROGRAM_LDFLAGS) $(PROGRAM_OBJECTS) $(PROGRAM_LDADD)
--- 57,60 ----
  PROGRAM_OBJECTS = $(PROGRAM_SOURCES:.c=.lo)
  
  $(PROGRAM_NAME): $(PROGRAM_DEPENDENCIES) $(PROGRAM_OBJECTS)
!       $(LINK) $(PROGRAM_LDFLAGS) $(PROGRAM_OBJECTS) $(PROGRAM_LDADD)
$(ALL_LIBS)
Comment 1 Joshua Slive 2002-10-17 02:35:27 UTC
[This is a mass bug update.]
This bug reports a problem in an older version of Apache 2.
Could you please update to the most recent version and see
if you can reproduce this problem.  If the bug still exists,
please update the bug with the latest version number.  If 
the bug no longer exists, please close the bug report.

Sorry for this impersonal response, but we get many more bug
reports than our volunteers can keep up with.
Thanks for using Apache!
Comment 2 Joshua Slive 2002-11-02 20:18:52 UTC
[This is a mass bug update.] [Resolve-20021102]
No response from submitter; assuming issue is resolved.
If the problem still exists in the lastest version,
please reopen this report and update appropriately.
Comment 3 Noah Arliss 2003-01-10 15:50:49 UTC
This is still a bug in apache 2.0.43. I've tried the patch included here making 
the changes by hand and they appear to solve the problem.
Comment 4 Joe Orton 2004-02-29 00:36:51 UTC
Fixed in HEAD; thanks for the report.

http://cvs.apache.org/viewcvs.cgi/httpd-2.0/Makefile.in?r1=1.138&r2=1.139
Comment 5 Kartik Subbarao 2004-08-23 18:39:35 UTC
I see that the fix has been checked into HEAD. But when will this be rolled into
an actual release? The buggy Makefile.in is still there as of 2.0.50.
Comment 6 Joe Orton 2004-08-23 20:11:58 UTC
This has now been proposed for backport to 2.0.