Bug 217092 - apache's apxs utility is broken because of an error in special.mk
Summary: apache's apxs utility is broken because of an error in special.mk
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: httpd
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-24 00:12 UTC by Boban
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 2.2.4-1.fc6
Clone Of:
Environment:
Last Closed: 2007-06-18 16:12:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Boban 2006-11-24 00:12:58 UTC
Description of problem:

Install httpd-devel package, create a sample module with usr/sbin/apxs -g -n foo
and then try to install that module. It gives out error that it cannot find
/etc/httpd/build/instdso.sh. Problem is in line 32 in modules.mk which reads:

$(top_srcdir)/build/instdso.sh SH_LIBTOOL='$(SH_LIBTOOL)' $$i
$(DESTDIR)$(libexecdir);

instead of 

$(top_builddir)/build/instdso.sh SH_LIBTOOL='$(SH_LIBTOOL)' $$i
$(DESTDIR)$(libexecdir);

I changed the line to latter and now it works.

Comment 1 Vlad Safronov 2006-12-07 11:23:55 UTC
FC6, httpd-devel-2.2.3-5

I have the same problem. A custom Apache module compiles and installs only if
change Makefile (my was generated in FC4 some time ago):

Index: Makefile
===================================================================
--- Makefile    (revision 838)
+++ Makefile    (working copy)
@@ -4,8 +4,8 @@
 ##

 builddir=.
-top_srcdir=/etc/httpd
-top_builddir=/etc/httpd
+top_srcdir=/usr/lib/httpd
+top_builddir=/usr/lib/httpd
 include /usr/lib/httpd/build/special.mk

/usr/lib/httpd/build/special.mk

I don't know the right way to fix it. Shall it be special.mk or apxs which
generated Makefile with wrong top_srcdir value.

Comment 2 Boban 2006-12-08 10:05:21 UTC
For me it helped to change that one line in special.mk. Also, another module
that I was trying to compile was giving out same error, and after changing
special.mk it all works as a charm

Btw, is anybody from redhat/fedora maintainers even reading this?

Comment 3 Joe Orton 2006-12-08 10:33:56 UTC
Yes ;) This is fixed in the Raw Hide branch as of a yesterday - thanks for the
report.   I'll leave this open to remember to fix it in a future FC6 httpd update.

The fix used is to:

sed -i '/instdso/s,top_srcdir,top_builddir,' /usr/lib/httpd/build/special.mk



Note You need to log in before you can comment on or make changes to this bug.