Problem configuring DNP3 at make command

107 views
Skip to first unread message

Aditya N

unread,
Oct 4, 2016, 5:32:10 PM10/4/16
to open-dnp3
HI,

I want to build the Python bindings for the OpenDNP3 library. As part of this I cloned dnp3 code, ran autotools.sh.. LAter gave TOOLS_HOME environment on my Ubuntu 16 and could install Boost. Later moved datatime files of boost library to usr/lib to surpass missing version error when I execute ./configure --with-python

Now I could configure, but when I send make command after a while it stops with following error--


./.libs/libopendnp3.so: undefined reference to `boost::this_thread::interruption_point()'
./.libs/libopendnp3.so: undefined reference to `boost::thread::native_handle()'
./.libs/libopendnp3.so: undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
./.libs/libopendnp3.so: undefined reference to `typeinfo for boost::detail::thread_data_base'
./.libs/libopendnp3.so: undefined reference to `boost::detail::get_current_thread_data()'
./.libs/libopendnp3.so: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
./.libs/libopendnp3.so: undefined reference to `boost::thread::detach()'
./.libs/libopendnp3.so: undefined reference to `boost::this_thread::hiden::sleep_until(timespec const&)'
./.libs/libopendnp3.so: undefined reference to `boost::thread::join_noexcept()'
./.libs/libopendnp3.so: undefined reference to `boost::thread::start_thread_noexcept()'
./.libs/libopendnp3.so: undefined reference to `boost::this_thread::yield()'
./.libs/libopendnp3.so: undefined reference to `vtable for boost::detail::thread_data_base'
./.libs/libopendnp3.so: undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
collect2: error: ld returned 1 exit status
Makefile:2239: recipe for target 'dnp3testset' failed
make[1]: *** [dnp3testset] Error 1
make[1]: Leaving directory '/home/rajee/project/dnp3/dnp3'
Makefile:1436: recipe for target 'all' failed
make: *** [all] Error 2


I have attached config.log file for reference. Please help.

config.log

Daniel Evans

unread,
Oct 5, 2016, 5:51:08 PM10/5/16
to open...@googlegroups.com
Did you install boost by building from source or with apt-get? When you "moved" the libraries, what did you do? Did you run ldconfig afterwards?

Unless you need to run a specific boost version, I would recommend running sudo apt-get install libboost-all-dev to install boost. The files may be placed in an architecture specific directory (i.e. /usr/lib/x86_64_generic_linux or something). Put that arch specific directory into the parameter --with-boost-libdir= when you re-run configure.


--
You received this message because you are subscribed to the Google Groups "open-dnp3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-dnp3+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Daniel Evans

Software Engineer

Green Energy Corp

(919) 836-9916

dev...@greenenergycorp.com

 

Transforming the Smart Grid

www.greenenergycorp.com

 

Aditya N

unread,
Oct 5, 2016, 6:08:49 PM10/5/16
to open-dnp3
> To unsubscribe from this group and stop receiving emails from it, send an email to open-dnp3+...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
>
>
>
> Daniel Evans
> Software Engineer
> Green Energy Corp
> o (919) 836-9916
> dev...@greenenergycorp.com
>  
> Transforming the Smart Grid
> www.greenenergycorp.com
>  

Hii, I just did sudo apt-get step again.. Next i saw the directory and run this command--
./configure --with-python --with-boost-libdir=/usr/libx86_64-linux-gnu
After a while , i got this error somethign different than earlier

/usr/bin/ld: demos/master-cpp/DemoMain.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
//usr/lib/libboost_system.so.1.46.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:1671: recipe for target 'demo-master-cpp' failed
make[1]: *** [demo-master-cpp] Error 1
make[1]: Leaving directory '/home/rajee/project/.idea/dnp3'
Makefile:1219: recipe for target 'all' failed

Aditya N

unread,
Oct 5, 2016, 7:17:35 PM10/5/16
to open-dnp3
Hey.. I finally figured it out and could install it successfully.. Thanks a lot for helping..Just one question, I was going through the function codes of DNP3 protocol but couldn't find any function code which queries for slave device details (like model name and vendor name of slave devices which is similar to 43 function code ( get device identification) or BACnet property instance 70 and 120). Do you know any way by which I can query model name and vendor name on DNP3 protocol. Thanks in advance.
Reply all
Reply to author
Forward
0 new messages