[pubcookie-users] Problem compiling Pubcookie 3.3.2c on Debian
Etch x86
Matt Weatherford
mbw at u.washington.edu
Thu Mar 22 16:37:49 PDT 2007
sorry for the spam...
I solved my own bonehead problem - I found the module that was dumped into
/usr/lib/apache2/modules, that works way better than
trying to force the keyclient binary to be a module. :)
Thanks for listening :)
-Matt
Matt Weatherford wrote:
>
> Jim,
>
> Thank you for your comment, it was both was helpful and useful...
>
> As you suggested, for whatever reason, none of the path define lines
> were set in /module/Makefile... here is what my default module/Makefile
> looked like:
>
>
> yadda:/etc/apache2/pubcookie/src/pubcookie-3.3.2c/module# cat Makefile
> # Makefile for Apache2 DSO module
> #
>
> builddir = .
>
> APXS=/usr/bin/apxs2
>
> top_dir =
>
> top_srcdir =
> top_builddir =
>
> include /usr/share/apache2/build/special.mk
>
>
> DEFS=-DAPACHE -DAPACHE2 -DHAVE_CONFIG_H
> INCLUDES=-I.
>
> all: local-shared-build
>
> need_slib_clean:
> @echo ""
> @echo "Before installing the module:"
> @echo " - shutdown any running apache server"
> @echo " - run 'slibclean'"
> @echo ""
>
>
> clean: local-clean
> #-------------EOF-------------
>
>
> I set the following manually:
>
> top_srcdir = /usr/share/apache2
> top_builddir = /usr/share/apache2
>
> and then it compiled and also installed.
>
>
>
> But now I see there is a difference between what Etch/Apache uses for a
> "Shared Object" and what I have built....
>
> (for comparison, heres an example of another module in the modules
> directory --- I chose mod_rewrite)
>
> yadda:/# cd usr/lib/apache2/modules
> yadda:/usr/lib/apache2/modules# file mod_rewrite.so
> mod_rewrite.so: ELF 32-bit LSB shared object, Intel 80386, version 1
> (SYSV), stripped
> yadda:/usr/lib/apache2/modules# file
> /etc/apache2/pubcookie/keyclient-3.3.2c
> /etc/apache2/pubcookie/keyclient-3.3.2c: ELF 32-bit LSB executable,
> Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked
> (uses shared libs), for GNU/Linux 2.4.1, not stripped
> yadda:/usr/lib/apache2/modules#
>
>
> Perhaps Debian and Apache2 handle modules differently now?
>
> http://www.ducea.com/2006/05/30/managing-apache2-modules-the-debian-way/
>
>
> Any light you could shed on this would be greatly appreciated!
>
> Thank you!
>
> Matt
>
>
>
>
> Jim Fox wrote:
>>
>>>
>>> Im trying to get Pubcookie 3.3.2c compiled on x86 Debian Debain Etch
>>> with Apache 2.2 and have got the "./configure" working, but the
>>> "make" fails without a useful error message... it seems like I might
>>> be missing some
>>> local apache2 sources or something, but I think I have everything
>>> installed
>>> that I need (apache2-threaded-dev, openssl, apache2-src) ... any ideas?
>>>
>>
>> Unfortunately few of us have experience on Debian.
>>
>>> (cd module; make)
>>> make[1]: Entering directory
>>> `/etc/apache2/pubcookie/src/pubcookie-3.3.2c/module'
>>> /usr/share/apache2/build/special.mk:27: /build/rules.mk: No such file
>>> or directory
>>> make[1]: *** No rule to make target `/build/rules.mk'. Stop.
>>> make[1]: Leaving directory
>>
>> The apache file 'special.mk' has an include
>>
>> include $(top_builddir)/build/rules.mk
>>
>> For unknown reasons your Makefile (that we generated in 'modules')
>> doesn't define 'top_builddir' to correctly find the 'rules.mk'.
>> Be sure top_builddir is defined to point to the directory
>> where rules.mk can be found.
>>
>> Jim
>>
>
--
Matt Weatherford
Computing Core Director
Center for Studies in Demography and Ecology
218H Raitt Hall, Box 353412
University of Washington
Seattle, WA, USA, 98195 206-616-6169
http://csde.washington.edu
More information about the pubcookie-users
mailing list