kirkdwilson
When following the git clone.... and then ./ install.sh rpi on a RPI-zero w
I receive a compile error when compiling main program.

/tmp/ccqA15FK.o in function 'dnp3StartServer(init)
dnp3.cpp🙁.text +0x1474): undefined reference to asiodnp3:😃NP3Manager::AddTCPServer(std::string const&, unsigned int, asiopal::ChannelRetry const&, stdcollect2: error: Id returned 1 exit status
Error compiling C files
Compilation finished with errors!
Quote 0 0
thiagoralves
What system do you have installed in your RPI? Sometimes different versions of GCC or other libraries can not go well with OpenPLC. I just installed it on a fresh Raspbian and it worked just fine. Try flashing a new image of Raspbian and try again.
Quote 0 0
kirkdwilson
I just created the image from the Raspbian download 2 weeks ago.  I'm running GCC (Raspbian 4.8.5-4) 4.8.5
Quote 0 0
kirkdwilson
by the way it was a 2018-10-9 stretch image
Quote 0 0
thiagoralves
Did you have something else installed before installing OpenPLC? It looks like something went wrong when OpenDNP3 library was being installed, and then when OpenPLC tried to use it you got this error. It would be useful if you can provide the full log of the installation so I can check what went wrong with OpenDNP3. If you don't have the log, just try installing OpenPLC again and post the full log here.
Quote 0 0
kirkdwilson
Admin.  Yes I was working on i2c modules.  But otherwise it was unchanged that I know of. I created the log file, but alas I lost it in that it was erased when the error finished.  Which I don't understand.  However, I have proved to myself, that yes a clearn install of Raspbian 2018-11-13 does compile correctly.  Ill re-generate the log file and send it.  But it may be tomorrow.
Quote 0 0
kirkdwilson
https://1drv.ms/t/s!Ar0vAtGRSKw_nlQzhk5qi7BQ_Yi7
Is the link to the log file.
Quote 0 0
kirkdwilson
Any perspective why my compile was failing?
Quote 0 0
thiagoralves
It is not clear the reason why. Maybe with the contents of the CMake logs from "/home/pi/OpenPLC_v3/utils/dnp3_src/CMakeFiles/CMakeOutput.log" and "/home/pi/OpenPLC_v3/utils/dnp3_src/CMakeFiles/CMakeError.log" we could find some hints. My guess is that whatever you installed before to work on your i2c modules broke something on your build-essential package.
Quote 0 0