Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#58958 closed defect (fixed)

litmus @0.13_2: error: incomplete definition of type 'struct ssl_session_st'

Reported by: iefdev (Eric F) Owned by: yan12125 (Chih-Hsuan Yen)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: litmus

Description

After the big revbump today… litmus didn't want to upgrade.

I don't if it's about that, or maybe caused by all recent upgrades of all my clang's.

Part of log:

:info:build ne_socket.c:574:8: warning: implicit declaration of function 'writev' is invalid in C99 [-Wimplicit-function-declaration]
:info:build         ret = writev(sock->fd, vec, count);
:info:build               ^
:info:build ne_socket.c:1845:23: error: incomplete definition of type 'struct ssl_session_st'
:info:build         *buflen = sess->session_id_length;
:info:build                   ~~~~^
:info:build /opt/local/include/openssl/ssl.h:213:16: note: forward declaration of 'struct ssl_session_st'
:info:build typedef struct ssl_session_st SSL_SESSION;
:info:build                ^
:info:build ne_socket.c:1849:23: error: incomplete definition of type 'struct ssl_session_st'
:info:build     if (*buflen < sess->session_id_length) {
:info:build                   ~~~~^
:info:build /opt/local/include/openssl/ssl.h:213:16: note: forward declaration of 'struct ssl_session_st'
:info:build typedef struct ssl_session_st SSL_SESSION;
:info:build                ^
:info:build ne_socket.c:1853:19: error: incomplete definition of type 'struct ssl_session_st'
:info:build     *buflen = sess->session_id_length;
:info:build               ~~~~^
:info:build /opt/local/include/openssl/ssl.h:213:16: note: forward declaration of 'struct ssl_session_st'
:info:build typedef struct ssl_session_st SSL_SESSION;
:info:build                ^
:info:build ne_socket.c:1854:21: error: incomplete definition of type 'struct ssl_session_st'
:info:build     memcpy(buf, sess->session_id, *buflen);
:info:build                 ~~~~^
:info:build /usr/include/secure/_string.h:55:36: note: expanded from macro 'memcpy'
:info:build    ? __builtin___memcpy_chk (dest, src, len, __darwin_obsz0 (dest))     \
:info:build                                    ^~~
:info:build /opt/local/include/openssl/ssl.h:213:16: note: forward declaration of 'struct ssl_session_st'
:info:build typedef struct ssl_session_st SSL_SESSION;
:info:build                ^
:info:build ne_socket.c:1854:21: error: incomplete definition of type 'struct ssl_session_st'
:info:build     memcpy(buf, sess->session_id, *buflen);
:info:build                 ~~~~^
:info:build /usr/include/secure/_string.h:56:33: note: expanded from macro 'memcpy'
:info:build    : __inline_memcpy_chk (dest, src, len))
:info:build                                 ^~~
:info:build /opt/local/include/openssl/ssl.h:213:16: note: forward declaration of 'struct ssl_session_st'
:info:build typedef struct ssl_session_st SSL_SESSION;
:info:build                ^
:info:build 1 warning and 5 errors generated.
:info:build make[1]: *** [ne_socket.o] Error 1

Attachments (1)

litmus_main.log (27.8 KB) - added by iEFdev 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by iEFdev

Attachment: litmus_main.log added

comment:1 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Cc: yan12125 added

comment:2 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Cc: yan12125 removed
Owner: set to yan12125
Status: newaccepted

comment:3 Changed 5 years ago by Chih-Hsuan Yen <yan12125@…>

Resolution: fixed
Status: acceptedclosed

In 5f9da28347a240e85d96935a3811263e035e4598/macports-ports (master):

litmus: avoid bundled neon; fixes building against OpenSSL 1.1

The patch is borrowed from unofficial Arch User Repository [1].

Closes: #58958

[1] https://aur.archlinux.org/packages/litmus/#comment-667951

comment:4 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Thanks for the report and sorry for inconvenience. This is caused by OpenSSL 1.1 update. litmus should work now.

comment:5 Changed 5 years ago by iEFdev

Thanks… It built fine. 👍

Note: See TracTickets for help on using tickets.