Using:
# truss -ff -t accept,listen,bind /opt/local/sbin/apachectl start
ld.so.1: httpd: fatal: /usr/lib/ncad_addr.so: wrong ELF class: ELFCLASS32
6714:       Received signal #18, SIGCLD, in waitid() [caught]
6714:           signfo: SIGCLD CLD_KILLED pid=6715 status=0x0009
/opt/local/sbin/apachectl: line 88: 6715: Killed
ld.so.1: httpd: fatal: /usr/lib/ncad_addr.so: wrong ELF class: ELFCLASS32
6714:       Received signal #18, SIGCLD, in waitid() [caught]
6714:           signfo: SIGCLD CLD_KILLED pid=6715 status=0x0009
/opt/local/sbin/apachectl: line 92: 6715: Killed

Line 88 is where I inserted:
LD_PRELOAD=/usr/lib/ncad_addr.so /opt/local/sbin/httpd

Do you think it may work with a 32-bit image instead of a 64-bit image (base64 
14.2.0)?



On Sunday, September 21, 2014 3:09 PM, Robert Mustacchi via smartos-discuss 
<[email protected]> wrote:
 


On 09/21/2014 12:58 PM, G B via smartos-discuss wrote:
> Set the relevant lines to "enabled" in:
> 
> /etc/nca/ncakmod.conf
> 
> /etc/nca/ncalogd.conf
> 
> Set the interface to "net0":
> /etc/nca/nca.if
> 
> Added to /opt/local/sbin/apachectl:
> # Enable NCA:
> NCAKMODCONF=/etc/nca/ncakmod.conf
> if [ -f $NCAKMODCONF ]; then
> . $NCAKMODCONF
> if [ "x$status" = "xenabled" ]; then
> HTTPD=”env LD_PRELOAD=/usr/lib/ncad_addr.so $HTTPD”
> fi
> fi 
> 
> # pfiles `pgrep httpd`|grep AF  <----- shows AF_INET and not AF_NCA
> # pldd `pgrep http` |grep ncad <------ does not return ncad
> 
> 
> Rebooted and apache is online, so what is needed to get NCA working in a 
> SmartOS Zone?

From a brief look, it appears that NCA looks at the GZ configuration.
I'm not sure if it works in a non-global zone at all.

Robert


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/24559458-54d8e931

Modify Your Subscription: https://www.listbox.com/member/?&;
Powered by Listbox: http://www.listbox.com


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to