[MacPorts] #62418: libshout @1.0.9: error: long long is not 64 bits!!

MacPorts noreply at macports.org
Wed Mar 10 04:12:20 UTC 2021


#62418: libshout @1.0.9: error: long long is not 64 bits!!
-----------------------------+----------------------
 Reporter:  cooljeanius      |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.6.4
 Keywords:  bigsur catalina  |       Port:  libshout
-----------------------------+----------------------
 libshout (the old version) fails to configure saying:
 {{{
 checking for unix98 socklen_t... no
 checking size of long long... 0
 configure: error: long long is not 64 bits!!
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_libshout/libshout/work/libshout-1.0.9"
 && ./configure --prefix=/opt/local --with-pic --enable-shared --enable-
 static
 Exit code: 1
 Error: Failed to configure libshout, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_libshout/libshout/work/libshout-1.0.9/config.log
 Error: Failed to configure libshout: configure failure: command execution
 failed
 DEBUG: Error code: NONE
 DEBUG: Backtrace: configure failure: command execution failed
     while executing
 "$procedure $targetname"
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_libshout/libshout/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port libshout failed
 }}}
 Checking `config.log` shows this:
 {{{
 configure:5632: checking size of long long
 configure:5652: /usr/bin/clang -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch
 x86_64 conftest.c  1>&5
 configure:5643:1: warning: type specifier missing, defaults to 'int'
 [-Wimplicit-int]
 main()
 ^
 configure:5646:11: error: implicitly declaring library function 'exit'
 with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-
 function-declaration]
   if (!f) exit(1);
           ^
 configure:5646:11: note: include the header <stdlib.h> or explicitly
 provide a declaration for 'exit'
 configure:5647:22: warning: format specifies type 'int' but the argument
 has type 'unsigned long' [-Wformat]
   fprintf(f, "%d\n", sizeof(long long));
               ~~     ^~~~~~~~~~~~~~~~~
               %lu
 2 warnings and 1 error generated.
 configure: failed program was:
 #line 5640 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 #include <sys/types.h>
 main()
 {
   FILE *f=fopen("conftestval", "w");
   if (!f) exit(1);
   fprintf(f, "%d\n", sizeof(long long));
   exit(0);
 }
 }}}
 So, it turns out to be another victim of `-Werror=implicit-function-
 declaration` being on by default now.

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


More information about the macports-tickets mailing list