Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#61737 closed defect (fixed)

libshout2 @2.4.3_2: error: implicit declaration of function 'strcasestr' is invalid in C99

Reported by: kconkas (Kristijan Conkas) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: catalina bigsur Cc:
Port: libshout2

Description

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.

Attachments (1)

main.log (48.7 KB) - added by kconkas (Kristijan Conkas) 3 years ago.
libshout2 build log file

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by kconkas (Kristijan Conkas)

Attachment: main.log added

libshout2 build log file

comment:1 Changed 3 years ago by kconkas (Kristijan Conkas)

Port: libshout2 added
Version: 2.6.4

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: catalina bigsur added
Summary: libshout2 @2.4.3_2.darwin_20: build fails with "error: implicit declaration of function 'strcasestr' is invalid"libshout2 @2.4.3_2: error: implicit declaration of function 'strcasestr' is invalid in C99

comment:3 Changed 3 years ago by jmroot (Joshua Root)

Note that libshout 2.4.4 was released recently; updating the port would be the first thing to try.

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 22db7bb11bc71005566ef57a4a5fe372b756a457/macports-ports (master):

libshout2: Update to 2.4.4

Closes: #61737

comment:5 Changed 3 years ago by kconkas (Kristijan Conkas)

This worked, thanks for the quick fix.

Note: See TracTickets for help on using tickets.