LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2018, 01:31 AM   #1
siddharthav
LQ Newbie
 
Registered: Aug 2018
Location: Bengaluru, India
Posts: 15

Rep: Reputation: Disabled
Common API compilation error


Hi,
Am working on franca IDL and the Common API.Once being ready with the client-server code iam able to get the executables but while running end up with the below error.

siddhu@siddhu:~/work/project/build$ ./HelloWorldService: symbol lookup error: /usr/local/lib/libCommonAPI-DBus.so.3.1.12: undefined symbol: dbus_message_set_signature
^C
[1]+ Exit 127 ./HelloWorldService
siddhu@siddhu:~/work/project/build$ ./HelloWorldClient
./HelloWorldClient: symbol lookup error: /usr/local/lib/libCommonAPI-DBus.so.3.1.12: undefined symbol: dbus_message_get_body


Can anybody help me on this please. here C++ is used as programming language.
 
Old 12-04-2018, 02:33 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,844

Rep: Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320
I think you should find out where this /usr/local/lib/libCommonAPI-DBus.so.3.1.12 came from. It is surely not part of the distribution, it has been installed by some local admin (probably yourself).
 
Old 12-04-2018, 03:18 AM   #3
siddharthav
LQ Newbie
 
Registered: Aug 2018
Location: Bengaluru, India
Posts: 15

Original Poster
Rep: Reputation: Disabled
yes, it was installed by me only its the Common API D bus runtime for linux D-bus IPC programming actually. what to do for the above error.
 
Old 12-04-2018, 04:01 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,844

Rep: Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320
> yes, it was installed by me only its the Common API D bus runtime for linux D-bus IPC programming actually

Kindly explain exactly what did you install, how did you install it, what error messages did you ignore during installation, where did you download it.
 
Old 12-04-2018, 04:12 AM   #5
siddharthav
LQ Newbie
 
Registered: Aug 2018
Location: Bengaluru, India
Posts: 15

Original Poster
Rep: Reputation: Disabled
Actually am working with franca IDL with the Common API. am following the below link as reference
https://at.projects.genivi.org/wiki/...pageId=5472316

I have installed the below packages:
work environment:
ubuntu 16.04
capicxx-core-runtime 3.1.12.4
capicxx-dbus-runtime 3.1.12.7

common API C++ bus generator 3.1.12.3
common API c++ D bus generator 3.1.12.1

Later i compiled and then got the executables but when i run them i ended with the above error.
 
Old 12-04-2018, 04:22 AM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,844

Rep: Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320
Sorry, I lost interest at this point:

The D-Bus runtime library cannot be built without further preparations. The reason is that CommonAPI-D-Bus doesn't use the standard libdbus library and needs a patched version. That means that you must first download, patch and build libdbus before
 
2 members found this post helpful.
Old 12-04-2018, 04:26 AM   #7
siddharthav
LQ Newbie
 
Registered: Aug 2018
Location: Bengaluru, India
Posts: 15

Original Poster
Rep: Reputation: Disabled
yes I have installed d-bus1.8.20 patch also.
 
Old 12-04-2018, 02:00 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,175
Blog Entries: 11

Rep: Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094Reputation: 3094
I agree with NevemTeve, the fact that your environment relies on a non-standard dbus implementation makes it impossible for others to offer reliable advice without building, running and learning that environment themselves - which is a bit much to ask of volunteers in a forum like this.

While your question is welcome here, you will probably get a better response and find much better information available through the project's website, especially if it has a forum or offers any form of interactive support including via email.

In the end, perhaps you will be able to learn your way around their code and be able to answer others' questions about it in future.

Good luck!
 
2 members found this post helpful.
Old 08-14-2019, 09:49 AM   #9
badfd
LQ Newbie
 
Registered: Aug 2019
Posts: 1

Rep: Reputation: Disabled
First, contrary to the title, the problem has occurred at runtime -- not at compilation time. The fact that an executable exists implies that all symbols were resolved (for the static link phase). In all likelihood, the OP has simply neglected to set the LD_LIBRARY_PATH to point to the patched library:

Code:
$ ./HelloWorldService
./HelloWorldService: relocation error: <test directory>/capicxx-dbus-runtime/build/libCommonAPI-DBus.so.3.1.12: symbol dbus_message_set_signature version LIBDBUS_1_3 not defined in file libdbus-1.so.3 with link time reference

$ export LD_LIBRARY_PATH=$PATH_TO_PATCHED_LIBDBUS_SOURCE/dbus/.libs

$ ./HelloWorldService
Successfully Registered Service!
Waiting for calls... (Abort with CTRL+C)

Last edited by badfd; 08-14-2019 at 11:16 AM. Reason: Apply generic directory prefix
 
  


Reply

Tags
c++ compiler, ipc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pam common-password versus common-password-pc ron7000 Linux - General 1 10-20-2015 11:27 AM
Error: php53-common conflicts with php-common Shahnawaz Uqaili Linux - Newbie 12 06-11-2012 12:22 AM
xfree86-common xserver-common xfonts-base missing in etch/lenny unev_21 Debian 2 09-11-2009 02:12 AM
RH 9.0 glibc rpm says it needs glibc-common, but glibc-common is installed whitshade Red Hat 2 04-28-2007 05:49 PM
BOGUS.common.04y -> /home/common/Mailbox jayakrishnan Linux - Networking 0 11-19-2005 04:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration