Author: steshaw
Date: Thu Nov 30 06:18:03 2006
New Revision: 480934

URL: http://svn.apache.org/viewvc?view=rev&rev=480934
Log:
Changes for building on RHEL3. Also bundle debug and release libs

Modified:
    incubator/qpid/trunk/qpid/cpp/Makefile
    incubator/qpid/trunk/qpid/cpp/README.rhel3
    incubator/qpid/trunk/qpid/cpp/build.rhel3
    incubator/qpid/trunk/qpid/cpp/options-rhel3.mk
    incubator/qpid/trunk/qpid/cpp/release.client.rhel3
    incubator/qpid/trunk/qpid/cpp/src/qpid/ExceptionHolder.h

Modified: incubator/qpid/trunk/qpid/cpp/Makefile
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/Makefile?view=diff&rev=480934&r1=480933&r2=480934
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/Makefile (original)
+++ incubator/qpid/trunk/qpid/cpp/Makefile Thu Nov 30 06:18:03 2006
@@ -28,6 +28,7 @@
 
 .PHONY: show-vars
 show-vars:
+       @echo RELEASE=$(RELEASE)
        @echo APR_LDFLAGS=$(APR_LDFLAGS)
        @echo APR_CFLAGS=$(APR_CFLAGS)
        @echo CXXFLAGS=$(CXXFLAGS)

Modified: incubator/qpid/trunk/qpid/cpp/README.rhel3
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/README.rhel3?view=diff&rev=480934&r1=480933&r2=480934
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/README.rhel3 (original)
+++ incubator/qpid/trunk/qpid/cpp/README.rhel3 Thu Nov 30 06:18:03 2006
@@ -1,29 +1,23 @@
 Building on RHEL3 without access to root (i.e. no yum)
 ======================================================
 
-Install make-3.80 into ~/local/make-3.80
+Install or soft link the following:
 
-Install apr-1.2.7 into ~/local/apr-1.2.7.
+  make-3.80 into ~/local/make-3.80
+  apr-1.2.7 into ~/local/apr-1.2.7.
+  boost-1.33.1 into ~/local/boost-1.33.1
+  cppunit-1.11.4 into ~/local/cppunit-1.11.4
+  JDK 5.0 to ~/local/jdk-1.5
 
-Install boost-1.33.1 into ~/local/boost-1.33.1
-
-Install cppunit-1.11.4 into ~/local/cppunit-1.11.4
-
-If you want a standard release build skip this step. If you want a debug
-build do the following:
-
-  1. Edit options-rhel3.mk. Comment out definition of RELEASE.
-  2. Edit release.client.rhel3. Change buildType to "debug".
-
-Build using the following command:
+Build using the following command (builds release and debug profiles):
 
   $ ./build.rhel3
 
-Generate cppclient tarball:
+Generate cpp-client tarball (includes release and debug libs):
 
-  $ ./release.client.rhel3
+  $ ./release.client.rhel3      # will use the svn revision as release number
 
-or if you want to name the release:
+or if you want to explicitly name the release version:
 
   $ ./release.client.rhel3 1.0-RC1
 

Modified: incubator/qpid/trunk/qpid/cpp/build.rhel3
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/build.rhel3?view=diff&rev=480934&r1=480933&r2=480934
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/build.rhel3 (original)
+++ incubator/qpid/trunk/qpid/cpp/build.rhel3 Thu Nov 30 06:18:03 2006
@@ -5,7 +5,14 @@
 PATH=~/local/make-3.80/bin:$PATH
 PATH=~/local/apr-1.2.7/bin:$PATH
 PATH=~/local/cppunit-1.11.4/bin:$PATH
+PATH=~/local/jdk-1.5/bin:$PATH
 
 LD_LIBRARY_PATH=~/local/apr-1.2.7/lib:$LD_LIBRARY_PATH
 
+export GENTOOLS_DIR=../gentools
+
+echo Building release build
+RELEASE=1 make "$@"
+
+echo Building debug build
 make "$@"

Modified: incubator/qpid/trunk/qpid/cpp/options-rhel3.mk
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/options-rhel3.mk?view=diff&rev=480934&r1=480933&r2=480934
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/options-rhel3.mk (original)
+++ incubator/qpid/trunk/qpid/cpp/options-rhel3.mk Thu Nov 30 06:18:03 2006
@@ -2,9 +2,6 @@
 # Expects dependencies in ~/local
 #
 
-# Comment out the setting of RELEASE to build a debug release.
-RELEASE := 1
-
 # Configure Boost.
 BOOST_CXXFLAGS := -I$(HOME)/local/boost-1.33.1/include/boost-1_33_1
 CXXFLAGS := $(CXXFLAGS) $(BOOST_CXXFLAGS)

Modified: incubator/qpid/trunk/qpid/cpp/release.client.rhel3
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/release.client.rhel3?view=diff&rev=480934&r1=480933&r2=480934
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/release.client.rhel3 (original)
+++ incubator/qpid/trunk/qpid/cpp/release.client.rhel3 Thu Nov 30 06:18:03 2006
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-buildType="release" # change to "debug" to build a debug release
-
 if [[ $# -eq 1 ]]; then
   name=$1
 elif [[ $# -ne 0 ]]; then
@@ -9,8 +7,13 @@
   exit 2
 else
   # Default the name to the svn revision
-  svnRevision=$(svn info | grep ^Revision: | awk '{print $2}')
-  name=r${svnRevision}
+  if which svn >/dev/null 2>&1; then
+    svnRevision=$(svn info | grep ^Revision: | awk '{print $2}')
+    name=r${svnRevision}
+  else
+    echo "You need to have svn in your PATH or specify a release name"
+    exit 2
+  fi
 fi
 
 name=qpid-cpp-client-$name
@@ -28,11 +31,16 @@
 #
 mkdir $dir/lib
 cp \
-  build/apr-$buildType/lib/libqpid_client.so.1.0 \
-  build/apr-$buildType/lib/libqpid_common.so.1.0 \
+  build/apr-release/lib/libqpid_client.so.1.0 \
+  build/apr-release/lib/libqpid_common.so.1.0 \
   $dir/lib
-cp -r ~/local/apr-1.2.7 $dir/lib
-cp -r ~/local/boost-1.33.1 $dir/lib
+mkdir $dir/lib.debug
+cp \
+  build/apr-debug/lib/libqpid_client.so.1.0 \
+  build/apr-debug/lib/libqpid_common.so.1.0 \
+  $dir/lib.debug
+#cp -r ~/local/apr-1.2.7 $dir/lib
+#cp -r ~/local/boost-1.33.1 $dir/lib
 
 #
 # Copy over headers.

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/ExceptionHolder.h
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/ExceptionHolder.h?view=diff&rev=480934&r1=480933&r2=480934
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/ExceptionHolder.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/ExceptionHolder.h Thu Nov 30 
06:18:03 2006
@@ -47,6 +47,8 @@
     ExceptionHolder(const Exception& e) throw() : shared_ptr(e.clone()) {}
     ExceptionHolder(const std::exception& e);
 
+    ~ExceptionHolder() throw() {}
+
     const char* what() const throw() { return (*this)->what(); }
     std::string toString() const throw() { return (*this)->toString(); }
     virtual Exception* clone() const throw() { return (*this)->clone(); }


Reply via email to