Compiling/running Policy Agent 2.2 for Apache (Linux)

Hi,

I know that running the policy agent for Linux is not supported by Sun on other platforms than Red Hat Enterprise Linux, but anyway I'm qurious to see if others have looked into this.

I've done some testing on my Ubuntu Dapper Linux, using the precompiled version for Red Hat Enterprise, and I kind of made it work. Only problem: I have to start apache using "strace" to have it running. If I run /usr/sbin/apache2 I get "Segmentation Fault", but if I run "strace /usr/sbin/apache2" it runs... I'm able to create a core-dump, but to get something out of it I guess I have to compile the policy agent myself, so I've tried that as well.

To compile I've checked out the opensso package by CVS and installed libxml2-2.6.23, nss-3.11, nspr-4.6.1 and apache-2.0.59, sort of like what it says in the Readme for compiling under Red Hat Enterprise Linux. Result from running "make BUILD_DEBUG=optimize BUILD_AGENT=apache" is:

hash_table.h: In member function 憈ypename smi::HashTable<Element>::EntryType smi::HashTable<Element>::findEntry(const std::string&)?

hash_table.h:319: error: expected ?before 慱_null?br>hash_table.h:319: warning: statement has no effect

The test with the precompiled version was done on Ubuntu Dapper Linux using the standard apache 2.0.55 package that comes with Ubuntu. As I said: I've managed to get it running (doing SSO login through Federation Manager running on the same machine, with Access Manager running on another Solaris server) but I would prefer to have a setup that doesn't involve using "strace" to have apache whith the policy agent module running... Anyone else done something like this?

In the end I guess I would like to have some kind of release of the policy agent that doesn't have to be packaged as RPMs just for Red Hat Enterprise servers. It doesn't have to be flagged as "supported by Sun" but more like "you're on your own this release". ;-) That goes for the Federation Manager as well. I've managed to have the FM running on Ubuntu Dapper as well, so I know it's possible...

- Anders

[2118 byte] By [Lonis] at [2007-11-26 11:04:36]
# 1

ash_table.h: In member function 憈ypename smi::HashTable<Element>::EntryType smi::HashTable<Element>::findEntry(const std::string&)?

hash_table.h:319: error: expected ?before 慱_null?br>hash_table.h:319: warning: statement has no effect

You need to compile with an older compiler. I think I tried with gcc 3.2.3 and that problem went away but I not get a chance to test the final binaries.

ChristopherNebergall at 2007-7-7 3:18:31 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Tried with an older compiler (g++ 3.3) and managed to compile it. However I get the same problem with this version:/usr/local/apache-2.0.59/bin/apachectl: line 78: 16935 Segmentation fault$HTTPD -k $ARGVThanks for the tip. At least I managed to get it to compile now. :-)
Lonis at 2007-7-7 3:18:31 > top of Java-index,Web & Directory Servers,Directory Servers...