]> pilppa.com Git - libplpbus.git/commitdiff
Added linkage dependency fix to pkg-config file.
authorMika Laitio <lamikr@pilppa.org>
Tue, 21 Dec 2010 23:29:16 +0000 (01:29 +0200)
committerMika Laitio <lamikr@pilppa.org>
Tue, 21 Dec 2010 23:29:16 +0000 (01:29 +0200)
Enabled also the debug build options for c++ code.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
README
configure.ac
libplpbus.pc.in
src/plpbus/BusClient.cc
src/plpbus/BusMessage.cc
src/plpbus/OrbServerImpl.cc

diff --git a/README b/README
index 8a1931b8c02a874689fbf992ddc8b9301a6b1de0..74b6e0bf4cc3cbab9012cc90bbe501745ebf3ab8 100644 (file)
--- a/README
+++ b/README
@@ -11,7 +11,7 @@ Build, install and clean
 ------------------------
 - build with command: ./autobuild.sh (generates required autoconf files)
 - install with command: make install
-- clean source code from generated build files: make distclean
+- clean source code from generated build files: make maintainer-clean
 
 howto run test application
 --------------------------
index b238fadf00cb2b464180d3afa8fabb079baadc55..b62bf78281d80eca9b2dce3565e4481150d41abc 100644 (file)
@@ -9,7 +9,9 @@ CFLAGS="$CFLAGS -g -Wall -Werror"
 LDFLAGS="$LDFLAGS"
 AC_SUBST(CFLAGS)
 AC_SUBST(LDFLAGS)
-AC_MSG_NOTICE([objective c Makefile])
+CXXFLAGS="$CXXFLAGS -ggdb -Wall -Werror"
+AC_SUBST(CXXFLAGS)
+AC_MSG_NOTICE([libplpbus Makefile])
 
 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
 
index 967a8af901ca2f699473142254fb05727ec4383d..19e8985b57ba5c1b5bf74176fac1139c1237d7d5 100644 (file)
@@ -8,4 +8,4 @@ Description: pilppa communication bus library
 Version: @VERSION@
 Requires: 
 Cflags: -I${includedir} -I${includedir}/libplpbus
-Libs: -L${libdir}
+Libs: -L${libdir} -lplpbus
index b69787b7d64081a5ff22f84cb2d476d35310a9e8..2a847274d00f15cf287871f6f7b78968de8d7158 100644 (file)
@@ -136,6 +136,7 @@ int BusClient::send_message_and_wait_response(BusMessage *msg_req_param, BusMess
 
        seq_rsp = NULL;
        _server->send_dataitem_message_and_wait_response(msg_req_param->_dataItemSeq, seq_rsp);
+       return 0;
 }
 
 void BusClient::request_shutdown() {
index bc05f0755b38eb6de855d5ea4aacd1c484f28dcc..84cd386f937bf68c94e5115a954af11fc4d9da3e 100644 (file)
@@ -171,14 +171,14 @@ void BusMessage::printout_dataitem(long index, plpbus_orb::DataItem *item) {
                                                const char *val;
 
                                                item->value >>= val;
-                                               log_debug("     [%d], value: %s\n", index, val);
+                                               log_debug("     [%ld], value: %s\n", index, val);
                                        }
                                        break;
                                case tk_long:
                                        {
                                                long    val;
                                                item->value >>= val;
-                                               log_debug("     [%d], value: %ld\n", index, val);
+                                               log_debug("     [%ld], value: %ld\n", index, val);
                                                //val_str       = strdup("long");
                                        }
                                        break;
@@ -186,7 +186,7 @@ void BusMessage::printout_dataitem(long index, plpbus_orb::DataItem *item) {
                                        {
                                                double val;
                                                item->value >>= val;
-                                               log_debug("     [%d], value: %f\n", index, val);
+                                               log_debug("     [%ld], value: %f\n", index, val);
                                                //val_str       = strdup("double");
                                        }
                                        break;
@@ -194,20 +194,20 @@ void BusMessage::printout_dataitem(long index, plpbus_orb::DataItem *item) {
                                        {
                                                float val;
                                                item->value >>= val;
-                                               log_debug("     [%d] name: %s, value: %f\n", index, val);
+                                               log_debug("     [l%ld] value: %f\n", index, val);
                                                //val_str       = strdup("float");
                                        }
                                        break;
                                default:
-                                       log_error("     [%d] name, value unknown\n", index);
+                                       log_error("     [%ld], value unknown\n", index);
                        }
                }
                else {
-                       log_error("     [%d] Invalid data item name name or value\n", index);
+                       log_error("     [%ld] Invalid data item name name or value\n", index);
                }
        }
        else {
-               log_error("     [%d] dataItem NULL.", index);
+               log_error("     [%ld] dataItem NULL.", index);
        }
 }
 
@@ -216,7 +216,7 @@ void BusMessage::printout() {
        DataItem        item;
 
        count   = _dataItemSeq.length();
-       log_debug("BusMessage.printout(): parameter count: %l\n", count);
+       log_debug("BusMessage.printout(): parameter count: %ld\n", count);
        for (long ii = 0; ii < count; ii++) {
                item    = _dataItemSeq[ii];
                printout_dataitem(ii, &item);
index ea651a93a2c58fc6101efbdce69e889ede00c3c9..4317ff110e61fea7c073371dd734ccff2d149177 100644 (file)
@@ -86,7 +86,7 @@ void OrbServerImpl::send_dataitem_message_and_request_response(OrbClient_ptr res
                        msg_req->printout();
                        msg_rsp = NULL;
                        _listener->request_received(msg_req, &msg_rsp);
-                       log_debug("msg_rsp length: %d\n", msg_rsp->_dataItemSeq.length());
+                       log_debug("msg_rsp length: %ld\n", msg_rsp->_dataItemSeq.length());
                        msg_rsp->printout();
                        response_listener_param->receive_response_dataitem_sequence(msg_rsp->_dataItemSeq);
                }
@@ -287,10 +287,10 @@ CosNaming::NamingContext_var OrbServerImpl::get_service_naming_context(const cha
        }
        catch (CORBA::NO_RESOURCES&) {
                log_error("Failed to get context from name service for %s, Name service is not running or has configuration problem.\n", service_name_param);
-               log_error("Things to check:\n", service_name_param);
-               log_error("If you have OMNIORB_CONFIG environment variable defined, verify that omniORB.cfg file exist in that location.\n", service_name_param);
-               log_error("If you do not have OMNIORB_CONFIG environment variable defined, verify that you have /etc/omniORB.cfg file\n", service_name_param);
-               log_error("Verify that InitRef line is defined in omniORB.cfg file.\n", service_name_param);
+               log_error("Check-list:\n");
+               log_error("If you have OMNIORB_CONFIG environment variable defined, verify that omniORB.cfg file exist in that location.\n");
+               log_error("If you do not have OMNIORB_CONFIG environment variable defined, verify that you have /etc/omniORB.cfg file\n");
+               log_error("Verify that InitRef line is defined in omniORB.cfg file.\n");
        }
        catch(CORBA::SystemException& ex) {
                log_error("Failed to get context from name service for %s, system error.\n", service_name_param);