Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The openssl-no-verbose CI job fails #16462

Closed
bagder opened this issue Feb 24, 2025 · 0 comments
Closed

The openssl-no-verbose CI job fails #16462

bagder opened this issue Feb 24, 2025 · 0 comments
Labels

Comments

@bagder
Copy link
Member

bagder commented Feb 24, 2025

I did this

I looked at this CI job in a recent PR. It fails.

I tested the same configure line locally on Linux, and it too fails to build:

./configure --disable-dependency-tracking --enable-unity --enable-test-bundles --enable-werror --with-openssl --disable-verbose

  CC       libcurl_la-libcurl_unity.lo
In file included from sendf.h:29,
                 from altsvc.c:37,
                 from libcurl_unity.c:2:
curl_trc.h:211:9: error: "CURL_MSTATE_NAME" redefined
  211 | #define CURL_MSTATE_NAME(x)           ((void)(x), "-")
      |         ^~~~~~~~~~~~~~~~
curl_trc.h:88:9: note: this is the location of the previous definition
   88 | #define CURL_MSTATE_NAME(s)  Curl_trc_mstate_name((int)(s))
      |         ^~~~~~~~~~~~~~~~
In file included from libcurl_unity.c:34:
curl_trc.c:91:15: error: variable ‘Curl_trc_feat_ids’ has initializer but incomplete type
   91 | static struct curl_trc_feat Curl_trc_feat_ids = {
      |               ^~~~~~~~~~~~~
curl_trc.c:92:3: error: excess elements in struct initializer
   92 |   "LIB-IDS",
      |   ^~~~~~~~~
curl_trc.c:92:3: note: (near initialization for ‘Curl_trc_feat_ids’)
curl_trc.h:65:28: error: excess elements in struct initializer
   65 | #define CURL_LOG_LVL_NONE  0
      |                            ^
curl_trc.c:93:3: note: in expansion of macro ‘CURL_LOG_LVL_NONE’
   93 |   CURL_LOG_LVL_NONE,
      |   ^~~~~~~~~~~~~~~~~
curl_trc.h:65:28: note: (near initialization for ‘Curl_trc_feat_ids’)
   65 | #define CURL_LOG_LVL_NONE  0
      |                            ^
curl_trc.c:93:3: note: in expansion of macro ‘CURL_LOG_LVL_NONE’
   93 |   CURL_LOG_LVL_NONE,
      |   ^~~~~~~~~~~~~~~~~
curl_trc.c: In function ‘Curl_debug’:
curl_trc.c:97:31: error: invalid use of undefined type ‘struct curl_trc_feat’
   97 |              Curl_trc_feat_ids.log_level >= CURL_LOG_LVL_INFO)
      |                               ^
curl_trc.c:144:10: note: in expansion of macro ‘CURL_TRC_IDS’
  144 |       if(CURL_TRC_IDS(data) && (size < TRC_LINE_MAX)) {
      |          ^~~~~~~~~~~~
curl_trc.c:97:31: error: invalid use of undefined type ‘struct curl_trc_feat’
   97 |              Curl_trc_feat_ids.log_level >= CURL_LOG_LVL_INFO)
      |                               ^
curl_trc.c:164:12: note: in expansion of macro ‘CURL_TRC_IDS’
  164 |         if(CURL_TRC_IDS(data)) {
      |            ^~~~~~~~~~~~
curl_trc.c: At top level:
curl_trc.c:91:29: error: storage size of ‘Curl_trc_feat_ids’ isn’t known
   91 | static struct curl_trc_feat Curl_trc_feat_ids = {
      |                             ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:3543: libcurl_la-libcurl_unity.lo] Error 1
make[1]: *** [Makefile:1632: all] Error 2
make: *** [Makefile:633: all-recursive] Error 1

I expected the following

The build to work

curl/libcurl version

current git master

operating system

Debian Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant