Bug 226550

Summary: security/mbedtls 2.7.0 source typo problem
Product: Ports & Packages Reporter: Martin MATO <martin.mato>
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (tijl)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Martin MATO 2018-03-12 08:06:37 UTC
the latest version of security/mbedtls introduce some typo error as described here
https://github.com/ARMmbed/mbedtls/issues/1358

the issue was fixed in source but not in the port

this problem prevent at least to compile www/hiawatha successfully:

===>  Building for hiawatha-10.7_1
[1/14] /usr/bin/cc  -I. -I/usr/local/include/libxml2 -I/usr/local/include -O2 -Wall -Wextra -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing -O2 -g -DNDEBUG -MD -MT CMakeFiles/hiawatha.dir/src/tomahawk.c.o -MF CMakeFiles/hiawatha.dir/src/tomahawk.c.o.d -o CMakeFiles/hiawatha.dir/src/tomahawk.c.o   -c src/tomahawk.c
[2/14] /usr/bin/cc  -I. -I/usr/local/include/libxml2 -I/usr/local/include -O2 -Wall -Wextra -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing -O2 -g -DNDEBUG -MD -MT CMakeFiles/hiawatha.dir/src/tls.c.o -MF CMakeFiles/hiawatha.dir/src/tls.c.o.d -o CMakeFiles/hiawatha.dir/src/tls.c.o   -c src/tls.c
FAILED: CMakeFiles/hiawatha.dir/src/tls.c.o
/usr/bin/cc  -I. -I/usr/local/include/libxml2 -I/usr/local/include -O2 -Wall -Wextra -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing -O2 -g -DNDEBUG -MD -MT CMakeFiles/hiawatha.dir/src/tls.c.o -MF CMakeFiles/hiawatha.dir/src/tls.c.o.d -o CMakeFiles/hiawatha.dir/src/tls.c.o   -c src/tls.c
src/tls.c:348:42: error: use of undeclared identifier 'MBEDTLS_DHM_RFC5114_MODP_2048_P'
                mbedtls_ssl_conf_dh_param(*tls_config, MBEDTLS_DHM_RFC5114_MODP_2048_P, MBEDTLS_DHM_RFC5114_MODP_2048_G);
                                                       ^
1 error generated.
[3/14] /usr/bin/cc  -I. -I/usr/local/include/libxml2 -I/usr/local/include -O2 -Wall -Wextra -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing -O2 -g -DNDEBUG -MD -MT CMakeFiles/hiawatha.dir/src/userconfig.c.o -MF CMakeFiles/hiawatha.dir/src/userconfig.c.o.d -o CMakeFiles/hiawatha.dir/src/userconfig.c.o   -c src/userconfig.c
[4/14] /usr/bin/cc  -I. -I/usr/local/include/libxml2 -I/usr/local/include -O2 -Wall -Wextra -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing -O2 -g -DNDEBUG -MD -MT CMakeFiles/hiawatha.dir/src/toolkit.c.o -MF CMakeFiles/hiawatha.dir/src/toolkit.c.o.d -o CMakeFiles/hiawatha.dir/src/toolkit.c.o   -c src/toolkit.c
[5/14] /usr/bin/cc  -I. -I/usr/local/include/libxml2 -I/usr/local/include -O2 -Wall -Wextra -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing -O2 -g -DNDEBUG -MD -MT CMakeFiles/hiawatha.dir/src/workers.c.o -MF CMakeFiles/hiawatha.dir/src/workers.c.o.d -o CMakeFiles/hiawatha.dir/src/workers.c.o   -c src/workers.c
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/hiawatha
*** Error code 1
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-03-12 13:02:20 UTC
A commit references this bug:

Author: tijl
Date: Mon Mar 12 13:01:55 UTC 2018
New revision: 464247
URL: https://svnweb.freebsd.org/changeset/ports/464247

Log:
  Update security/mbedtls to 2.7.1.

  PR:		226550
  MFH:		2018Q1

Changes:
  head/emulators/dolphin-emu/Makefile
  head/lang/neko/Makefile
  head/net/bctoolbox/Makefile
  head/net/shadowsocks-libev/Makefile
  head/security/mbedtls/Makefile
  head/security/mbedtls/distinfo
  head/security/mbedtls/pkg-plist
  head/security/openvpn/Makefile
  head/security/openvpn-devel/Makefile
  head/www/hiawatha/Makefile