Edward Rudd | 4 Jan 2004 21:22

Re: Build Problems for Apache 2 port of mod_log_sql

did you try running the install with gmake instead of BSD make?
I think the $(subst mod_,,mod_log_sql) may be throwing off BSD make. It
maybe a gmake extension.. But I've removed that subst command anyway
from the next soon to be released version (with the documentation back
in). As it's not needed for this module, I needed it for my mod_ftp as
apxs couldn't figure out what the module name was.. (multiple source
files)..

On Sun, 2004-01-04 at 11:43, David Meier wrote:
> OK, I am back from my short new years vacation.
> 
> > what version of make are you using? (make -v) and can you attach a copy
> > of the generated Makefile.
> 
> # make -v
> make: no target to make.
> # gmake -v
> GNU Make 3.80
> Copyright (C) 2002  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> 
> > That command should have been
> > /usr/local/apache/bin/apxs -i -a -n log_sql mod_log_sql.la
> 
> You'll find the generated makefile pasted into the mailbody below. Dave.
> 
> Makefile:
> 
> # Makefile.  Generated from Makefile.in by configure.
> 
> # Modify these top variables.
> SUBDIRS =
> SOURCES = \
> 	mod_log_sql.c
> 
> HEADERS =
> 
> CFLAGS = -Wc,-Wall -Wc,-Werror -Wc,-fno-strict-aliasing
> 
> INCLUDES = -I/usr/local/mysql/include -I/usr/include/mysql
> -I/usr/mysql/include -I/usr/local/include/mysql
> -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql
> 
> LDADD = -L/usr/local/mysql/lib -L/usr/lib/mysql -L/usr/mysql/lib
> -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql
> -lmysqlclient -lz -lm
> 
> EXTRA_DIST = INSTALL LICENSE CHANGELOG make_combined_log.pl
> 
> TARGET = mod_log_sql.la
> 
> #Don't modify anything below here
> 
> PROVIDERS_SUBDIRS =  <at> subdirs <at> 
> 
> srcdir = /usr/local/mod-log-sql-1.91
> builddir = /usr/local/mod-log-sql-1.91
> 
> OBJ = $(SOURCES:.c=.o)
> 
> LO = $(SOURCES:.c=.lo)
> 
> SLO = $(SOURCES:.c=.slo)
> 
> STD_DIST = install-sh \
> 	config.sub \
> 	config.guess \
> 	aclocal.m4 \
> 	Makefile.in \
> 	configure.ac \
> 	configure \
> 	stamp-h.in \
> 	config.h.in
> 
> DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS)
> 
> all: $(TARGET) all-subdirs
> 
> all-subdirs install-subdirs update-subdirs clean-subdirs distclean-subdirs:
> 	 <at> otarget=`echo $ <at> |sed s/-subdirs//`; \
> 	list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
> 	for i in $$list; do \
> 		if test -d "$$i"; then \
> 			target="$$otarget"; \
> 			echo "Making $$target in $$i"; \
> 			if test "$$i" = "."; then \
> 				made_local=yes; \
> 				target="local-$$target"; \
> 			fi; \
> 			(cd $$i && $(MAKE) $$target) || exit 1; \
> 		fi; \
> 	done; \
> 
> TODO: TODO_HEADER $(SOURCES) $(HEADERS)
> 	./gen_todo.pl
> 
> $(TARGET):
> 	/usr/local/apache/bin/apxs -c -o mod_log_sql.la $(INCLUDES) $(CFLAGS)
> $(LDADD) -DHAVE_CONFIG_H $(SOURCES)
> 
> include:
> 	rm -rf include
> 	ln -s /usr/local/apache/include include
> 
> install: install-subdirs
> 	/usr/local/apache/bin/apxs -i -a -n $(subst mod_,,mod_log_sql) $(TARGET)
> 
> update: update-subdirs
> 	/usr/local/apache/bin/apxs -i -n $(subst mod_,,mod_log_sql) $(TARGET)
> 
> clean: clean-subdirs
> 	$(RM) $(OBJ) $(SLO) $(LO) $(TARGET) .deps
> 
> distclean: clean distclean-subdirs
> 	$(RM) TODO config.status config.log config.h config.h.in \
> 	configure stamp-h stamp-h.in Makefile
> 	$(RM) -r autom4te-2.53.cache .libs
> 
> DESTDIR = mod-log-sql-1.91
> DESTTGZ = $(DESTDIR).tar.gz
> dist:
> 	 <at> rm -rf $(DESTDIR); \
> 	list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \
> 	for i in $$list; do \
> 		if test -d "$$i"; then \
> 			target=local-dist; \
> 			echo "Making $$target in $$i"; \
> 			if test "$$i" = "."; then \
> 				made_local=yes; \
> 				target="local-dist"; \
> 			fi; \
> 			NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \
> 			echo $(NEWDESTDIR); \
> 			(cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit
> 1; \
> 		fi; \
> 	done;
> 	if test "$$made_local" != "yes"; then \
> 		$(MAKE) "local-dist" || exit 1; \
> 	fi
> 	tar -zcf $(DESTTGZ) $(DESTDIR)
> 	rm -rf $(DESTDIR)
> 
> local-dist: $(DISTFILES)
> 	mkdir -p $(DESTDIR)
> 	cp -dp --parents $(DISTFILES) $(DESTDIR)
> 
> $(builddir)/.deps: depend
> 
> depend: $(SOURCES) $(HEADERS)
> 	if test -n "`ls $(srcdir)/*.c 2> /dev/null`"; then \
> 		$(CC) -MM -MT $(TARGET) -I/usr/local/apache/include $(INCLUDES)
> $(srcdir)/*.c > $(builddir)/.deps || true; \
> 	fi
> 
> include $(builddir)/.deps
> 
> .PHONY: include all-subdirs update-subdirs install-subdirs \
> 	clean-subdirs distclean-subdirs dist
> 
> # Regenerate makefiles
> # autoheader might not change config.h.in, so touch a stamp file.
> $(srcdir)/config.h.in: stamp-h.in
> $(srcdir)/stamp-h.in: configure.ac aclocal.m4
> 	cd $(srcdir) && autoheader-2.53
> 	echo timestamp > $(srcdir)/stamp-h.in
> 
> config.h: stamp-h
> stamp-h: config.h.in config.status
> 	./config.status
> 
> $(srcdir)/configure: configure.ac aclocal.m4
> 	cd $(srcdir) && autoconf-2.53
> 
> Makefile: Makefile.in config.status
> 	./config.status
> 
> config.status: configure
> 	./config.status --recheck
> 
> ____________________________________________________________________
> Reminder: to unsubscribe, send email to <majordomo <at> grubbybaby.com>
> with the words "unsubscribe mod_log_sql" in the body (w/o quotes).
> The module homepage is http://www.grubbybaby.com/mod_log_sql/
> The list archives are here:
> http://news.gmane.org/thread.php?group=gmane.comp.apache.mod-log-sql
--

-- 
Edward Rudd <eddie <at> omegaware.com>
Website http://outoforder.cc/

Gmane