[MacPorts] #61737: libshout2 @2.4.3_2.darwin_20: build fails with "error: implicit declaration of function 'strcasestr' is invalid"

MacPorts noreply at macports.org
Thu Dec 3 21:57:18 UTC 2020


#61737: libshout2 @2.4.3_2.darwin_20: build fails with "error: implicit declaration
of function 'strcasestr' is invalid"
---------------------+--------------------
 Reporter:  kconkas  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:           |       Port:
---------------------+--------------------
 libshout2 is a dependency of gstreamer1-gst-plugins-good. An attempt to
 install it on a macOS Big Sur system fails with:
 {{{
 --->  Fetching archive for libshout2
 --->  Attempting to fetch libshout2-2.4.3_2.darwin_20.x86_64.tbz2 from
 https://mse.uk.packages.macports.org/libshout2
 --->  Attempting to fetch libshout2-2.4.3_2.darwin_20.x86_64.tbz2 from
 https://lil.fr.packages.macports.org/libshout2
 --->  Attempting to fetch libshout2-2.4.3_2.darwin_20.x86_64.tbz2 from
 https://packages.macports.org/libshout2
 --->  Fetching distfiles for libshout2
 --->  Verifying checksums for libshout2
 --->  Extracting libshout2
 --->  Configuring libshout2
 --->  Building libshout2
 Error: Failed to build libshout2: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_libshout2/libshout2/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port gstreamer1-gst-plugins-good failed
 }}}

 The following is logged in build log:
 {{{
 :info:build proto_http.c:524:20: error: implicit declaration of function
 'strcasestr' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
 :info:build         if (tmp && strcasestr(tmp, "keep-alive")) {
 :info:build                    ^
 :info:build proto_http.c:524:20: note: did you mean 'strcasecmp'?
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include/strings.h:78:6:
 note: 'strcasecmp' declared here
 :info:build int      strcasecmp(const char *, const char *);
 :info:build          ^
 :info:build 1 error generated.
 }}}

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


More information about the macports-tickets mailing list