[Maria-developers] sources won't compile
Hi, I encountered a problem by compiling the sources of MariaDB 10.04. Some days ago I upgraded my system from Ubuntu 13.10 to 14.04 and now I encounter these problems: gcc used is this: gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) a minor glitch: cmake complains: Syntax Warning in cmake code at /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/cmake/ssl.cmake:210:55 Argument not separated from preceding token by whitespace. This is the reason for this: ELSE() MESSAGE(SEND_ERROR "Wrong option for WITH_SSL. Valid values are : "${WITH_SSL_DOC}) ENDIF() I added a space between "$(WITH and this works now. But in compiling the sources this error was reported: Scanning dependencies of target innobase [ 45%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/row/row0log.cc.o /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/storage/innobase/row/row0log.cc: In function ‘dberr_t row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*)’: /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/storage/innobase/row/row0log.cc:2201:11: error: ‘srv_buf_size’ was not declared in this scope ofs, srv_buf_size); ^ By looking into the code of row0log.cc I found that FALLOC_FL_PUNCH_HOLE seems to be defined now. This is defined in /usr/include/linux/falloc.h. So what happened here during the upgrade of Linux? Regards AugustQ PS: by looking into Ubuntu 12.04 I found that this file also existed here.
Hi, AugustQ! Please, get the latest MariaDB release. This bug in ssl.cmake was fixed six months ago. InnoDB bug - I remember it too, I cannot say exactly when it was fixed though, but I believe it was. Regards, Sergei On May 03, AugustQ wrote:
I encountered a problem by compiling the sources of MariaDB 10.04.
Some days ago I upgraded my system from Ubuntu 13.10 to 14.04 and now I encounter these problems:
gcc used is this: gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
a minor glitch: cmake complains: Syntax Warning in cmake code at /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/cmake/ssl.cmake:210:55 Argument not separated from preceding token by whitespace.
This is the reason for this: ELSE() MESSAGE(SEND_ERROR "Wrong option for WITH_SSL. Valid values are : "${WITH_SSL_DOC}) ENDIF()
I added a space between "$(WITH and this works now.
But in compiling the sources this error was reported: Scanning dependencies of target innobase [ 45%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/row/row0log.cc.o /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/storage/innobase/row/row0log.cc: In function ‘dberr_t row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*)’: /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/storage/innobase/row/row0log.cc:2201:11: error: ‘srv_buf_size’ was not declared in this scope ofs, srv_buf_size); ^
Hi Sergei, thanks for the tip. I've downloaded MariaDB 10.0.10 and this works now. Regards AugustQ PS: well, there were some errors reported by cmake, like couldn't find bfd.h, floatingpoint.h, ieeefp.h, ndir.h and so on (total: 39). After restarting cmake I could do a make and make install. The software generated seems to work. Am Samstag, den 03.05.2014, 14:56 +0200 schrieb Sergei Golubchik:
Hi, AugustQ!
Please, get the latest MariaDB release. This bug in ssl.cmake was fixed six months ago. InnoDB bug - I remember it too, I cannot say exactly when it was fixed though, but I believe it was.
Regards, Sergei
On May 03, AugustQ wrote:
I encountered a problem by compiling the sources of MariaDB 10.04.
Some days ago I upgraded my system from Ubuntu 13.10 to 14.04 and now I encounter these problems:
gcc used is this: gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
a minor glitch: cmake complains: Syntax Warning in cmake code at /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/cmake/ssl.cmake:210:55 Argument not separated from preceding token by whitespace.
This is the reason for this: ELSE() MESSAGE(SEND_ERROR "Wrong option for WITH_SSL. Valid values are : "${WITH_SSL_DOC}) ENDIF()
I added a space between "$(WITH and this works now.
But in compiling the sources this error was reported: Scanning dependencies of target innobase [ 45%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/row/row0log.cc.o /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/storage/innobase/row/row0log.cc: In function ‘dberr_t row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*)’: /home/august/workspace/MariaDB/mariadb-10.0.4/contrib_AQ_01/storage/innobase/row/row0log.cc:2201:11: error: ‘srv_buf_size’ was not declared in this scope ofs, srv_buf_size); ^
participants (2)
-
AugustQ
-
Sergei Golubchik