Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#61672 closed defect (fixed)

wxWidgets-3.2: error: implicitly declaring library function 'exit'

Reported by: alex1platon Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc:
Port: wxWidgets-3.2

Description

Using Command Line Tools for XCode 12.2. Complains about missing zlib but not triggering a dependency install.

:info:configure checking for zlib.h >= 1.1.4... no
:info:configure checking for zlib.h... (cached) no
:info:configure configure: WARNING: zlib library not found or too old, will use built-in instead
:info:configure checking whether zlib.h file exists... no
:info:configure configure: error:
:info:configure     Configured to use built-in zlib library, but the required file
:info:configure     ../src/zlib/zlib.h couldn't be found.
:info:configure     You might need to run
:info:configure         git submodule update --init src/zlib
:info:configure     to fix this.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets
:info:configure Exit code: 1
:

Attachments (2)

main.log (14.2 KB) - added by alex1platon 4 years ago.
config.log (67.6 KB) - added by alex1platon 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by alex1platon

Attachment: main.log added

Changed 4 years ago by alex1platon

Attachment: config.log added

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur catalina added; wxWidgets big sur big_sur removed
Owner: set to mojca
Status: newassigned
Summary: wxWidgets-3.2 fails to configure on Big SurwxWidgets-3.2: error: implicitly declaring library function 'exit'

The well-known Xcode 12 problem:

conftest.c:56:33: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]

comment:2 Changed 4 years ago by Chris Jones <jonesc@…>

Resolution: fixed
Status: assignedclosed

In 2869659a8f5527391be8614a28c9e9a6b6c6d5aa/macports-ports (master):

wxWidgets-3.2: Fix implicit declaration configuration errors
Closes: #61672

comment:3 Changed 4 years ago by neverpanic (Clemens Lang)

I guess we should extend the regex at https://github.com/macports/macports-base/blob/master/src/port1.0/portconfigure.tcl#L1754 to also cover the "implicitly declaring library function" message to make it easier to find these things.

Note: See TracTickets for help on using tickets.