[MacPorts] #70234: hdfeos @3.0: configure: error: szlib is not functional

MacPorts noreply at macports.org
Mon Jun 17 08:20:58 UTC 2024


#70234: hdfeos @3.0: configure: error: szlib is not functional
--------------------------+--------------------
  Reporter:  cooljeanius  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  hdfeos       |
--------------------------+--------------------

Comment (by cooljeanius):

 ...ah, from looking at `config.log`, it looks like this is another
 instance of `-Werror=implicit-function-declaration` being on by default
 now:
 {{{
 configure:17710: checking if szlib is functional
 configure:17731: /opt/local/bin/h4cc -o conftest -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
 x86_64 -I/opt/local/include -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
 -DSIZEOF_LONG=8 -L/opt/local/lib -L/opt/local -L/opt/local
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
 -arch x86_64 conftest.c -lsz -lz -ljpeg -lm  >&5
 clang: warning: -Wl,-headerpad_max_install_names: 'linker' input unused
 [-Wunused-command-line-argument]
 clang: warning:
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk:
 'linker' input unused [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-L/opt/local/lib'
 [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-L/opt/local'
 [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-L/opt/local'
 [-Wunused-command-line-argument]
 clang: warning: argument unused during compilation: '-L/opt/local/lib'
 [-Wunused-command-line-argument]
 conftest.c:36:21: error: implicitly declaring library function 'exit' with
 type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
 declaration]
                     exit(0);
                     ^
 conftest.c:36:21: note: include the header <stdlib.h> or explicitly
 provide a declaration for 'exit'
 1 error generated.
 configure:17731: $? = 1
 configure: program exited with status 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70234#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list