[MacPorts] #62776: feh at 3.2.1: build fails due to implicit function definition
MacPorts
noreply at macports.org
Thu Apr 29 15:55:03 UTC 2021
#62776: feh at 3.2.1: build fails due to implicit function definition
------------------------------+--------------------
Reporter: jeffrey-hokanson | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: | Port: feh
------------------------------+--------------------
I'm running macOS 11.3 with Xcode 12.5. I'm getting what I think is a
common error where the build used to work under Xcode 11, but now that
implicit functions definitions throw errors, the build fails.
Here is the relevant portion of the build log:
{{{
:notice:build ---> Building feh
:debug:build Executing org.macports.build (feh)
:debug:build Environment:
:debug:build CC='/usr/bin/clang'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/.CC_PRINT_OPTIONS'
:debug:build CFLAGS='-Os -arch x86_64'
:debug:build CPATH='/opt/local/include'
:debug:build CPPFLAGS='-I/opt/local/include'
:debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:build LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names
-arch x86_64'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='11.2'
:debug:build SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
:info:build Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1"
&& /usr/bin/make -j4 -w all PREF
IX=/opt/local 'exif=1' 'verscmp=0'
:debug:build system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1"
&& /usr/bin/make -j4 -w all PREFIX
=/opt/local 'exif=1' 'verscmp=0'
:info:build make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1'
:info:build make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1/man'
:info:build make[1]: Nothing to be done for `all'.
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1/man'
:info:build make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1/share/applications'
:info:build make[1]: Nothing to be done for `all'.
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1/share/applications'
:info:build make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1/src'
:info:build /usr/bin/clang -Os -arch x86_64 -Wall -Wextra -pedantic
-std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\" -DPACKAGE=
\"feh\" -DVERSION=\"3.2.1\" -Wall -Wextra -pedantic -std=c11
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\"
-DPACKAGE=\"feh\" -DVERSIO
N=\"3.2.1\" -I/opt/local/include -c -o getopt.o getopt.c
:info:build /usr/bin/clang -Os -arch x86_64 -Wall -Wextra -pedantic
-std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\" -DPACKAGE=
\"feh\" -DVERSION=\"3.2.1\" -Wall -Wextra -pedantic -std=c11
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\"
-DPACKAGE=\"feh\" -DVERSIO
N=\"3.2.1\" -I/opt/local/include -c -o getopt1.o getopt1.c
:info:build /usr/bin/clang -Os -arch x86_64 -Wall -Wextra -pedantic
-std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\" -DPACKAGE=
\"feh\" -DVERSION=\"3.2.1\" -Wall -Wextra -pedantic -std=c11
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\"
-DPACKAGE=\"feh\" -DVERSIO
N=\"3.2.1\" -I/opt/local/include -c -o gib_hash.o gib_hash.c
:info:build /usr/bin/clang -Os -arch x86_64 -Wall -Wextra -pedantic
-std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\"
-DPACKAGE=\"feh\" -DVERSION=\"3.2.1\" -Wall -Wextra -pedantic -std=c11
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DHAVE_LIBCURL
-DHAVE_LIBXINERAMA -DHAVE_LIBEXIF -DPREFIX=\"/opt/local\"
-DPACKAGE=\"feh\" -DVERSION=\"3.2.1\" -I/opt/local/include -c -o
gib_imlib.o gib_imlib.c
:info:build getopt.c:366:5: warning: unused parameter 'argc' [-Wunused-
parameter]
:info:build int argc;
:info:build ^
:info:build getopt.c:367:14: warning: unused parameter 'argv' [-Wunused-
parameter]
:info:build char *const *argv;
:info:build ^
:info:build getopt.c:539:26: error: implicitly declaring library function
'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-
function-declaration]
:info:build if (optind != argc && !strcmp(argv[optind],
"--")) {
:info:build ^
:info:build getopt.c:539:26: note: include the header <string.h> or
explicitly provide a declaration for 'strcmp'
:info:build getopt.c:610:9: error: implicitly declaring library function
'strncmp' with type 'int (const char *, const char *, unsigned long)'
[-Werror,-Wimplicit-function-declaration]
:info:build if (!strncmp(p->name, nextchar,
nameend - nextchar)) {
:info:build ^
:info:build getopt.c:610:9: note: include the header <string.h> or
explicitly provide a declaration for 'strncmp'
:info:build getopt.c:611:63: error: implicitly declaring library function
'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-
function-declaration]
:info:build if ((unsigned int) (nameend -
nextchar) == (unsigned int) strlen(p->name)) {
:info:build
^
:info:build getopt.c:611:63: note: include the header <string.h> or
explicitly provide a declaration for 'strlen'
:info:build 2 warnings and 3 errors generated.
:info:build make[1]: *** [getopt.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1/src'
:info:build make: *** [build-src] Error 2
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_feh/feh/work/feh-3.2.1"
&& /usr/bin/make -j4 -w all PREFIX=/opt/local 'exif=1' 'verscmp=0'
:info:build Exit code: 2
:error:build Failed to build feh: command execution failed
:debug:build Error code: CHILDSTATUS 32831 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62776>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list