Compile of Upload Daemon failed

Topics: 1. General
Dec 5, 2014 at 5:12 PM
Hello.

During compiling SBFspotUploadDaemon I get these Messages:

~/sbfspot.3/SBFspotUploadDaemon $ sudo make install_mysql
test -d bin/Release_MySQL || mkdir -p bin/Release_MySQL
test -d obj/Release_MySQL/SBFspot || mkdir -p obj/Release_MySQL/SBFspot
test -d obj/Release_MySQL || mkdir -p obj/Release_MySQL
test -d obj/Release_MySQL/SBFspotUploadCommon || mkdir -p obj/Release_MySQL/SBFspotUploadCommon
g++ -Wall -DUSE_MYSQL -I../SBFspot -c ../SBFspot/db_MySQL.cpp -o obj/Release_MySQL/SBFspot/db_MySQL.o
In file included from /usr/include/arm-linux-gnueabihf/bits/waitstatus.h:65:0,
             from /usr/include/stdlib.h:43,
             from ../SBFspot/oslinux.h:53,
             from ../SBFspot/osselect.h:39,
             from ../SBFspot/db_MySQL.h:39,
             from ../SBFspot/db_MySQL.cpp:40:
../SBFspot/endian.h:57:2: error: #error Unknown __BYTE_ORDER
In file included from /usr/include/stdlib.h:43:0,
             from ../SBFspot/oslinux.h:53,
             from ../SBFspot/osselect.h:39,
             from ../SBFspot/db_MySQL.h:39,
             from ../SBFspot/db_MySQL.cpp:40:
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:80:27: error: declaration of ‘unsigned int wait::<anonymous struct>::__w_retcode’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:75:27: error: conflicts with previous declaration ‘unsigned int wait::<anonymous struct>::__w_retcode’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:81:28: error: declaration of ‘unsigned int wait::<anonymous struct>::__w_coredump’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:74:28: error: conflicts with previous declaration ‘unsigned int wait::<anonymous struct>::__w_coredump’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:82:27: error: declaration of ‘unsigned int wait::<anonymous struct>::__w_termsig’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:73:27: error: conflicts with previous declaration ‘unsigned int wait::<anonymous struct>::__w_termsig’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:94:27: error: declaration of ‘unsigned int wait::<anonymous struct>::__w_stopsig’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:89:27: error: conflicts with previous declaration ‘unsigned int wait::<anonymous struct>::__w_stopsig’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:95:27: error: declaration of ‘unsigned int wait::<anonymous struct>::__w_stopval’
/usr/include/arm-linux-gnueabihf/bits/waitstatus.h:88:27: error: conflicts with previous declaration ‘unsigned int wait::<anonymous struct>::__w_stopval’
makefile:134: recipe for target 'obj/Release_MySQL/SBFspot/db_MySQL.o' failed
make: *** [obj/Release_MySQL/SBFspot/db_MySQL.o] Error 1

Whats wrong? All Devs installed on a Raspberry Pi with volkszähler-Image.

