After a lot of issues, I managed to generate an ipk file that works onto my ds207+ NAS with linknx folowing options :
- Clickatell SMS gateway enabled
- LUA scripting support enabled
But I really don't manage to buld with smtp and mysql options :-((
According mysql support, I use this configure option :
-with-mysql=/usr/syno/mysql
I'd like to use synology native mysql database.
Is it possible ?
According smtp compilation, I use this configure option :
-enable-smtp=static
make libesmtp-nothread-stage seems to be ok.
But I've got this issue :
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/arm-marvell-linux-gnu-g++ -g -O2 -L/home/benoit/optware/syno-x07/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/benoit/optware/syno-x07/staging/opt/lib -o linknx linknx.o logger.o ruleserver.o objectcontroller.o common.o eibclient.o threads.o timermanager.o persistentstorage.o xmlserver.o smsgateway.o emailgateway.o knxconnection.o services.o suncalc.o luacondition.o ioport.o ../ticpp/libticpp.a -L/opt/lib -lpthsem -ldl -lnsl -L/home/benoit/optware/syno-x07/staging/lib -lcurl -L/home/benoit/optware/syno-x07/staging/opt/lib -llua -lm -lm
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:166: undefined reference to `smtp_create_session'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:167: undefined reference to `smtp_add_message'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_set_server'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:174: undefined reference to `auth_create_context'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:176: undefined reference to `auth_set_interact_cb'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:180: undefined reference to `smtp_auth_set_context'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_set_reverse_path'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:188: undefined reference to `smtp_set_header'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_set_header'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:195: undefined reference to `smtp_set_header_option'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:200: undefined reference to `smtp_set_messagecb'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_add_recipient'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:208: undefined reference to `smtp_start_session'
emailgateway.o: In function `operator<<':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/ostream.tcc:63: undefined reference to `smtp_errno'
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/ostream.tcc:63: undefined reference to `smtp_strerror'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:225: undefined reference to `smtp_destroy_session'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:226: undefined reference to `auth_destroy_context'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:227: undefined reference to `auth_client_exit'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:218: undefined reference to `smtp_message_transfer_status'
collect2: ld returned 1 exit status
make: *** Erreur 1
make: quittant le répertoire « /home/benoit/optware/syno-x07/builds/linknx/src »
make: *** Erreur 1
make: quittant le répertoire « /home/benoit/optware/syno-x07/builds/linknx »
make: *** Erreur 2
make: quittant le répertoire « /home/benoit/optware/syno-x07/builds/linknx »
make: *** Erreur 2
I don't find any solution.
Thanks per advance.
Regards,
Ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I missed something important in my previous post :
make libesmtp-nothread-ipk
cd builds/libesmtp-nothread
./configure -target=arm-marvell-linux-gnu -program-suffix=-nothread -disable-pthreads
make
sudo make install
sudo cp /usr/local/bin/libesmtp-config-nothread /usr/local/bin/libestmp-config
cd ../..
make linknx-ipk
Do anybody have an idea about mysql option ?
Regards,
Ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
After a lot of issues, I managed to generate an ipk file that works onto my ds207+ NAS with linknx folowing options :
- Clickatell SMS gateway enabled
- LUA scripting support enabled
But I really don't manage to buld with smtp and mysql options :-((
According mysql support, I use this configure option :
-with-mysql=/usr/syno/mysql
I'd like to use synology native mysql database.
Is it possible ?
According smtp compilation, I use this configure option :
-enable-smtp=static
make libesmtp-nothread-stage seems to be ok.
But I've got this issue :
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/arm-marvell-linux-gnu-g++ -g -O2 -L/home/benoit/optware/syno-x07/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/benoit/optware/syno-x07/staging/opt/lib -o linknx linknx.o logger.o ruleserver.o objectcontroller.o common.o eibclient.o threads.o timermanager.o persistentstorage.o xmlserver.o smsgateway.o emailgateway.o knxconnection.o services.o suncalc.o luacondition.o ioport.o ../ticpp/libticpp.a -L/opt/lib -lpthsem -ldl -lnsl -L/home/benoit/optware/syno-x07/staging/lib -lcurl -L/home/benoit/optware/syno-x07/staging/opt/lib -llua -lm -lm
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:166: undefined reference to `smtp_create_session'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:167: undefined reference to `smtp_add_message'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_set_server'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:174: undefined reference to `auth_create_context'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:176: undefined reference to `auth_set_interact_cb'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:180: undefined reference to `smtp_auth_set_context'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_set_reverse_path'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:188: undefined reference to `smtp_set_header'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_set_header'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:195: undefined reference to `smtp_set_header_option'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:200: undefined reference to `smtp_set_messagecb'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1456: undefined reference to `smtp_add_recipient'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:208: undefined reference to `smtp_start_session'
emailgateway.o: In function `operator<<':
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/ostream.tcc:63: undefined reference to `smtp_errno'
/home/benoit/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/../lib/gcc/arm-marvell-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/ostream.tcc:63: undefined reference to `smtp_strerror'
emailgateway.o: In function `EmailGateway::sendEmail(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:225: undefined reference to `smtp_destroy_session'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:226: undefined reference to `auth_destroy_context'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:227: undefined reference to `auth_client_exit'
/home/benoit/optware/syno-x07/builds/linknx/src/emailgateway.cpp:218: undefined reference to `smtp_message_transfer_status'
collect2: ld returned 1 exit status
make: *** Erreur 1
make: quittant le répertoire « /home/benoit/optware/syno-x07/builds/linknx/src »
make: *** Erreur 1
make: quittant le répertoire « /home/benoit/optware/syno-x07/builds/linknx »
make: *** Erreur 2
make: quittant le répertoire « /home/benoit/optware/syno-x07/builds/linknx »
make: *** Erreur 2
I don't find any solution.
Thanks per advance.
Regards,
Ben
Hi,
I finally managed to cross compile linknx with libesmtp option (without pthreads support) like this:
make libesmtp-nothread-ipk
cd builds/libesmtp-nothread
./configure -disable-pthreads
make
sudo make install
cd ../..
make linknx-ipk
Does anybody know how to use mysql natively installed onto the nas ?
Thanks,
Ben
Sorry, I missed something important in my previous post :
make libesmtp-nothread-ipk
cd builds/libesmtp-nothread
./configure -target=arm-marvell-linux-gnu -program-suffix=-nothread -disable-pthreads
make
sudo make install
sudo cp /usr/local/bin/libesmtp-config-nothread /usr/local/bin/libestmp-config
cd ../..
make linknx-ipk
Do anybody have an idea about mysql option ?
Regards,
Ben