Sunday, October 14, 2018

Building ACE TAO OpenDDS from repositories

These are the instructions to actually build ACE (Adaptive Communication Environment),  TAO (The ACE Orb), and OpenDDS (implementation of Data Distribution System) from the repositories.

Clone the repositories from git hub:


git clone https://github.com/objectcomputing/OCITAO.git

git clone https://github.com/objectcomputing/OpenDDS.git

git clone https://github.com/objectcomputing/MPC.git


Set the environment variables


export ACE_ROOT=/projects/OCITAO/ACE
export TAO_ROOT=/projects/OCITAO/TAO
export MPC_ROOT=/projects/MPC
export DDS_ROOT=/projects/OpenDDS

export LD_LIBRARY_PATH=$ACE_ROOT/lib:$TAO_ROOT/lib:$LD_LIBRARY_PATH
export PATH=$ACE_ROOT/bin:$TAO_ROOT/bin:$PATH

Setup ACE TAO definition files:

echo "#include \"ace/config-linux.h\"" > OCITAO/ACE/ace/config.h

cat OCITAO/ACE/ace/config.h
#include "ace/config-linux.h"

echo "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" > OCITAO/ACE/include/makeinclude/platform_macros.GNU

cat OCITAO/ACE/include/makeinclude/platform_macros.GNU
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU


Generate the ACE and TAO Makefiles

cd $TAO_ROOT
perl $ACE_ROOT/bin/mwc.pl -type gnuace TAO_ACE.mwc

Build ACE and TAO


make
make depend

Generate the OpenDDS Makefiles


cd $DDS_ROOT
perl $ACE_ROOT/bin/mwc.pl -type gnuace DDS.mwc

Build OpenDDS

make
make depend





Wednesday, September 4, 2013

__xpg_basename is not a member of

If the c++ code gets the error that  '__xpg_basename' is not a member of 'namespace or class' check for use of libgen.h

The file libgen.h has a #define basename __xpg_basename   that will replace all occurrences of basename including those of other classes.

It may be possible to reorder includes to avoid the error. Make libgen.h be included last.

Monday, February 13, 2012

steps taken from vmware server 2.0 dropping vms under load

Notes from vmware server 2.0 dropping vms under load


Here are the steps that I have taken:
1 - Create the directory /usr/lib/vmware/lib/libc.so.6
2 - Grab /lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6 the version that I retrieved came from glibc-2.5-34 I got mine from a backup. If you do not have a backup version follow instructions 3a to 3e. I explain on how to get this library from the CentOS repository.
3a - mkdir /tmp/glibc-2.5.34
3b - cd /tmp/glibc-2.5.34
3c - wget http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.i686.rpm
3d - rpm2cpio glibc-2.5-34.i686.rpm | cpio –ivd
3e - Grab /tmp/glibc-2.5.34/lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6
4 - Rename the file libc-2.5.so within /usr/lib/vmware/lib/libc.so.6 to libc.so.6
5 - Open /usr/sbin/vmware-hostd and add /usr/lib/vmware/lib/libc.so.6 to the LD_LIBRARY_PATH. I just added:
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
before the last line.
6 - Restart your VMware service and your Virtual Machine(s)



rpm -Uvh --oldpackage http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.x86_64.rpm

Thursday, February 9, 2012

reference tools on nix

ldd lists the libraries the executable uses

nm lists the references

Tuesday, January 24, 2012

view pf rules

To view the rules being used by pf

pfctl -g -s rules

from http://www.thedeepsky.com/howto/newbie_pf_guide.php

Tuesday, September 27, 2011

get the protocol (http) back in firefox 7 location bar

To get the protocol (http https ftp) to appear in the location bar of firefox 7

open the config by typing "about:config" in the location bar
Click the Ill be careful i promise button.

search for browser.urlbar.trimURLs
set to false

The protocols should now be visible again.

Monday, September 26, 2011

remember tao_root

When generating the workspace using mwc (Make Project Creator) and you get the error

ERROR: Unable to locate parent: tao_versioning_idl_defaults

be sure to set your TAO_ROOT variable to the TAO location.