Bug 166503 - databases/mysql55-client 5.5.22 won't build WITH_OPENSSL on i386 8.3-RC2 or 9.0-RELEASE
Summary: databases/mysql55-client 5.5.22 won't build WITH_OPENSSL on i386 8.3-RC2 or 9...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-30 00:20 UTC by John Marshall
Modified: 2012-04-02 08:50 UTC (History)
0 users

See Also:


Attachments
patch-extra_yassl_taocrypt_src_interger.cpp (558 bytes, text/x-c++src; charset=US-ASCII; name="patch-extra_yassl_taocrypt_src_interger.cpp")
2012-03-31 12:44 UTC, Oleksii
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Marshall 2012-03-30 00:20:08 UTC
The default OPTIONS for this port include WITH_SSL.  I have tried
building the port on four i386 systems: two 8.3-RC2 and two 9.0-RELEASE.
The build fails on all systems at the same point which is obviously
related to the port's built-in SSL stuff.  Building with WITHOUT_SSL
succeeds.

===>  Building for mysql-client-5.5.22
Scanning dependencies of target INFO_SRC
Scanning dependencies of target INFO_BIN
[  0%] Built target INFO_SRC
[  0%] Built target INFO_BIN
Scanning dependencies of target yassl
Scanning dependencies of target taocrypt
[  0%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/buffer.cpp.o
[  0%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/aes.cpp.o
[  1%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/cert_wrapper.cpp.o
[  2%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/aestables.cpp.o
[  2%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/algebra.cpp.o
[  2%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/crypto_wrapper.cpp.o
[  3%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/arc4.cpp.o
[  3%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/asn.cpp.o
[  4%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/handshake.cpp.o
[  5%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/coding.cpp.o
[  5%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/des.cpp.o
[  5%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/dh.cpp.o
[  5%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/lock.cpp.o
[  6%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/dsa.cpp.o
[  7%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/log.cpp.o
[  7%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/socket_wrapper.cpp.o
[  7%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/ssl.cpp.o
[  7%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/file.cpp.o
[  8%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/hash.cpp.o
[  8%] Building CXX object extra/yassl/taocrypt/CMakeFiles/taocrypt.dir/src/integer.cpp.o
/usr/ports/databases/mysql55-client/work/mysql-5.5.22/extra/yassl/taocrypt/src/integer.cpp: In member function 'typename TaoCrypt::AlignedAllocator<T>::pointer TaoCrypt::AlignedAllocator<T>::allocate(typename TaoCrypt::AllocatorBase<T>::size_type, const void*)':
/usr/ports/databases/mysql55-client/work/mysql-5.5.22/extra/yassl/taocrypt/src/integer.cpp:76: error: there are no arguments to 'max_size' that depend on a template parameter, so a declaration of 'max_size' must be available
/usr/ports/databases/mysql55-client/work/mysql-5.5.22/extra/yassl/taocrypt/src/integer.cpp:76: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
[  9%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/timer.cpp.o
/usr/ports/databases/mysql55-client/work/mysql-5.5.22/extra/yassl/taocrypt/src/integer.cpp: At global scope:
/usr/ports/databases/mysql55-client/work/mysql-5.5.22/extra/yassl/taocrypt/src/integer.cpp:1137: warning: 'TaoCrypt::s_RunAtStartupSetPentiumFunctionPointers' defined but not used
*** Error code 1
1 error
*** Error code 2
[  9%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/yassl_error.cpp.o
[ 10%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/yassl_imp.cpp.o
[ 10%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/yassl_int.cpp.o
[ 11%] Building CXX object extra/yassl/CMakeFiles/yassl.dir/src/template_instnt.cpp.o
Linking CXX static library libyassl.a
[ 11%] Built target yassl
1 error
*** Error code 2
1 error
*** Error code 1

Stop in /usr/ports/databases/mysql55-client.
*** Error code 1

Stop in /usr/ports/databases/mysql55-client.

Fix: 

I have no idea but suggest that, in addition, the port's WITH_SSL option
could be changed from OPENSSL to YASSL or SSL, since it always uses the
bundled yassl and has nothing at all to do with OpenSSL.

Thank you.
How-To-Repeat: 
cd /usr/ports/databases/mysql55-client
make clean
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-03-30 00:20:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2012-03-30 12:18:27 UTC
State Changed
From-To: open->feedback

Can you try to modify the incriminated row in 
extra/yassl/taocrypt/src/integer.cpp 
from "max_size()" into "max_size<T>()" ?
Comment 3 Oleksii 2012-03-31 12:50:03 UTC
I forgot to mention that the suggestion given on March 30th at
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/166503
doesn't solve the problem, because the max_size is not a template function,
but
is a member of a template class.

Thanks.
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-04-02 08:40:28 UTC
ale         2012-04-02 07:40:15 UTC

  FreeBSD ports repository

  Added files:
    databases/mysql55-server/files 
                                   patch-extra_yassl_taocrypt_src_integer.cpp 
  Log:
  Fix build on i386.
  
  PR:             ports/166503
  Submitted by:   Oleksii Tsai <oleksii.tsai@googlemail.com>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.1       +11 -0     ports/databases/mysql55-server/files/patch-extra_yassl_taocrypt_src_integer.cpp (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Alex Dupre freebsd_committer freebsd_triage 2012-04-02 08:43:33 UTC
State Changed
From-To: feedback->closed

Fixed, thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2012-04-02 08:43:37 UTC
ale         2012-04-02 07:43:24 UTC

  FreeBSD ports repository

  Added files:
    databases/mysql55-client/files 
                                   patch-extra_yassl_taocrypt_src_integer.cpp 
  Log:
  Fix build on i386.
  
  PR:             ports/166503
  Submitted by:   Oleksii Tsai <oleksii.tsai@googlemail.com>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.1       +11 -0     ports/databases/mysql55-client/files/patch-extra_yassl_taocrypt_src_integer.cpp (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"