Greetings. Mike
Coordinator
Dec 6, 2014 at 9:13 AM
This has been solved (see https://sbfspot.codeplex.com/workitem/77)
Just re-download Version 3.0.2
Dec 6, 2014 at 10:53 AM
Ok, reload the files and now:

pi@raspberrypi ~/sbfspot.3/SBFspotUploadDaemon $ sudo make install_mysql
test -d bin/Release_MySQL || mkdir -p bin/Release_MySQL
test -d obj/Release_MySQL/SBFspot || mkdir -p obj/Release_MySQL/SBFspot
test -d obj/Release_MySQL || mkdir -p obj/Release_MySQL
test -d obj/Release_MySQL/SBFspotUploadCommon || mkdir -p obj/Release_MySQL/SBFspotUploadCommon
g++ -Wall -DUSE_MYSQL -I../SBFspot -c main.cpp -o obj/Release_MySQL/main.o
main.cpp: In function ‘int main(int, char**)’:
main.cpp:97:26: error: ‘SQL_MINIMUM_SCHEMA_VERSION’ was not declared in this scope
makefile:137: recipe for target 'obj/Release_MySQL/main.o' failed
make: *** [obj/Release_MySQL/main.o] Error 1

lokale is en_GB.UTF-8
Coordinator
Dec 6, 2014 at 12:01 PM
Remove all files and untar them again
Dec 6, 2014 at 2:16 PM
Don work.

pi@raspberrypi ~/sbfspot.3/SBFspotUploadDaemon $ cd
pi@raspberrypi ~ $ sudo rm -R sbfspot.3
pi@raspberrypi ~ $ mkdir sbfspot.3
pi@raspberrypi ~ $ tar -xzf SBFspot_SRC_302_Linux_Win32.tar.gz -C sbfspot.3
pi@raspberrypi ~ $ cd sbf*/SBFspot
pi@raspberrypi ~/sbfspot.3/SBFspot $ sudo make install_mysql
test -d bin/Release_MySQL || mkdir -p bin/Release_MySQL
test -d obj/Release_MySQL || mkdir -p obj/Release_MySQL
g++ -Wall -O2 -DUSE_MYSQL -c boost_ext.cpp -o obj/Release_MySQL/boost_ext.o
g++ -Wall -O2 -DUSE_MYSQL -c db_MySQL.cpp -o obj/Release_MySQL/db_MySQL.o
g++ -Wall -O2 -DUSE_MYSQL -c db_MySQL_Export.cpp -o obj/Release_MySQL/db_MySQL_Export.o
g++ -Wall -O2 -DUSE_MYSQL -c misc.cpp -o obj/Release_MySQL/misc.o
g++ -Wall -O2 -DUSE_MYSQL -c strptime.cpp -o obj/Release_MySQL/strptime.o
g++ -Wall -O2 -DUSE_MYSQL -c sunrise_sunset.cpp -o obj/Release_MySQL/sunrise_sunset.o
g++ -Wall -O2 -DUSE_MYSQL -c SBFNet.cpp -o obj/Release_MySQL/SBFNet.o
g++ -Wall -O2 -DUSE_MYSQL -c Bluetooth.cpp -o obj/Release_MySQL/Bluetooth.o
g++ -Wall -O2 -DUSE_MYSQL -c CSVexport.cpp -o obj/Release_MySQL/CSVexport.o
g++ -Wall -O2 -DUSE_MYSQL -c Ethernet.cpp -o obj/Release_MySQL/Ethernet.o
g++ -Wall -O2 -DUSE_MYSQL -c EventData.cpp -o obj/Release_MySQL/EventData.o
g++ -Wall -O2 -DUSE_MYSQL -c ArchData.cpp -o obj/Release_MySQL/ArchData.o
g++ -Wall -O2 -DUSE_MYSQL -c SBFspot.cpp -o obj/Release_MySQL/SBFspot.o
/tmp/ccACaCD8.s: Assembler messages:
/tmp/ccACaCD8.s:8909: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:8919: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:8936: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:8988: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:8998: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:9015: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:10206: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:10216: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:10233: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:30200: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:30209: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:30226: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:31807: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:31817: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:31834: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:31887: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:31897: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:31914: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:31991: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32000: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32017: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32070: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32080: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32097: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32136: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32146: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccACaCD8.s:32163: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
g++ -Wall -O2 -DUSE_MYSQL -c TagDefs.cpp -o obj/Release_MySQL/TagDefs.o
g++ -o bin/Release_MySQL/SBFspot obj/Release_MySQL/boost_ext.o obj/Release_MySQL/db_MySQL.o obj/Release_MySQL/db_MySQL_Export.o obj/Release_MySQL/misc.o obj/Release_MySQL/strptime.o obj/Release_MySQL/sunrise_sunset.o obj/Release_MySQL/SBFNet.o obj/Release_MySQL/Bluetooth.o obj/Release_MySQL/CSVexport.o obj/Release_MySQL/Ethernet.o obj/Release_MySQL/EventData.o obj/Release_MySQL/ArchData.o obj/Release_MySQL/SBFspot.o obj/Release_MySQL/TagDefs.o -s -lbluetooth -lboost_date_time -lmysqlclient
cp TagList*.txt bin/Release_MySQL
cp date_time_zonespec.csv bin/Release_MySQL
test -d bin/Release_MySQL || release_mysql
test -d /usr/local/bin/sbfspot.3 || mkdir -p /usr/local/bin/sbfspot.3
test -f /usr/local/bin/sbfspot.3/SBFspot.cfg || cp SBFspot.cfg /usr/local/bin/sbfspot.3/
cp -R bin/Release_MySQL/ /usr/local/bin/sbfspot.3/
pi@raspberrypi ~/sbfspot.3/SBFspot $ cd ..
pi@raspberrypi ~/sbfspot.3 $ cd Daemon
pi@raspberrypi ~/sbfspot.3/SBFspotUploadDaemon $ sudo make install_mysql
test -d bin/Release_MySQL || mkdir -p bin/Release_MySQL
test -d obj/Release_MySQL/SBFspot || mkdir -p obj/Release_MySQL/SBFspot
test -d obj/Release_MySQL || mkdir -p obj/Release_MySQL
test -d obj/Release_MySQL/SBFspotUploadCommon || mkdir -p obj/Release_MySQL/SBFspotUploadCommon
g++ -Wall -DUSE_MYSQL -I../SBFspot -c ../SBFspot/db_MySQL.cpp -o obj/Release_MySQL/SBFspot/db_MySQL.o
g++ -Wall -DUSE_MYSQL -I../SBFspot -c main.cpp -o obj/Release_MySQL/main.o
main.cpp: In function ‘int main(int, char
)’:
main.cpp:97:26: error: ‘SQL_MINIMUM_SCHEMA_VERSION’ was not declared in this scope
makefile:137: recipe for target 'obj/Release_MySQL/main.o' failed
make: *** [obj/Release_MySQL/main.o] Error 1
pi@raspberrypi ~/sbfspot.3/SBFspotUploadDaemon $

another Ideas?
Coordinator
Dec 6, 2014 at 3:46 PM
It's a bug... I'll have a look
Coordinator
Dec 6, 2014 at 4:08 PM
I uploaded new sources - No change of version
Sorry for the inconvenience... seems I was too confident by not building the MySQL version ;-)
Dec 7, 2014 at 12:50 AM
Great work. Compiling completed. Thanks

Mike
Marked as answer by SBF on 12/29/2014 at 7:59 AM