Bug 210218 - databases/mysql57-server: port does not compile on FreeBSD 9.3-RELEASE
Summary: databases/mysql57-server: port does not compile on FreeBSD 9.3-RELEASE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
: 210217 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-11 19:27 UTC by Leif Velcro
Modified: 2016-07-04 15:26 UTC (History)
2 users (show)

See Also:
mmokhi: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leif Velcro 2016-06-11 19:27:31 UTC
The port currently doesn't compile, always bombing with something like this, although not always at the same percentage completion:

> [ 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.

Doing the MAKE_JOBS_UNSAFE=yes thing reveals this error:

> /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);

Also a suspicious typo...no idea if it's related:

> 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

I can provide more debug details as needed.
Comment 1 Leif Velcro 2016-06-11 19:33:08 UTC
*** Bug 210217 has been marked as a duplicate of this bug. ***
Comment 2 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-06-12 12:25:42 UTC
(In reply to Leif Velcro from comment #0)
i've tested it in poudriere, i see no problem in "building" (on 93-amd64/i386, and also 10.3 and 11).

Is you port-tree updated ?
Can you provide more info ?
Comment 3 Leif Velcro 2016-06-12 14:05:13 UTC
Port tree is updated.  We've got about 660 ports, so interactions are potentially complicated.  A complete portupgrade -af was done.

# uname -a
FreeBSD machine.domain.com 9.3-RELEASE-p43 FreeBSD 9.3-RELEASE-p43 #3: Fri Jun  3 20:53:22 EDT 2016     machine.domain.com:/usr/obj/usr/src/sys/machine  amd64

It's actually at patch level 44 (via freebsd-update), but we haven't rebuilt the kernel yet, since mysql will stop working when machine reboots.  Nothing special going on in the custom kernel, other than changing the name from GENERIC.

Things were broken at patch level 43.  Tried the freebsd-update just to see if it would do anything and it didn't change the behavior.

Any suggestions for anything else to try?  Maybe something related to yaSSL?
Comment 4 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-06-12 15:38:11 UTC
(In reply to Leif Velcro from comment #3)
Since 2 or 3 updates ago, we've disabled YaSSL and forced it to be built using OpenSSL/LibreSSL (base and/or ports).
So i don't think it's related to SSL.
Can you please gimme complete build log, so that maybe i can help you more :) ?
Comment 5 Leif Velcro 2016-06-12 19:13:32 UTC
Aside from the typo, there's the error above that says "use of undeclared identifier 'yaSSL'", so something yassly is going on there.

Thanks, I'll send the whole build log to you.
Comment 6 Leif Velcro 2016-06-16 17:16:21 UTC
The update to port which deals with changing from WITH_OPENSSL_PORT=yes to the new DEFAULT_VERSIONS construction in /etc/make.conf seems to have solved this issue, so it probably did have something to do with SSL.

The SQL_ALTER_INSTNACE_INCLUDED typo is still in there (should probably be fixed?), but the port now compiles and seems to work.
Comment 7 Mahdi Mokhtari freebsd_committer freebsd_triage 2016-07-04 15:26:08 UTC
Okay :)
So i close it as fixed.
Thanks for infos.