On Tue, Dec 23, 2008 17:14, Trek Glowacki <pietr...@umich.edu> wrote:
> Are there any directions for building the cosign filter and cosignd  
> specifically on MacOS 10.5 (client)?
>   

The last official release of cosign predates the release of Leopard, so 
be sure to use cosign 2.1.0rc2, which is available from:

http://sourceforge.net/project/showfiles.php?group_id=170747&package_id=194945


I was able to build the cosign filter for Apache HTTPD 2 under MacOS 
10.5.6 by running:

./configure --enable-apache2=/usr/sbin/apxs
make

Note, however, that this will result in a single-architecture Apache 
HTTPD module that is for whatever architecture you built it on:

$ file ./mod_cosign.so
./mod_cosign.so: Mach-O bundle i386
$

If you need a fat binary with all four currently supported 
architectures, building the filter is a little more complicated:

make distclean   # if you have previously built cosign

env CFLAGS="-arch ppc7400 -arch ppc64 -arch i386 -arch x86_64 -g -O2" \
  ./configure --enable-apache2=/usr/sbin/apxs

...but don't run make yet.  Instead, edit the file 
filters/apache2/Makefile and replace the following two lines

LDFLAGS=           -L/usr/lib ${LIBS}

CFLAGS=         ${DEFS} ${INCPATH}

with these two lines:

LDFLAGS= -Wl,"-arch ppc7400" -Wl,"-arch ppc64" -Wl,"-arch i386" 
-Wl,"-arch x86_64" -L/usr/lib ${LIBS}

CFLAGS= -Wc,"-arch ppc7400" -Wc,"-arch ppc64" -Wc,"-arch i386" 
-Wc,"-arch x86_64" ${DEFS} ${INCPATH}

(Basically, you're keeping the values of these two variables but 
prepending a bunch of stuff.  Also, note that each new argument on the 
first line begins with -Wl while each new argument on the second line 
begins with -Wc)

Now run make:

make

This will give you the fat binary for the filter:

$ file mod_cosign.so
mod_cosign.so: Mach-O universal binary with 4 architectures
mod_cosign.so (for architecture ppc7400):       Mach-O bundle ppc
mod_cosign.so (for architecture ppc64): Mach-O 64-bit bundle ppc64
mod_cosign.so (for architecture i386):  Mach-O bundle i386
mod_cosign.so (for architecture x86_64):        Mach-O 64-bit bundle x86_64
$


Finally, note that cosignd, monsterd, and the CGI are only needed if you 
are setting up your own central weblogin servers.  If you are at an 
institution that already has central weblogin servers set up, you will 
only need the filter (mod_cosign.so).


                Mark Montague
                ITCS Web/Database Production Team
                The University of Michigan
                markm...@umich.edu



------------------------------------------------------------------------------
_______________________________________________
Cosign-discuss mailing list
Cosign-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to