Autoconfigure

13 views
Skip to first unread message

Nick Burkitt

unread,
Oct 29, 2018, 5:59:36 PM10/29/18
to Dbus-cxx
Okay, not strictly a dbus-cxx question, but I need the answer as it applies to building libdbus-cxx. 
The short version is that I need to define an additional symbol on the compiler command line (-D_GLIBCXX_USE_CXX11_ABI=0). Someday I may learn enough about autoconfigure to be know which line in which file to change to achieve this, but it won't be anytime soon.
Help?

Robert Middleton

unread,
Oct 29, 2018, 10:10:42 PM10/29/18
to Nick Burkitt, dbus...@googlegroups.com
If you're using autotools to build, I think you provide it as an environment variable, e.g.

CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ./configure

or I think autotools also lets you do it when you run configure

./configure CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0

./configure --help will print out some information on this.

(if you want to try the CMake build you can find it here: https://sourceforge.net/p/dbus-cxx/code/HEAD/tree/branches/dbus-cxx-2/)

-Robert Middleton

--
You received this message because you are subscribed to the Google Groups "Dbus-cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dbus-cxx+u...@googlegroups.com.
To post to this group, send email to dbus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dbus-cxx/b5d043cb-193f-4d1c-b909-84f8e2999196%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nick Burkitt

unread,
Oct 30, 2018, 4:00:14 PM10/30/18
to osfa...@gmail.com, dbus...@googlegroups.com
Hi Robert.

Thanks - I tried the first suggestion first. It worked, so I didn't try any of the others. :-)
I ran into this issue when upgrading from Ubuntu 14.04 to 16.04. The GCC major version changed from 4 to 5, and the default C++11 ABI usage also changed from the "old" to the "new." Unfortunately, it appears that the packages distributed with 16.04 were compiled using the old ABI. That means building from source now has an extra tripping hazard. 
Thanks!

-Nick

Reply all
Reply to author
Forward
0 new messages