Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588818 - games-emulation/dolphin-5.0 - In file included from .../work/dolphin-5.0/Source/Core/Core/Core.cpp:60: /usr/include/mbedtls/ssl.h:545:5: error: ‘mbedtls_time_t’ does not name a type
Summary: games-emulation/dolphin-5.0 - In file included from .../work/dolphin-5.0/Sour...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Devan Franchini (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-14 12:37 UTC by David Brooke
Modified: 2016-10-19 18:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dolphin build log.tar.gz (dolphin build log.tar.gz,15.76 KB, application/x-gzip-compressed-tar)
2016-07-14 12:37 UTC, David Brooke
Details
emerge-info.tar.gz (emerge-info.tar.gz,3.00 KB, application/x-gzip-compressed-tar)
2016-07-14 12:38 UTC, David Brooke
Details
patch to fix mbedtls_time_t in 2.3.0 (mbedtls-2.3.0-mbedtls_time_t.patch,170 bytes, patch)
2016-07-14 23:17 UTC, kleph
Details | Diff
ebuild to use 2.3.0-mbedtls_time_t.patch (mbedtls-2.3.0-r1.ebuild,2.49 KB, text/plain)
2016-07-14 23:17 UTC, kleph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Brooke 2016-07-14 12:37:23 UTC
Created attachment 440670 [details]
dolphin build log.tar.gz

I have attached both the build log and emerge --info files.
Thanks
Comment 1 David Brooke 2016-07-14 12:38:02 UTC
Created attachment 440672 [details]
emerge-info.tar.gz
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-14 12:50:33 UTC
Comment on attachment 440670 [details]
dolphin build log.tar.gz

I don't see why you would use a tarball here.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-14 12:52:30 UTC
In file included from /usr/include/mbedtls/net.h:32:0,
                 from /var/tmp/portage/games-emulation/dolphin-5.0/work/dolphin-5.0/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h:10,
                 from /var/tmp/portage/games-emulation/dolphin-5.0/work/dolphin-5.0/Source/Core/Core/IPC_HLE/WII_Socket.h:54,
                 from /var/tmp/portage/games-emulation/dolphin-5.0/work/dolphin-5.0/Source/Core/Core/Core.cpp:60:
/usr/include/mbedtls/ssl.h:545:5: error: ‘mbedtls_time_t’ does not name a type
     mbedtls_time_t start;       /*!< starting time      */
     ^
Comment 4 kleph 2016-07-14 23:15:59 UTC
Hi,

I hit the same bug.
It is a known issue in https://bugs.dolphin-emu.org/issues/9662
cause by a change in mbedtls https://github.com/ARMmbed/mbedtls/issues/522

I tried the patch given in the issue tracker with success.

The last comment says it's fixed in HEAD so I assume that it will be part of the release at some point.

Meanwhile, here's a quick fix with the patch given in the issue tracker and the corresponding modified ebuild for mbedtls.
Mbedtls should be rebuild before building dolphin again.
Comment 5 kleph 2016-07-14 23:17:21 UTC
Created attachment 440738 [details, diff]
patch to fix mbedtls_time_t in 2.3.0
Comment 6 kleph 2016-07-14 23:17:50 UTC
Created attachment 440740 [details]
ebuild to use 2.3.0-mbedtls_time_t.patch
Comment 7 David Brooke 2016-07-15 17:39:42 UTC
@kleph
Your ebuild and patch solved the issue.
Thanks
Comment 8 Anthony Basile gentoo-dev 2016-10-19 11:10:24 UTC
Can you guys test upgrading to mbedtls-2.4.0 and see if dophine compiles.  If so, then I'll target it for stabiliztion.
Comment 9 David Brooke 2016-10-19 13:43:49 UTC
I completed a new Gentoo install on 10/10/16. Dolphin version 5 was installed successfully with net-libs/mbedtls version 2.3.0-r1.
Comment 10 Anthony Basile gentoo-dev 2016-10-19 18:03:34 UTC
Okay this is fixed then.