Project

General

Profile

Actions

Emulator Issues #6761

closed

WII_IPC_HLE_Device_net_ssl.h:61:2: error: ‘x509_cert’ does not name a type

Added by fast.rizwaan over 10 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

dolphin-emu git not building in fedora 21 gnu/linux x86_64


[ 66%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/Src/IPC_HLE/WII_IPC_HLE.cpp.o
In file included from /home/rizvan/build/dolphin-emu/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE.cpp:37:0:
/home/rizvan/build/dolphin-emu/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h:61:2: error: ‘x509_cert’ does not name a type
x509_cert cacert;
^
/home/rizvan/build/dolphin-emu/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h:62:2: error: ‘x509_cert’ does not name a type
x509_cert clicert;
^
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/Src/IPC_HLE/WII_IPC_HLE.cpp.o] Error 1
make[1]: *** [Source/Core/Core/CMakeFiles/core.dir/all] Error 2
make: *** [all] Error 2

Actions #1

Updated by flacs over 10 years ago

Dolphin currently relies on PolarSSL 1.2 but you can try patches for PolarSSL 1.3 (https://github.com/Tilka/dolphin-emu/tree/polarssl).

Actions #2

Updated by fast.rizwaan over 10 years ago

bash-4.2$ make
[ 0%] Built target bdisasm
[ 1%] Built target SoundTouch
[ 2%] Built target clrun
[ 50%] Built target wx
[ 50%] Built target pch
[ 51%] Built target audiocommon
[ 55%] Built target common
[ 56%] Built target inputcommon
[ 59%] Built target videosoftware
[ 61%] Built target videoogl
[ 66%] Built target videocommon
[ 89%] Built target core
[ 92%] Built target discio
Linking CXX executable ../../../Binaries/dolphin-emu
../Core/libcore.a(WII_IPC_HLE_Device_net_ssl.cpp.o): In function CWII_IPC_HLE_Device_net_ssl::~CWII_IPC_HLE_Device_net_ssl()': WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x10c): undefined reference to x509_crt_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x116): undefined reference to x509_crt_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x1a1): undefined reference to x509_crt_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x1ab): undefined reference to x509_crt_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x236): undefined reference to x509_crt_free'
../Core/libcore.a(WII_IPC_HLE_Device_net_ssl.cpp.o):WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x240): more undefined references to x509_crt_free' follow ../Core/libcore.a(WII_IPC_HLE_Device_net_ssl.cpp.o): In function CWII_IPC_HLE_Device_net_ssl::IOCtlV(unsigned int)':
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xa95): undefined reference to x509_crt_parse_file' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xacd): undefined reference to x509_crt_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xcd4): undefined reference to x509_crt_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xce1): undefined reference to x509_crt_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xe41): undefined reference to x509_crt_parse_der' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xf32): undefined reference to x509_crt_parse_file'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xf97): undefined reference to pk_parse_keyfile' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xfc4): undefined reference to x509_crt_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xfcc): undefined reference to pk_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x10ea): undefined reference to x509_crt_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x10f2): undefined reference to `pk_free'
collect2: error: ld returned 1 exit status
make[2]: *** [Binaries/dolphin-emu] Error 1
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [all] Error 2

tilka-dolphin is failing at linking

Actions #3

Updated by fast.rizwaan over 10 years ago

master is also failing to link

[ 99%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/UDPConfigDiag.cpp.o
[ 99%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/VideoConfigDiag.cpp.o
[ 99%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/WXInputBase.cpp.o
[100%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/WiimoteConfigDiag.cpp.o
[100%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/WxUtils.cpp.o
[100%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/GLInterface/GLX.cpp.o
[100%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/GLInterface/X11_Util.cpp.o
[100%] Building CXX object Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/Src/X11Utils.cpp.o
Linking CXX executable ../../../Binaries/dolphin-emu
../Core/libcore.a(WII_IPC_HLE_Device_net_ssl.cpp.o): In function CWII_IPC_HLE_Device_net_ssl::~CWII_IPC_HLE_Device_net_ssl()': WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x10c): undefined reference to x509_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x116): undefined reference to x509_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x1a1): undefined reference to x509_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x1ab): undefined reference to x509_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x236): undefined reference to x509_free'
../Core/libcore.a(WII_IPC_HLE_Device_net_ssl.cpp.o):WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x240): more undefined references to x509_free' follow ../Core/libcore.a(WII_IPC_HLE_Device_net_ssl.cpp.o): In function CWII_IPC_HLE_Device_net_ssl::IOCtlV(unsigned int)':
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xa95): undefined reference to x509parse_crtfile' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xacd): undefined reference to x509_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xcc7): undefined reference to x509_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xcd4): undefined reference to x509_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xe30): undefined reference to x509parse_crt_der' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xf24): undefined reference to x509parse_crtfile'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xf89): undefined reference to x509parse_keyfile' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0xfb6): undefined reference to x509_free'
WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x1122): undefined reference to x509_free' WII_IPC_HLE_Device_net_ssl.cpp:(.text+0x1436): undefined reference to ssl_default_ciphersuites'
collect2: error: ld returned 1 exit status
make[2]: *** [Binaries/dolphin-emu] Error 1
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
make: *** [all] Error 2

Actions #4

Updated by flacs over 10 years ago

Dolphin master currently requires PolarSSL 1.2 or its own version from dolphin-emu/Externals/polarssl (which is 1.2). Let me explain what the errors in each of your posts mean:

  1. `x509_cert' is an old type from PolarSSL 1.2. It seems like you had 1.3 headers installed and you were compiling Dolphin with them.

  2. `x509_crt_free' is a new function from PolarSSL 1.3. Once you have applied the patches for 1.3, you need to make sure you are also linking against 1.3.

  3. `x509_free' is an old function from PolarSSL 1.2. Here it seems like you compiled Dolphin with 1.2 headers but were trying link against 1.3.

Make sure there are no left-over libraries in /usr/local or wherever you install your locally-built libraries.

Actions #5

Updated by fast.rizwaan over 10 years ago

ok thanks. I'm have polarSSL 1.2 now on fedora 20. hope for fedora 21 which has polarSSL 1.3 dolphin will be compilable.

I deleted /usr/local/* and rebuild the dolphin, and it worked.

thanks.

Actions #6

Updated by degasus over 10 years ago

  • Status changed from New to Invalid
Actions

Also available in: Atom PDF