Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#58466 closed defect (fixed)

libshout2 @2.4.2 fails to build when an older version is installed

Reported by: berniewalp Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula)
Port: libshout2

Description (last modified by berniewalp)

I see what appear to be compilation errors in libshout2 when I command "sudo port upgrade outdated".

I attached the log here.

Sorry if we have previous references to this problem. I found no duplicates.

Thanks for any advice.

Attachments (1)

main.log (44.2 KB) - added by berniewalp 5 years ago.
libshout2 log file (failed to build)

Download all attachments as: .zip

Change History (11)

Changed 5 years ago by berniewalp

Attachment: main.log added

libshout2 log file (failed to build)

comment:1 Changed 5 years ago by berniewalp

Description: modified (diff)

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Port: libshout2 added

In the future, please fill in the Port field and add the port maintainer(s) to Cc (port info --maintainers libshout2), if any.

comment:3 Changed 5 years ago by kencu (Ken)

I had the exact same problem. Try this:

sudo port clean libshout2
sudo port -f deactivate libshout2
sudo port -v install libshout2

and you should be good to go.

Last edited 5 years ago by kencu (Ken) (previous) (diff)

comment:4 Changed 5 years ago by kencu (Ken)

Cc: Schamschula added

comment:5 Changed 5 years ago by kencu (Ken)

Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Probably best if discussion continues here, not in the notes of a commit.

The order of the includes should be fixed. If that's not possible, try using the conflicts_build portgroup.

comment:7 Changed 5 years ago by jmroot (Joshua Root)

Looks like this is what broke it: https://git.xiph.org/?p=icecast-libshout.git;a=commitdiff;h=627da3d8b2b21dc2e2743ca56e1d8d683cdcbf07

INCLUDES should have been replaced by AM_CPPFLAGS, as putting preprocessor flags in AM_CFLAGS is incorrect and leads to the flags being ordered wrong relative to CPPFLAGS.

comment:9 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 362329e5e161765634ae53cb2a46143df03e0d18/macports-ports (master):

libshout2: fix build failure due to -I flag order

Fixes: #58466

comment:10 Changed 5 years ago by jmroot (Joshua Root)

Summary: Failed to build libshout2: command execution failedlibshout2 @2.4.2 fails to build when an older version is installed
Note: See TracTickets for help on using tickets.