I don't have this problem on fully patched 10.3-RELEASE installations. I've done a
I have a feeling it's got something to do with SSL, based on some other complaints on this forum about similar issues and some error messages I've seen working on this specific problem.
I should note I've got
I don't know what yaSSL is, but I've seen errors in reference to it. Sample clip from the make:
Another suspicious error:
That looks like a legit typo. I've gone into /usr/ports/databases/mysql57-server/work/mysql-5.7.12/sql/sql_alter_instance.h and changed the bad reference, but that's in a work directory and a
When the build ultimately craps out, it looks something like this:
It doesn't always cease building at the same percentage. Maybe that's some kind of threading thing? Sometimes it gets all the way up to something like 93%, but it never makes it all the way.
I did the
Any suggestions?
portupgrade -af
and all 660 or so other ports seem fine.I have a feeling it's got something to do with SSL, based on some other complaints on this forum about similar issues and some error messages I've seen working on this specific problem.
I should note I've got
WITH_OPENSSL_PORT=yes
defined in my /etc/make.conf. Commenting it out didn't seem to have any effect.I don't know what yaSSL is, but I've seen errors in reference to it. Sample clip from the make:
Code:
...
[ 68%] Building CXX object rapid/plugin/x/CMakeFiles/mysqlxtest.dir/mysqlxtest_src/mysqlxtest.cc.o
[ 68%] Building CXX object sql/CMakeFiles/binlog.dir/sql_binlog.cc.o
[ 69%] Building CXX object rapid/plugin/x/CMakeFiles/mysqlxtest.dir/mysqlxtest_src/password_hasher.cc.o
[ 69%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/handler.cc.o
/usr/ports/databases/mysql57-server/work/mysql-5.7.12/rapid/plugin/x/mysqlxtest_src/password_hasher.cc:135:3: error: use of undeclared identifier 'yaSSL'
yaSSL::RAND_bytes((unsigned char *) buffer, SCRAMBLE_LENGTH);
^
1 error generated.
*** [rapid/plugin/x/CMakeFiles/mysqlxtest.dir/mysqlxtest_src/password_hasher.cc.o] Error code 1
[ 69%] Building CXX object sql/CMakeFiles/binlog.dir/rpl_filter.cc.o
[ 69%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/hostname.cc.o
...
Code:
...
[ 74%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_alloc_error_handler.cc.o
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_alter.cc.o
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_alter_instance.cc.o
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_analyse.cc.o
In file included from /usr/ports/databases/mysql57-server/work/mysql-5.7.12/sql/sql_alter_instance.cc:16:
/usr/ports/databases/mysql57-server/work/mysql-5.7.12/sql/sql_alter_instance.h:16:9: warning: 'SQL_ALTER_INSTANCE_INCLUDED' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef SQL_ALTER_INSTANCE_INCLUDED
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/databases/mysql57-server/work/mysql-5.7.12/sql/sql_alter_instance.h:17:9: note: 'SQL_ALTER_INSTNACE_INCLUDED' is defined here; did you mean 'SQL_ALTER_INSTANCE_INCLUDED'?
#define SQL_ALTER_INSTNACE_INCLUDED
^~~~~~~~~~~~~~~~~~~~~~~~~~~
SQL_ALTER_INSTANCE_INCLUDED
In file included from /usr/ports/databases/mysql57-server/work/mysql-5.7.12/sql/sql_admin.cc:35:
/usr/ports/databases/mysql57-server/work/mysql-5.7.12/sql/sql_alter_instance.h:16:9: warning: 'SQL_ALTER_INSTANCE_INCLUDED' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef SQL_ALTER_INSTANCE_INCLUDED
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/databases/mysql57-server/work/mysql-5.7.12/sql/sql_alter_instance.h:17:9: note: 'SQL_ALTER_INSTNACE_INCLUDED' is defined here; did you mean 'SQL_ALTER_INSTANCE_INCLUDED'?
#define SQL_ALTER_INSTNACE_INCLUDED
^~~~~~~~~~~~~~~~~~~~~~~~~~~
SQL_ALTER_INSTANCE_INCLUDED
1 warning generated.
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_base.cc.o
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_bootstrap.cc.o
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_initialize.cc.o
1 warning generated.
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_cache.cc.o
[ 75%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_class.cc.o
...
make clean
wipes it out, so I'm too ignorant to see if that does anything or if it's just a red herring.When the build ultimately craps out, it looks something like this:
Code:
...
[ 79%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_lex.cc.o
[ 79%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_lex_hash.cc.o
[ 79%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_lex_hints.cc.o
[ 79%] Building CXX object libmysqld/CMakeFiles/sql_embedded.dir/sql_hints.yy.cc.o
[ 79%] Linking CXX static library libsql_embedded.a
[ 80%] Built target sql_embedded
1 error
*** [all] Error code 2
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1
Stop in /usr/ports/databases/mysql57-server.
*** [stage] Error code 1
Stop in /usr/ports/databases/mysql57-server.
I did the
MAKE_JOBS_UNSAFE=yes
and it was very slow. The final error before crash seemed to be the undeclared yaSSL thing. I can run that again if you think it'll help.Any suggestions?