[MacPorts] #70006: despotify fails to build: error: dereferencing pointer to incomplete type

MacPorts noreply at macports.org
Thu May 16 19:45:07 UTC 2024


#70006: despotify fails to build: error: dereferencing pointer to incomplete type
--------------------------+-----------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  despotify
--------------------------+-----------------------
 With gcc-4.2:
 {{{
 --->  Building despotify
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src"
 && /usr/bin/make -j6 -w all CC="/usr/bin/gcc-4.2 -arch ppc"
 CLIENT_DESPOTIFY=1
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src'
 Makefile:23: Makefile.local.mk: No such file or directory
  **** No Makefile.local.mk found, copying dist.
 cp Makefile.local.mk.dist Makefile.local.mk
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src'
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src'
 /usr/bin/make -s -C lib -f local.mk
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src/lib'
 Generating dependencies
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src/lib'
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src/lib'
 CC aes.c
 CC auth.c
 CC buf.c
 CC cache.c
 CC channel.c
 CC commands.c
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c aes.c  -fno-common
 -DPIC -o .libs/aes.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c channel.c  -fno-
 common -DPIC -o .libs/channel.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c cache.c  -fno-common
 -DPIC -o .libs/cache.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c auth.c  -fno-common
 -DPIC -o .libs/auth.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c commands.c  -fno-
 common -DPIC -o .libs/commands.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c buf.c  -fno-common
 -DPIC -o .libs/buf.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c buf.c -o buf.o
 >/dev/null 2>&1
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c cache.c -o cache.o
 >/dev/null 2>&1
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c channel.c -o
 channel.o >/dev/null 2>&1
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c aes.c -o aes.o
 >/dev/null 2>&1
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c auth.c -o auth.o
 >/dev/null 2>&1
 CC dns.c
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c commands.c -o
 commands.o >/dev/null 2>&1
 CC ezxml.c
 CC handlers.c
 CC keyexchange.c
 CC packet.c
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c dns.c  -fno-common
 -DPIC -o .libs/dns.o
 CC puzzle.c
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c ezxml.c  -fno-common
 -DPIC -o .libs/ezxml.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c handlers.c  -fno-
 common -DPIC -o .libs/handlers.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c dns.c -o dns.o
 >/dev/null 2>&1
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c packet.c  -fno-common
 -DPIC -o .libs/packet.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c keyexchange.c  -fno-
 common -DPIC -o .libs/keyexchange.o
 CC session.c
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c puzzle.c  -fno-common
 -DPIC -o .libs/puzzle.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c handlers.c -o
 handlers.o >/dev/null 2>&1
 keyexchange.c: In function 'send_client_initial_packet':
 keyexchange.c:66: error: dereferencing pointer to incomplete type
 keyexchange.c: In function 'key_init':
 keyexchange.c:323: warning: 'DH_compute_key' is deprecated (declared at
 /opt/local/include/openssl/dh.h:232)
 make[1]: *** [keyexchange.lo] Error 1
 make[1]: *** Waiting for unfinished jobs....
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c packet.c -o packet.o
 >/dev/null 2>&1
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c puzzle.c -o puzzle.o
 >/dev/null 2>&1
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c session.c  -fno-
 common -DPIC -o .libs/session.o
 glibtool: compile:  /usr/bin/gcc-4.2 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -Wno-pointer-sign -c ezxml.c -o ezxml.o
 >/dev/null 2>&1
 session.c: In function 'session_init_client':
 session.c:57: warning: 'RSA_generate_key' is deprecated (declared at
 /opt/local/include/openssl/rsa.h:261)
 session.c:69: warning: 'DH_new' is deprecated (declared at
 /opt/local/include/openssl/dh.h:206)
 session.c:70: error: dereferencing pointer to incomplete type
 session.c:71: error: dereferencing pointer to incomplete type
 session.c:72: warning: 'DH_generate_key' is deprecated (declared at
 /opt/local/include/openssl/dh.h:230)
 session.c:74: error: dereferencing pointer to incomplete type
 session.c:75: error: dereferencing pointer to incomplete type
 session.c: In function 'session_free':
 session.c:214: warning: 'DH_free' is deprecated (declared at
 /opt/local/include/openssl/dh.h:207)
 session.c:217: warning: 'RSA_free' is deprecated (declared at
 /opt/local/include/openssl/rsa.h:299)
 make[1]: *** [session.lo] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_despotify/despotify/work/src/lib'
 make: *** [lib] Error 2
 }}}

 With gcc13:
 {{{
 --->  Building despotify
 Executing:  cd
 "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src"
 && /usr/bin/make -j6 -w all CC="/opt/local/bin/gcc-mp-13 -arch ppc"
 CLIENT_DESPOTIFY=1
 make: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src'
 Makefile:23: Makefile.local.mk: No such file or directory
  **** No Makefile.local.mk found, copying dist.
 cp Makefile.local.mk.dist Makefile.local.mk
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src'
 make: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src'
 /usr/bin/make -s -C lib -f local.mk
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src/lib'
 Generating dependencies
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src/lib'
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src/lib'
 CC auth.c
 CC aes.c
 CC buf.c
 CC cache.c
 CC commands.c
 CC channel.c
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c aes.c  -fno-common -DPIC -o .libs/aes.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c buf.c  -fno-common -DPIC -o .libs/buf.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c cache.c  -fno-common -DPIC -o
 .libs/cache.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c commands.c  -fno-common -DPIC -o
 .libs/commands.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c channel.c  -fno-common -DPIC -o
 .libs/channel.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c auth.c  -fno-common -DPIC -o
 .libs/auth.o
 In file included from /usr/include/stdio.h:431,
                  from cache.c:4:
 cache.c: In function 'cache_clear':
 cache.c:71:44: warning: '%s' directive output may be truncated writing up
 to 255 bytes into a region of size between 0 and 1023 [-Wformat-
 truncation=]
    71 |         snprintf(cache_filename, PATH_MAX, "%s/%s",
 cache_directory, dirp->d_name);
       |                                            ^~~~~~~
 cache.c:71:48: note: format string is defined here
    71 |         snprintf(cache_filename, PATH_MAX, "%s/%s",
 cache_directory, dirp->d_name);
       |                                                ^~
 cache.c:71:9: note: '__builtin_snprintf' output between 2 and 1280 bytes
 into a destination of size 1024
    71 |         snprintf(cache_filename, PATH_MAX, "%s/%s",
 cache_directory, dirp->d_name);
       |         ^~~~~~~~
 cache.c: In function 'cache_contains':
 cache.c:79:40: warning: '__builtin_snprintf' output may be truncated
 before the last format character [-Wformat-truncation=]
    79 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                        ^~~~~~~
 cache.c:79:46: note: format string is defined here
    79 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                              ^
 cache.c:79:5: note: '__builtin_snprintf' output 2 or more bytes (assuming
 1025) into a destination of size 1024
    79 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |     ^~~~~~~~
 cache.c: In function 'cache_load':
 cache.c:98:40: warning: '__builtin_snprintf' output may be truncated
 before the last format character [-Wformat-truncation=]
    98 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                        ^~~~~~~
 cache.c:98:46: note: format string is defined here
    98 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                              ^
 cache.c:98:5: note: '__builtin_snprintf' output 2 or more bytes (assuming
 1025) into a destination of size 1024
    98 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |     ^~~~~~~~
 cache.c: In function 'cache_remove':
 cache.c:143:40: warning: '__builtin_snprintf' output may be truncated
 before the last format character [-Wformat-truncation=]
   143 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                        ^~~~~~~
 cache.c:143:46: note: format string is defined here
   143 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                              ^
 cache.c:143:5: note: '__builtin_snprintf' output 2 or more bytes (assuming
 1025) into a destination of size 1024
   143 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |     ^~~~~~~~
 cache.c: In function 'cache_store':
 cache.c:153:40: warning: '__builtin_snprintf' output may be truncated
 before the last format character [-Wformat-truncation=]
   153 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                        ^~~~~~~
 cache.c:153:46: note: format string is defined here
   153 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |                                              ^
 cache.c:153:5: note: '__builtin_snprintf' output 2 or more bytes (assuming
 1025) into a destination of size 1024
   153 |     snprintf(cache_filename, PATH_MAX, "%s/%s", cache_directory,
 id);
       |     ^~~~~~~~
 cache.c: In function 'cache_get_meta_playlist_revision':
 cache.c:178:40: warning: '/meta_playlist_revision' directive output may be
 truncated writing 23 bytes into a region of size between 1 and 1024
 [-Wformat-truncation=]
   178 |     snprintf(cache_filename, PATH_MAX,
 "%s/meta_playlist_revision", cache_directory);
       |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
 cache.c:178:43: note: format string is defined here
   178 |     snprintf(cache_filename, PATH_MAX,
 "%s/meta_playlist_revision", cache_directory);
       |                                           ^~~~~~~~~~~~~~~~~~~~~~~
 cache.c:178:5: note: '__builtin_snprintf' output between 24 and 1047 bytes
 into a destination of size 1024
   178 |     snprintf(cache_filename, PATH_MAX,
 "%s/meta_playlist_revision", cache_directory);
       |     ^~~~~~~~
 cache.c: In function 'cache_set_meta_playlist_revision':
 cache.c:203:40: warning: '/meta_playlist_revision' directive output may be
 truncated writing 23 bytes into a region of size between 1 and 1024
 [-Wformat-truncation=]
   203 |     snprintf(cache_filename, PATH_MAX,
 "%s/meta_playlist_revision", cache_directory);
       |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
 cache.c:203:43: note: format string is defined here
   203 |     snprintf(cache_filename, PATH_MAX,
 "%s/meta_playlist_revision", cache_directory);
       |                                           ^~~~~~~~~~~~~~~~~~~~~~~
 cache.c:203:5: note: '__builtin_snprintf' output between 24 and 1047 bytes
 into a destination of size 1024
   203 |     snprintf(cache_filename, PATH_MAX,
 "%s/meta_playlist_revision", cache_directory);
       |     ^~~~~~~~
 auth.c: In function 'auth_generate_auth_hash':
 auth.c:31:34: warning: pointer targets in passing argument 2 of
 'SHA1Update' differ in signedness [-Wpointer-sign]
    31 |         SHA1Update (&ctx, session->salt, 10);
       |                           ~~~~~~~^~~~~~
       |                                  |
       |                                  char *
 In file included from auth.c:22:
 sha1.h:25:29: note: expected 'const unsigned char *' but argument is of
 type 'char *'
    25 | void SHA1Update(SHA1_CTX *, const unsigned char *, unsigned int);
       |                             ^~~~~~~~~~~~~~~~~~~~~
 auth.c:32:27: warning: pointer targets in passing argument 2 of
 'SHA1Update' differ in signedness [-Wpointer-sign]
    32 |         SHA1Update (&ctx, " ", 1);
       |                           ^~~
       |                           |
       |                           char *
 sha1.h:25:29: note: expected 'const unsigned char *' but argument is of
 type 'char *'
    25 | void SHA1Update(SHA1_CTX *, const unsigned char *, unsigned int);
       |                             ^~~~~~~~~~~~~~~~~~~~~
 auth.c:33:34: warning: pointer targets in passing argument 2 of
 'SHA1Update' differ in signedness [-Wpointer-sign]
    33 |         SHA1Update (&ctx, session->password, strlen
 (session->password));
       |                           ~~~~~~~^~~~~~~~~~
       |                                  |
       |                                  char *
 sha1.h:25:29: note: expected 'const unsigned char *' but argument is of
 type 'char *'
    25 | void SHA1Update(SHA1_CTX *, const unsigned char *, unsigned int);
       |                             ^~~~~~~~~~~~~~~~~~~~~
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c buf.c -o buf.o >/dev/null 2>&1
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c cache.c -o cache.o >/dev/null 2>&1
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c channel.c -o channel.o >/dev/null 2>&1
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c aes.c -o aes.o >/dev/null 2>&1
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c auth.c -o auth.o >/dev/null 2>&1
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c commands.c -o commands.o >/dev/null
 2>&1
 CC dns.c
 CC ezxml.c
 CC handlers.c
 CC keyexchange.c
 CC packet.c
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c dns.c  -fno-common -DPIC -o .libs/dns.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c ezxml.c  -fno-common -DPIC -o
 .libs/ezxml.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c handlers.c  -fno-common -DPIC -o
 .libs/handlers.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c packet.c  -fno-common -DPIC -o
 .libs/packet.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c keyexchange.c  -fno-common -DPIC -o
 .libs/keyexchange.o
 dns.c: In function 'dns_srv_list':
 dns.c:41:37: warning: variable 'weight' set but not used [-Wunused-but-
 set-variable]
    41 |         unsigned short atype, prio, weight, port;
       |                                     ^~~~~~
 CC puzzle.c
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c dns.c -o dns.o >/dev/null 2>&1
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c handlers.c -o handlers.o >/dev/null
 2>&1
 keyexchange.c: In function 'send_client_initial_packet':
 keyexchange.c:66:32: error: invalid use of incomplete typedef 'RSA' {aka
 'struct rsa_st'}
    66 |         BN_bn2bin (session->rsa->n, session->rsa_pub_exp);
       |                                ^~
 keyexchange.c: In function 'key_init':
 keyexchange.c:323:9: warning: 'DH_compute_key' is deprecated: Since
 OpenSSL 3.0 [-Wdeprecated-declarations]
   323 |         int i = DH_compute_key (session->shared_key, pub_key,
 session->dh);
       |         ^~~
 In file included from session.h:11,
                  from auth.h:9,
                  from keyexchange.c:12:
 /opt/local/include/openssl/dh.h:231:27: note: declared here
   231 | OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key,
       |                           ^~~~~~~~~~~~~~
 keyexchange.c:311:22: warning: variable 'mac_len' set but not used
 [-Wunused-but-set-variable]
   311 |         unsigned int mac_len;
       |                      ^~~~~~~
 make[1]: *** [keyexchange.lo] Error 1
 make[1]: *** Waiting for unfinished jobs....
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c puzzle.c  -fno-common -DPIC -o
 .libs/puzzle.o
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c packet.c -o packet.o >/dev/null 2>&1
 puzzle.c: In function 'puzzle_solve':
 puzzle.c:19:17: warning: 'ctx' is used uninitialized [-Wuninitialized]
    19 | #define srandom srand
       |                 ^
 puzzle.c:47:9: note: in expansion of macro 'srandom'
    47 |         srandom (*(unsigned int *) &ctx);
       |         ^~~~~~~
 puzzle.c:25:18: note: 'ctx' declared here
    25 |         SHA1_CTX ctx;
       |                  ^~~
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c puzzle.c -o puzzle.o >/dev/null 2>&1
 glibtool: compile:  /opt/local/bin/gcc-mp-13 -arch ppc -Wall -Wextra -ggdb
 -std=gnu99 -I/opt/local/include -c ezxml.c -o ezxml.o >/dev/null 2>&1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_multimedia_despotify/despotify/work/src/lib'
 make: *** [lib] Error 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70006>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list