[MacPorts] #61362: sane-backends 1.0.28+avahi.darwin_19 - scanimage.c compile error.
MacPorts
noreply at macports.org
Wed Oct 21 23:20:15 UTC 2020
#61362: sane-backends 1.0.28+avahi.darwin_19 - scanimage.c compile error.
------------------------+---------------------------
Reporter: dafydd2277 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Keywords: | Port: sane-backends
------------------------+---------------------------
I'll attach the complete build log file ASAP. Important lines here:
{{{
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_graphics_sane-backends/sane-
backends/work/sane-backends-1.0.28/backend'
:info:build Making all in frontend
:info:build make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_graphics_sane-backends/sane-
backends/work/sane-backends-1.0.28/frontend'
:info:build depbase=`echo scanimage.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
:info:build /usr/bin/clang -DHAVE_CONFIG_H -I. -I../include/sane
-DPATH_SANE_CONFIG_DIR=/opt/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/opt/local/share
-DPATH_SANE_LOCK_DIR=/opt/local/var/lock/sane -DV_MAJOR=1
-DV_MINOR=0 -I. -I. -I../include -I../include -I/opt/local/include -fno-
common -include sys/types.h
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wall
-pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
x86_64 -MT scanimage.o -MD -MP -MF $depbase.Tpo -c -o scanimage.o
scanimage.c &&\
:info:build mv -f $depbase.Tpo $depbase.Po
:info:build scanimage.c:1229:42: error: implicit declaration of function
'basename' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build png_set_iCCP(*png_ptr, *info_ptr,
basename(icc_profile), PNG_COMPRESSION_TYPE_BASE, icc_buffer, icc_size);
:info:build ^
:info:build scanimage.c:1229:42: warning: incompatible integer to pointer
conversion passing 'int' to parameter of type 'png_const_charp' (aka
'const char *') [-Wint-conversion]
:info:build png_set_iCCP(*png_ptr, *info_ptr,
basename(icc_profile), PNG_COMPRESSION_TYPE_BASE, icc_buffer, icc_size);
:info:build
^~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/include/png.h:2097:42: note: passing argument to
parameter 'name' here
:info:build png_inforp info_ptr, png_const_charp name, int
compression_type,
:info:build ^
:info:build 1 warning and 1 error generated.
:info:build make[1]: *** [scanimage.o] Error 1
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_graphics_sane-backends/sane-
backends/work/sane-backends-1.0.28/frontend'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_graphics_sane-backends/sane-
backends/work/sane-backends-1.0.28'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_graphics_sane-backends/sane-
backends/work/sane-backends-1.0.28" && /usr/bin/make -w all
:info:build Exit code: 2
:error:build Failed to build sane-backends: command execution failed
}}}
No maintainer information:
{{{
$ sudo port info sane-backends
sane-backends @1.0.28 (graphics)
Variants: [+]avahi, disable_localbackends, enable_pnmbackend,
universal, with_gphoto2
Description: These are the backends for the Scanner Access Now
Easy project. They allow you to access various
scanners either locally or remotely using saned.
Homepage: http://www.sane-project.org/
Build Dependencies: pkgconfig
Library Dependencies: jpeg, libusb, net-snmp, tiff, zlib, openssl, avahi
Platforms: darwin
License: GPL-2+
Maintainers: none
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61362>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list